MainLoop

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

Constructors

this
this(glib.main_context.MainContext context, bool isRunning)

Creates a new #GMainLoop structure.

Members

Functions

getContext
glib.main_context.MainContext getContext()

Returns the #GMainContext of loop.

isRunning
bool isRunning()

Checks to see if the main loop is currently being run via glib.main_loop.MainLoop.run.

quit
void quit()

Stops a #GMainLoop from running. Any calls to glib.main_loop.MainLoop.run for the loop will return.

run
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 simply wait.

Inherited Members

From Boxed

cInstancePtr
void* cInstancePtr;

Pointer to the C boxed value

getType
GType getType()

Get the GType of this boxed type.

gType
GType gType [@property getter]

Boxed GType property.

self
Boxed self()

Convenience method to return this cast to a type. For use in D with statements.

copy_
void* copy_()

Make a copy of the wrapped C boxed data.

boxedCopy
void* boxedCopy(void* cBoxed)

Copy a C boxed value using g_boxed_copy.

boxedFree
void boxedFree(void* cBoxed)

Free a C boxed value using g_boxed_free.