glib.main_loop

Module for [MainLoop] class

class MainLoop

Types 1

The [glib.main_loop.MainLoop] struct is an opaque data type representing the main event loop of a GLib or GTK application.

Methods
void * _cPtr(Flag!"Dup" dup = No.Dup)
GType _gType() @property
MainLoop self()Returns `this`, for use in `with` statements.
glib.main_context.MainContext getContext()Returns the #GMainContext of loop. Returns: the #GMainContext of loop
bool isRunning()Checks to see if the main loop is currently being run via [glib.main_loop.MainLoop.run]. Returns: true if the mainloop is currently being run.
void quit()Stops a #GMainLoop from running. Any calls to [glib.main_loop.MainLoop.run] for the loop will return.
void run()Runs a main loop until [glib.main_loop.MainLoop.quit] is called on the loop. If this is called for the thread of the loop's #GMainContext, it will process events from the loop, otherwise it will si...
Constructors
this(void * ptr, Flag!"Take" take)
this(glib.main_context.MainContext context, bool isRunning)Creates a new #GMainLoop structure.