I had an idea for a lightweight general purpose GUI toolkit the other day. It might be dumb, but it will keep me busy for a while. Here it is, in the steps you would use it:
1. After some work is done on your app, you decide to start on the UI...
2. To make the UI, a description language very similar to HTML5 is used to describe the GUI. It isn't simply just tags and values, there is support for objects and "action entities." All static images used in the app are put in the same directory as the description file(s). Instead of hyperlinks, references are made to "handles," and can come in the form of text links, buttons, etc.
3. You write the UI parts in the app, which is pretty much just assigning handles to functions. You have to use the API, of course.
3. A GUI compiler compiles the "source files" into a single data file or dll. This ships with your program.
4. If all functions correctly, you will have a seperate file for the GUI, similar to libglade, and a program that draws that GUI onto the screen.
So, do you think this is a good idea? I realize there are immense similarities between this and GTK+/Glade, but still, it seems like an interesting/fun project. What are your suggestions and criticisms?