class GLib::MainContext
- GLib::MainContext
- Reference
- Object
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.crConstructors
- .new(pointer : Pointer(Void), transfer : GICrystal::Transfer)
- .new_with_flags(flags : GLib::MainContextFlags) : self
Class Method Summary
- .default : GLib::MainContext
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
- .ref_thread_default : GLib::MainContext
- .thread_default : GLib::MainContext | Nil
Instance Method Summary
- #acquire : Bool
- #check(max_priority : Int32, fds : Enumerable(GLib::PollFD)) : Bool
- #dispatch : Nil
- #finalize
- #find_source_by_funcs_user_data(funcs : GLib::SourceFuncs, user_data : Pointer(Void) | Nil) : GLib::Source
- #find_source_by_id(source_id : UInt32) : GLib::Source
- #find_source_by_user_data(user_data : Pointer(Void) | Nil) : GLib::Source
- #invoke_full(priority : Int32, function : GLib::SourceFunc) : Nil
- #is_owner : Bool
- #iteration(may_block : Bool) : Bool
- #pending : Bool
- #pop_thread_default : Nil
- #prepare : Bool
- #push_thread_default : Nil
- #query(max_priority : Int32, timeout_ : Int32, fds : Enumerable(GLib::PollFD)) : Int32
- #ref : GLib::MainContext
- #release : Nil
- #to_unsafe : Pointer(Void)
- #unref : Nil
-
#wait(cond : GLib::Cond, mutex : GLib::Mutex) : Bool
DEPRECATED
- #wakeup : Nil
Constructor Detail
Class Method Detail
Returns the type id (GType) registered in GLib type system.
Instance Method Detail
def find_source_by_funcs_user_data(funcs : GLib::SourceFuncs, user_data : Pointer(Void) | Nil) : GLib::Source
#