MainLoop

class MainLoop(pointer: <Error class: unknown class><<Error class: unknown class>>) : Record

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

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion : RecordCompanion<MainLoop, <Error class: unknown class>>

Properties

Link copied to clipboard
val glibMainLoopPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Returns the struct@GLib.MainContext of @loop.

Link copied to clipboard

Checks to see if the main loop is currently being run via method@GLib.MainLoop.run.

Link copied to clipboard
fun quit()

Stops a struct@GLib.MainLoop from running. Any calls to method@GLib.MainLoop.run for the loop will return.

Link copied to clipboard
fun ref(): MainLoop

Increases the reference count on a struct@GLib.MainLoop object by one.

Link copied to clipboard
fun run()

Runs a main loop until method@GLib.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.

Link copied to clipboard
fun unref()

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