![]() |
![]() |
Public Types | |
typedef Glib::MainLoop | CppObjectType |
typedef GMainLoop | BaseObjectType |
Public Member Functions | |
void | run () |
Runs a main loop until quit() is called on the loop. | |
void | quit () |
Stops a MainLoop from running. | |
bool | is_running () |
Checks to see if the main loop is currently being run via run(). | |
Glib::RefPtr<MainContext> | get_context () |
Returns the MainContext of loop. | |
void | reference () const |
Increases the reference count on a MainLoop object by one. | |
void | unreference () const |
Decreases the reference count on a MainLoop object by one. | |
GMainLoop* | gobj () |
const GMainLoop* | gobj () const |
GMainLoop* | gobj_copy () const |
Static Public Member Functions | |
Glib::RefPtr<MainLoop> | create (bool is_running=false) |
Glib::RefPtr<MainLoop> | create (const Glib::RefPtr<MainContext>& context, bool is_running=false) |
int | depth () |
Related Functions | |
(Note that these are not member functions.) | |
Glib::RefPtr<MainLoop> | wrap (GMainLoop* gobject, bool take_copy=false) |
|
|
|
|
|
|
|
|
|
|
|
Returns the MainContext of loop.
|
|
|
|
|
|
|
|
Checks to see if the main loop is currently being run via run().
|
|
Stops a MainLoop from running. Any calls to run() for the loop will return. |
|
Increases the reference count on a MainLoop object by one.
|
|
Runs a main loop until quit() is called on the loop. If this is called for the thread of the loop's MainContext, it will process events from the loop, otherwise it will simply wait. |
|
Decreases the reference count on a MainLoop object by one. If the result is zero, free the loop and free all associated memory. |