glib.main_loop
Module for [MainLoop] class
class MainLoop
Types 1
classMainLoop : gobject.boxed.Boxed
The [glib.main_loop.MainLoop] struct is an opaque data type representing the main event loop of a GLib or GTK application.
Methods
glib.main_context.MainContext getContext()Returns the #GMainContext of loop. Returns: the #GMainContext of loopbool 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(glib.main_context.MainContext context, bool isRunning)Creates a new #GMainLoop structure.