Thank you. I’m rewriting it right now, there is a lot to do. I think it will have a window, label, entry box, text box, vertical scrollbar, horizontal scrollbar, progress bar, button, select button, and combo box. Yet i try to keep it as minimalist as possible, like this time i’m not going to add more editing than deleting the text, typing and backspace. I would make everything smaller, so that the example will become a 640x480 window, from 1024x768 window, the widgets were much too large. I will also make it to work in Visual Studio, the Visual Studio Express 2013 is all i have.
Mr_tawan, thank you too. Abstraction layers, yes, i’m going to split it to several files, and no external library function will be called directly from the functions of the widgets. So rewriting the files for general functions may enable to use other external libraries, like shaped fonts, which you mentioned. The most i want it to be flexible, so that it does not restrict whatever is want to be done. That it mostly provides the core of a widget toolkit. More than it being advanced or complex.
As i understand, at present there are two widget toolkits for SDL2, mine and SDL_widgets, unless more would be found. SDL_widgets is witten in C++, while mine is written in C. SDL_widgets is very advanced, it is amazing how advanced toolkit they could write with 3000 lines of code. I like it a lot, a great work done, but it is not quite what i want to do. It is not written from scratch like mine, this makes it to depend too much on some other code. It is also at least two times as complex as mine, likely even after i add everything that i’m going to add. Yet still as i said, it is still amazingly short for the things it does. And it is not made the way i would like to make a widget toolkit.
So bear with me, rewriting it takes some time, there is a lot to do.------------------------
kiss_sdl - Simple universal GUI widget toolkit for SDL2 https://github.com/actsl/kiss_sdl