W Wrapl, The Programming Language





Nil : T


New(context @ Gtk.Glib.GMainContext.T, is_running @ Std.Symbol.T) : Gtk.Glib.GMainLoop.T

Creates a new T structure.

context a Gtk.Glib.GMainContext.T (if NULL, the default context will be used). [allow-none]
is_running set to TRUE to indicate that the loop is running. This is not very important since calling Gtk.Glib.GMain.LoopRun will set this to TRUE anyway.
Returns a new T.


:"="(_ @ T, _ @ T)

:GetContext(self @ T) : Gtk.Glib.GMainContext.T

Returns the Gtk.Glib.GMainContext.T of loop.

loop a T.
Returns the Gtk.Glib.GMainContext.T of loop. [transfer none]

:IsRunning(self @ T) : Std.Symbol.T

Checks to see if the main loop is currently being run via Gtk.Glib.GMain.LoopRun.

loop a T.
Returns TRUE if the mainloop is currently being run.

:Quit(self @ T) : Std.Object.T

Stops a T from running. Any calls to Gtk.Glib.GMain.LoopRun for the loop will return.

Note that sources that have already been dispatched when Gtk.Glib.GMain.LoopQuit is called will still be executed.

loop a T

:Ref(self @ T) : Gtk.Glib.GMainLoop.T

Increases the reference count on a T object by one.

loop a T
Returns loop

:Run(self @ T) : Std.Object.T

Runs a main loop until Gtk.Glib.GMain.LoopQuit is called on the loop. If this is called for the thread of the loop's Gtk.Glib.GMainContext.T, it will process events from the loop, otherwise it will simply wait.

loop a T

:Unref(self @ T) : Std.Object.T

Decreases the reference count on a T object by one. If the result is zero, free the loop and free all associated memory.

loop a T

:"~="(_ @ T, _ @ T)