class GLib::MainLoop

Overview

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

Defined in:

lib/gi-crystal/src/auto/g_lib-2.0/main_loop.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(pointer : Pointer(Void), transfer : GICrystal::Transfer) #

[View source]
def self.new(context : GLib::MainContext | Nil, is_running : Bool) : self #

[View source]

Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.


[View source]

Instance Method Detail

def context : GLib::MainContext #

[View source]
def finalize #

[View source]
def is_running : Bool #

[View source]
def quit : Nil #

[View source]
def ref : GLib::MainLoop #

[View source]
def run : Nil #

[View source]
def to_unsafe : Pointer(Void) #

[View source]
def unref : Nil #

[View source]