PDA

View Full Version : How to write one's own GUI toolkit like QT or GTK?



csstudent
October 24th, 2009, 08:53 PM
I tried searching on the internet but all results simply talk
about using one of the kits not making one's own.Please give a certain direction as to what to study to do the above

diesch
October 24th, 2009, 08:57 PM
XLib (http://en.wikipedia.org/wiki/Xlib) provides the low level functions you need to draw your widgets, iplement event handling and such.

See the source code of Gtk, Qt, FLTK, ... for some ideas.

froggyswamp
October 24th, 2009, 09:27 PM
It does sound tempting to create your own tk but it turns out its such a huge pile of learning and work that in the middle one realizes it's better to contribute to the existing project(s) rather than creating from scratch. Better sameness isn't gonna live long. Unless there's something in between.

mmix
October 24th, 2009, 11:32 PM
See sources like,

GTK/QT/Xorg, directfb, SDL, kernel frame buffer driver, Haiku GUI