#include <gtk_dispatch.h>
Inheritance diagram for SigCX::GtkDispatcher:
Public Member Functions | |
virtual HandlerID | add_input_handler (const Handler &h, int fd) |
virtual HandlerID | add_output_handler (const Handler &h, int fd) |
virtual HandlerID | add_exception_handler (const Handler &h, int fd) |
virtual HandlerID | add_timeout_handler (const Handler &h, const TimeVal &tv) |
virtual void | remove (HandlerID id) |
virtual bool | run (bool infinite=true) |
virtual void | move (Dispatcher &d) |
virtual bool | idle () const |
virtual void | exit () |
Implements a dispatcher on top of the GTK/GDK event loop.
|
Add exception handler. The handler h is invoked when an exception occurs on fd.
Implements SigCX::Dispatcher. |
|
Add input handler. The handler h is invoked when data is ready for reading from fd.
Implements SigCX::Dispatcher. |
|
Add output handler. The handler h is invoked when fd is ready for writing.
Implements SigCX::Dispatcher. |
|
Add timeout handler. The handler h is invoked when the time specified by tv has passed.
Implements SigCX::Dispatcher. |
|
Cause exit of event loop.
Implements SigCX::Dispatcher. |
|
Get idle status.
Implements SigCX::Dispatcher. |
|
Move all callbacks to another dispatcher.
Implements SigCX::Dispatcher. |
|
Remove a handler.
Reimplemented from SigCX::SignalDispatcher. |
|
Run the dispatcher. Run the dispatcher event loop, receiving events and calling the registered callbacks.
Implements SigCX::Dispatcher. |