module GLib
Extended Modules
Defined in:
lib/gi-crystal/src/auto/g_lib-2.0/bytes.crlib/gi-crystal/src/auto/g_lib-2.0/g_lib.cr
lib/gi-crystal/src/auto/g_lib-2.0/main_context.cr
lib/gi-crystal/src/auto/g_lib-2.0/main_loop.cr
lib/gi-crystal/src/auto/g_lib-2.0/mapped_file.cr
lib/gi-crystal/src/auto/g_lib-2.0/markup_parse_context.cr
lib/gi-crystal/src/auto/g_lib-2.0/markup_parser.cr
lib/gi-crystal/src/auto/g_lib-2.0/source.cr
lib/gi-crystal/src/auto/g_lib-2.0/source_callback_funcs.cr
lib/gi-crystal/src/auto/g_lib-2.0/source_funcs.cr
lib/gi-crystal/src/auto/g_lib-2.0/variant_builder.cr
lib/gi-crystal/src/auto/g_lib-2.0/variant_dict.cr
lib/gi-crystal/src/auto/g_lib-2.0/variant_type.cr
lib/gi-crystal/src/bindings/g_lib/bytes.cr
lib/gi-crystal/src/bindings/g_lib/error.cr
lib/gi-crystal/src/bindings/g_lib/list.cr
lib/gi-crystal/src/bindings/g_lib/slist.cr
lib/gi-crystal/src/bindings/g_lib/timeout.cr
lib/gi-crystal/src/bindings/g_lib/variant.cr
lib/gi-crystal/src/bindings/g_lib/variant_dict.cr
Constant Summary
-
MAJOR_VERSION =
2
-
The major version number of the GLib library.
Like #glib_major_version, but from the headers used at application compile time, rather than from the library linked against at application run time.
-
MICRO_VERSION =
3
-
The micro version number of the GLib library.
Like #gtk_micro_version, but from the headers used at application compile time, rather than from the library linked against at application run time.
-
MINOR_VERSION =
71
-
The minor version number of the GLib library.
Like #gtk_minor_version, but from the headers used at application compile time, rather than from the library linked against at application run time.
-
PRIORITY_DEFAULT =
0
-
Use this for default priority event sources.
In GLib this priority is used when adding timeout functions with g_timeout_add(). In GDK this priority is used for events from the X server.
-
PRIORITY_DEFAULT_IDLE =
200
-
Use this for default priority idle functions.
In GLib this priority is used when adding idle functions with g_idle_add().
-
PRIORITY_HIGH =
-100
-
Use this for high priority event sources.
It is not used within GLib or GTK+.
-
PRIORITY_HIGH_IDLE =
100
-
Use this for high priority idle functions.
GTK+ uses %G_PRIORITY_HIGH_IDLE + 10 for resizing operations, and %G_PRIORITY_HIGH_IDLE + 20 for redrawing operations. (This is done to ensure that any pending resizes are processed before any pending redraws, so that widgets are not redrawn twice unnecessarily.)
-
PRIORITY_LOW =
300
-
Use this for very low priority background tasks.
It is not used within GLib or GTK+.
-
SOURCE_CONTINUE =
true
-
Use this macro as the return value of a #GSourceFunc to leave the #GSource in the main loop.
-
SOURCE_REMOVE =
false
-
Use this macro as the return value of a #GSourceFunc to remove the #GSource from the main loop.
Class Method Summary
- .application_name : String | Nil
- .application_name=(application_name : String) : Nil
- .bit_nth_lsf(mask : UInt64, nth_bit : Int32) : Int32
- .bit_nth_msf(mask : UInt64, nth_bit : Int32) : Int32
- .bit_storage(number : UInt64) : UInt32
- .check_version(required_major : UInt32, required_minor : UInt32, required_micro : UInt32) : String | Nil
-
.format_size_for_display(size : Int64) : String
DEPRECATED
- .idle_add(priority : Priority = Priority::Default, &block : -> Bool)
- .idle_remove_by_data(data : Pointer(Void) | Nil) : Bool
- .idle_source_new : GLib::Source
- .main_context_default : GLib::MainContext
- .main_context_get_thread_default : GLib::MainContext | Nil
- .main_context_ref_thread_default : GLib::MainContext
- .main_current_source : GLib::Source | Nil
- .main_depth : Int32
- .markup_escape_text(text : String, length : Int64) : String
- .on_error_query(prg_name : String) : Nil
- .on_error_stack_trace(prg_name : String) : Nil
- .os_info(key_name : String) : String | Nil
- .prgname : String | Nil
- .prgname=(prgname : String) : Nil
- .quark_from_string(string : String | Nil) : UInt32
- .quark_to_string(quark : UInt32) : String
- .quark_try_string(string : String | Nil) : UInt32
- .reload_user_special_dirs_cache : Nil
- .source_remove(tag : UInt32) : Bool
- .source_set_name_by_id(tag : UInt32, name : String) : Nil
- .spaced_primes_closest(num : UInt32) : UInt32
- .system_config_dirs : Enumerable(String)
- .system_data_dirs : Enumerable(String)
- .timeout(interval : Time::Span, priority : Priority = Priority::Default, &block : -> Bool)
- .timeout_milliseconds(interval : UInt32, priority : Priority = Priority::Default, &block : -> Bool)
- .timeout_seconds(interval : UInt32, priority : Priority = Priority::Default, &block : -> Bool)
- .timeout_source_new(interval : UInt32) : GLib::Source
- .timeout_source_new_seconds(interval : UInt32) : GLib::Source
- .user_cache_dir : Path
- .user_config_dir : Path
- .user_data_dir : Path
- .user_runtime_dir : Path
- .user_special_dir(directory : GLib::UserDirectory) : Path | Nil
- .user_state_dir : Path
- .variant_get_gtype : UInt64
- .variant_is_object_path(string : String) : Bool
- .variant_is_signature(string : String) : Bool
- .variant_parse_error_print_context(error : GLib::Error, source_str : String) : String
- .variant_parse_error_quark : UInt32
-
.variant_parser_get_error_quark : UInt32
DEPRECATED
- .variant_type_checked_(arg0 : String) : GLib::VariantType
- .variant_type_string_get_depth_(type_string : String) : UInt64
- .variant_type_string_is_valid(type_string : String) : Bool
- .variant_type_string_scan(string : String, limit : String | Nil) : Bool