On Tue, Mar 27, 2007 at 03:51:02PM -0400, Jim Crafton wrote:
No timers, no easy way to send messages to yourself, etc. It would be
nice if a lot of this had a default implementation, so that
app/toolkit developers didn't have to re-implement and worry about
whether or not they did it correctly.
GLib (used by Gtk+) has all this, though implemented with callbacks
rather than as an application event loop. You should check out the GLib
event loop and GObject signal mechanisms:
http://developer.gnome.org/doc/API/2.0/glib/glib-The-Main-Event-Loop.html
http://developer.gnome.org/doc/API/2.0/gobject/signal.html
I expect Qt has similar functionality; I know it at least supports the
signals concept. However, I assume you'd pull in all of Qt if you wanted
to use these features, which is probably silly if you're trying to write
your own toolkit. Plus you'd have to use C++. *sigh*