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) #

def self.new(context : GLib::MainContext?, is_running : Bool) : self #

Class Method Detail

def self.g_type : UInt64 #

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


Instance Method Detail

def context : GLib::MainContext #

def finalize #

def is_running : Bool #

def quit : Nil #

def ref : GLib::MainLoop #

def run : Nil #

def to_unsafe : Pointer(Void) #

def unref : Nil #