class GLib::MainContext

Overview

The GMainContext struct is an opaque data type representing a set of sources to be handled in a main loop.

Defined in:

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

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

[View source]
def self.new_with_flags(flags : GLib::MainContextFlags) : self #

[View source]

Class Method Detail

def self.default : GLib::MainContext #

[View source]
def self.g_type : UInt64 #

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


[View source]
def self.ref_thread_default : GLib::MainContext #

[View source]
def self.thread_default : GLib::MainContext | Nil #

[View source]

Instance Method Detail

def acquire : Bool #

[View source]
def check(max_priority : Int32, fds : Enumerable(GLib::PollFD)) : Bool #

[View source]
def dispatch : Nil #

[View source]
def finalize #

[View source]
def find_source_by_funcs_user_data(funcs : GLib::SourceFuncs, user_data : Pointer(Void) | Nil) : GLib::Source #

[View source]
def find_source_by_id(source_id : UInt32) : GLib::Source #

[View source]
def find_source_by_user_data(user_data : Pointer(Void) | Nil) : GLib::Source #

[View source]
def invoke_full(priority : Int32, function : GLib::SourceFunc) : Nil #

[View source]
def is_owner : Bool #

[View source]
def iteration(may_block : Bool) : Bool #

[View source]
def pending : Bool #

[View source]
def pop_thread_default : Nil #

[View source]
def prepare : Bool #

[View source]
def push_thread_default : Nil #

[View source]
def query(max_priority : Int32, timeout_ : Int32, fds : Enumerable(GLib::PollFD)) : Int32 #

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

[View source]
def release : Nil #

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

[View source]
def unref : Nil #

[View source]
def wait(cond : GLib::Cond, mutex : GLib::Mutex) : Bool #

DEPRECATED


[View source]
def wakeup : Nil #

[View source]