Version 0.3 introduces a new toolkit called DTK (dred toolkit) which is designed for light weight, traditional desktop
applications. Benefits of this toolkit include:
- Small a light weight.
- Easy to compile. The entire source code for DTK is compiled as a single translation unit (dtk.c) and requires linking
to only necessary platform-specific libraries such as GTK.
- Written entirely in C.
- Improved control/widget and event handling infrastructure.
- Windows are treated just like any other control and are no longer special entities.
- Events are now handled through a central event queue rather than callbacks.
- Improved painting performance.
-
Controls can be redrawn immediately or scheduled for later. Scheduling redraws improves performance because
it gives the toolkit an opportunity batch drawing.
-
Painting on GTK has been improved. Previously, painting was done to an intermediary surface and then copied
onto the window. The toolkit will now draw directly to the window. This also saves on a bit of memory.
Many more features and improvements are in the pipline for DTK, including common controls, better high DPI
support, drag-and-drop, and much more.