From: Hagen Möbius (hagen.moebius_at_[hidden])
Date: 2005-01-04 20:07:17
Neal Coombes wrote:
> Reece Dunn wrote:
>> There are several layers to a (G)UI library:
>>  The platform independant layer.
>>  The geometry layer - unit type, point, size, rect.
>>  The base graphics layer - fonts, canvas, pens, images, etc.
>>  The event handling layer - event loop, events, event handlers.
>>  The UI object layer - frames, forms, widgets, lightweight
>> objects, etc.
> This is a significant tangent from this conversation. Does anyone
> think it would be possible/useful to create an event-loop library
> completely independent of the GUI library, but that the GUI library
> would use. I think there are probably vast uses other than GUI apps
> that could take advantage of such a component. Obviously the signal
> library could be put to good use in such an event library (once the
> performance optimizations are implemented).
> This is pretty much just a random thought :)
This is exactly what Glib and Glibmm do. Glib being the C backbone and
Glibmm the C++ language binding. Glibmm uses sigc++ as event system and
supports all kind of things like polling, timeouts, inputevents and
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk