![]() |
![]() |
Public Types | |
typedef Glib::Source | CppObjectType |
typedef GSource | BaseObjectType |
Public Member Functions | |
unsigned int | attach (const Glib::RefPtr<MainContext>& context) |
unsigned int | attach () |
void | destroy () |
void | set_priority (int priority) |
int | get_priority () const |
void | set_can_recurse (bool can_recurse) |
bool | get_can_recurse () const |
unsigned int | get_id () const |
Glib::RefPtr<MainContext> | get_context () |
GSource* | gobj () |
const GSource* | gobj () const |
GSource* | gobj_copy () const |
void | reference () const |
void | unreference () const |
Static Public Member Functions | |
Glib::RefPtr<Source> | create () |
void | destroy_notify_callback (void* data) |
Protected Member Functions | |
Source () | |
Construct an object that uses the virtual functions prepare(), check() and dispatch(). | |
Source (GSource* cast_item, GSourceFunc callback_func) | |
Wrap an existing GSource object and install the given callback function. | |
virtual | ~Source () |
SigC::Connection | connect_generic (const SigC::SlotBase& slot) |
void | add_poll (PollFD& poll_fd) |
void | remove_poll (PollFD& poll_fd) |
void | get_current_time (Glib::TimeVal& current_time) |
virtual bool | prepare (int& timeout)=0 |
virtual bool | check ()=0 |
virtual bool | dispatch (SigC::SlotNode* slot_data)=0 |
|
|
|
Reimplemented in Glib::TimeoutSource, Glib::IdleSource, and Glib::IOSource. |
|
Construct an object that uses the virtual functions prepare(), check() and dispatch().
|
|
Wrap an existing GSource object and install the given callback function. The constructed object doesn't use the virtual functions prepare(), check() and dispatch(). This ctor is for use by derived types that need to wrap a GSource object. The callback function can be a static member function. But beware! Depending on the actual implementation of the GSource's virtual functions the expected type of the callback function can differ from GSourceFunc. |
|
|
|
|
|
|
|
|
|
Implemented in Glib::TimeoutSource, Glib::IdleSource, and Glib::IOSource. |
|
|
|
Reimplemented in Glib::IdleSource. |
|
|
|
|
|
Implemented in Glib::TimeoutSource, Glib::IdleSource, and Glib::IOSource. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Implemented in Glib::TimeoutSource, Glib::IdleSource, and Glib::IOSource. |
|
|
|
|
|
|
|
|
|
|