Gjsify LogoGjsify Logo

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

record

Hierarchy

  • MainLoop

Index

Constructors

  • Creates a new #GMainLoop structure.

    Parameters

    • context: MainContext

      a #GMainContext (if %NULL, the default context will be used).

    • is_running: boolean

      set to %TRUE to indicate that the loop is running. This is not very important since calling g_main_loop_run() will set this to %TRUE anyway.

    Returns GLib.MainLoop

Properties

name: string

Methods

  • is_running(): boolean
  • quit(): void
  • Stops a #GMainLoop from running. Any calls to g_main_loop_run() for the loop will return.

    Note that sources that have already been dispatched when g_main_loop_quit() is called will still be executed.

    Returns void

  • run(): void
  • Runs a main loop until g_main_loop_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.

    Returns void

  • unref(): void
  • Decreases the reference count on a #GMainLoop object by one. If the result is zero, free the loop and free all associated memory.

    Returns void

  • Creates a new #GMainLoop structure.

    Parameters

    • context: MainContext

      a #GMainContext (if %NULL, the default context will be used).

    • is_running: boolean

      set to %TRUE to indicate that the loop is running. This is not very important since calling g_main_loop_run() will set this to %TRUE anyway.

    Returns GLib.MainLoop

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method