module GLib

Extended Modules

Defined in:

lib/gi-crystal/src/auto/g_lib-2.0/bytes.cr
lib/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

ANALYZER_ANALYZING = 1
ASCII_DTOSTR_BUF_SIZE = 39

A good size for a buffer to be passed into g_ascii_dtostr(). It is guaranteed to be enough for all output of that function on systems with 64bit IEEE-compatible doubles.

The typical usage would be something like: |[ char buf[G_ASCII_DTOSTR_BUF_SIZE];

fprintf (out, "value=%s\n", g_ascii_dtostr (buf, sizeof (buf), value)); ]|

BIG_ENDIAN = 4321

Specifies one of the possible types of byte order. See %G_BYTE_ORDER.

CSET_A_2_Z = "ABCDEFGHIJKLMNOPQRSTUVWXYZ"

The set of uppercase ASCII alphabet characters. Used for specifying valid identifier characters in #GScannerConfig.

CSET_a_2_z = "abcdefghijklmnopqrstuvwxyz"

The set of lowercase ASCII alphabet characters. Used for specifying valid identifier characters in #GScannerConfig.

CSET_DIGITS = "0123456789"

The set of ASCII digits. Used for specifying valid identifier characters in #GScannerConfig.

DATALIST_FLAGS_MASK = 3

A bitmask that restricts the possible flags passed to g_datalist_set_flags(). Passing a flags value where flags & ~G_DATALIST_FLAGS_MASK != 0 is an error.

DATE_BAD_DAY = 0

Represents an invalid #GDateDay.

DATE_BAD_JULIAN = 0

Represents an invalid Julian day number.

DATE_BAD_YEAR = 0

Represents an invalid year.

DIR_SEPARATOR = 47

The directory separator character. This is '/' on UNIX machines and '' under Windows.

DIR_SEPARATOR_S = "/"

The directory separator as a string. This is "/" on UNIX machines and "" under Windows.

E = 2.718282

The base of natural logarithms.

GINT16_FORMAT = "hi"

This is the platform dependent conversion specifier for scanning and printing values of type #gint16. It is a string literal, but doesn't include the percent-sign, such that you can add precision and length modifiers between percent-sign and conversion specifier.

|[ gint16 in; gint32 out; sscanf ("42", "%" G_GINT16_FORMAT, &in) out = in * 1000; g_print ("%" G_GINT32_FORMAT, out); ]|

GINT16_MODIFIER = "h"

The platform dependent length modifier for conversion specifiers for scanning and printing values of type #gint16 or #guint16. It is a string literal, but doesn't include the percent-sign, such that you can add precision and length modifiers between percent-sign and conversion specifier and append a conversion specifier.

The following example prints "0x7b"; |[ gint16 value = 123; g_print ("%#" G_GINT16_MODIFIER "x", value); ]|

GINT32_FORMAT = "i"

This is the platform dependent conversion specifier for scanning and printing values of type #gint32. See also %G_GINT16_FORMAT.

GINT32_MODIFIER = ""

The platform dependent length modifier for conversion specifiers for scanning and printing values of type #gint32 or #guint32. It is a string literal. See also %G_GINT16_MODIFIER.

GINT64_FORMAT = "li"

This is the platform dependent conversion specifier for scanning and printing values of type #gint64. See also %G_GINT16_FORMAT.

Some platforms do not support scanning and printing 64-bit integers, even though the types are supported. On such platforms %G_GINT64_FORMAT is not defined. Note that scanf() may not support 64-bit integers, even if %G_GINT64_FORMAT is defined. Due to its weak error handling, scanf() is not recommended for parsing anyway; consider using g_ascii_strtoull() instead.

GINT64_MODIFIER = "l"

The platform dependent length modifier for conversion specifiers for scanning and printing values of type #gint64 or #guint64. It is a string literal.

Some platforms do not support printing 64-bit integers, even though the types are supported. On such platforms %G_GINT64_MODIFIER is not defined.

GINTPTR_FORMAT = "li"

This is the platform dependent conversion specifier for scanning and printing values of type #gintptr.

GINTPTR_MODIFIER = "l"

The platform dependent length modifier for conversion specifiers for scanning and printing values of type #gintptr or #guintptr. It is a string literal.

GNUC_FUNCTION = ""

Expands to "" on all modern compilers, and to FUNCTION on gcc version 2.x. Don't use it.

GNUC_PRETTY_FUNCTION = ""

Expands to "" on all modern compilers, and to PRETTY_FUNCTION on gcc version 2.x. Don't use it.

GSIZE_FORMAT = "lu"

This is the platform dependent conversion specifier for scanning and printing values of type #gsize. See also %G_GINT16_FORMAT.

GSIZE_MODIFIER = "l"

The platform dependent length modifier for conversion specifiers for scanning and printing values of type #gsize. It is a string literal.

GSSIZE_FORMAT = "li"

This is the platform dependent conversion specifier for scanning and printing values of type #gssize. See also %G_GINT16_FORMAT.

GSSIZE_MODIFIER = "l"

The platform dependent length modifier for conversion specifiers for scanning and printing values of type #gssize. It is a string literal.

GUINT16_FORMAT = "hu"

This is the platform dependent conversion specifier for scanning and printing values of type #guint16. See also %G_GINT16_FORMAT

GUINT32_FORMAT = "u"

This is the platform dependent conversion specifier for scanning and printing values of type #guint32. See also %G_GINT16_FORMAT.

GUINT64_FORMAT = "lu"

This is the platform dependent conversion specifier for scanning and printing values of type #guint64. See also %G_GINT16_FORMAT.

Some platforms do not support scanning and printing 64-bit integers, even though the types are supported. On such platforms %G_GUINT64_FORMAT is not defined. Note that scanf() may not support 64-bit integers, even if %G_GINT64_FORMAT is defined. Due to its weak error handling, scanf() is not recommended for parsing anyway; consider using g_ascii_strtoull() instead.

GUINTPTR_FORMAT = "lu"

This is the platform dependent conversion specifier for scanning and printing values of type #guintptr.

HAVE_GINT64 = 1
HAVE_GNUC_VARARGS = 1
HAVE_GNUC_VISIBILITY = 1

Defined to 1 if gcc-style visibility handling is supported.

HAVE_GROWING_STACK = 0
HAVE_ISO_VARARGS = 1
HOOK_FLAG_USER_SHIFT = 4

The position of the first bit which is not reserved for internal use be the #GHook implementation, i.e. 1 << G_HOOK_FLAG_USER_SHIFT is the first bit which can be used for application-defined flags.

IEEE754_DOUBLE_BIAS = 1023

The bias by which exponents in double-precision floats are offset.

IEEE754_FLOAT_BIAS = 127

The bias by which exponents in single-precision floats are offset.

KEY_FILE_DESKTOP_GROUP = "Desktop Entry"

The name of the main group of a desktop entry file, as defined in the Desktop Entry Specification. Consult the specification for more details about the meanings of the keys below.

KEY_FILE_DESKTOP_KEY_ACTIONS = "Actions"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string list giving the available application actions.

KEY_FILE_DESKTOP_KEY_CATEGORIES = "Categories"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of strings giving the categories in which the desktop entry should be shown in a menu.

KEY_FILE_DESKTOP_KEY_COMMENT = "Comment"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized string giving the tooltip for the desktop entry.

KEY_FILE_DESKTOP_KEY_DBUS_ACTIVATABLE = "DBusActivatable"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean set to true if the application is D-Bus activatable.

KEY_FILE_DESKTOP_KEY_EXEC = "Exec"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string giving the command line to execute. It is only valid for desktop entries with the Application type.

KEY_FILE_DESKTOP_KEY_GENERIC_NAME = "GenericName"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized string giving the generic name of the desktop entry.

KEY_FILE_DESKTOP_KEY_HIDDEN = "Hidden"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean stating whether the desktop entry has been deleted by the user.

KEY_FILE_DESKTOP_KEY_ICON = "Icon"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized string giving the name of the icon to be displayed for the desktop entry.

KEY_FILE_DESKTOP_KEY_MIME_TYPE = "MimeType"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of strings giving the MIME types supported by this desktop entry.

KEY_FILE_DESKTOP_KEY_NAME = "Name"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a localized string giving the specific name of the desktop entry.

KEY_FILE_DESKTOP_KEY_NO_DISPLAY = "NoDisplay"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean stating whether the desktop entry should be shown in menus.

KEY_FILE_DESKTOP_KEY_NOT_SHOW_IN = "NotShowIn"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of strings identifying the environments that should not display the desktop entry.

KEY_FILE_DESKTOP_KEY_ONLY_SHOW_IN = "OnlyShowIn"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a list of strings identifying the environments that should display the desktop entry.

KEY_FILE_DESKTOP_KEY_PATH = "Path"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string containing the working directory to run the program in. It is only valid for desktop entries with the Application type.

KEY_FILE_DESKTOP_KEY_STARTUP_NOTIFY = "StartupNotify"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean stating whether the application supports the Startup Notification Protocol Specification.

KEY_FILE_DESKTOP_KEY_STARTUP_WM_CLASS = "StartupWMClass"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is string identifying the WM class or name hint of a window that the application will create, which can be used to emulate Startup Notification with older applications.

KEY_FILE_DESKTOP_KEY_TERMINAL = "Terminal"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a boolean stating whether the program should be run in a terminal window.

It is only valid for desktop entries with the Application type.

KEY_FILE_DESKTOP_KEY_TRY_EXEC = "TryExec"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string giving the file name of a binary on disk used to determine if the program is actually installed. It is only valid for desktop entries with the Application type.

KEY_FILE_DESKTOP_KEY_TYPE = "Type"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string giving the type of the desktop entry.

Usually %G_KEY_FILE_DESKTOP_TYPE_APPLICATION, %G_KEY_FILE_DESKTOP_TYPE_LINK, or %G_KEY_FILE_DESKTOP_TYPE_DIRECTORY.

KEY_FILE_DESKTOP_KEY_URL = "URL"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string giving the URL to access. It is only valid for desktop entries with the Link type.

KEY_FILE_DESKTOP_KEY_VERSION = "Version"

A key under %G_KEY_FILE_DESKTOP_GROUP, whose value is a string giving the version of the Desktop Entry Specification used for the desktop entry file.

KEY_FILE_DESKTOP_TYPE_APPLICATION = "Application"

The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop entries representing applications.

KEY_FILE_DESKTOP_TYPE_DIRECTORY = "Directory"

The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop entries representing directories.

KEY_FILE_DESKTOP_TYPE_LINK = "Link"

The value of the %G_KEY_FILE_DESKTOP_KEY_TYPE, key for desktop entries representing links to documents.

LITTLE_ENDIAN = 1234

Specifies one of the possible types of byte order. See %G_BYTE_ORDER.

LN10 = 2.302585

The natural logarithm of 10.

LN2 = 0.693147

The natural logarithm of 2.

LOG_2_BASE_10 = 0.30103

Multiplying the base 2 exponent by this number yields the base 10 exponent.

LOG_DOMAIN = 0_i8

Defines the log domain. See Log Domains.

Libraries should define this so that any messages which they log can be differentiated from messages from other libraries and application code. But be careful not to define it in any public header files.

Log domains must be unique, and it is recommended that they are the application or library name, optionally followed by a hyphen and a sub-domain name. For example, bloatpad or bloatpad-io.

If undefined, it defaults to the default nil (or "") log domain; this is not advisable, as it cannot be filtered against using the G_MESSAGES_DEBUG environment variable.

For example, GTK+ uses this in its Makefile.am: |[ AM_CPPFLAGS = -DG_LOG_DOMAIN="Gtk" ]|

Applications can choose to leave it as the default nil (or "") domain. However, defining the domain offers the same advantages as above.

LOG_FATAL_MASK = 5

GLib log levels that are considered fatal by default.

This is not used if structured logging is enabled; see [Using Structured Logging][using-structured-logging].

LOG_LEVEL_USER_SHIFT = 8

Log levels below 1<<G_LOG_LEVEL_USER_SHIFT are used by GLib. Higher bits can be used for user-defined log levels.

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.

MAXINT16 = 32767_i16

The maximum value which can be held in a #gint16.

MAXINT32 = 2147483647

The maximum value which can be held in a #gint32.

MAXINT64 = 9223372036854775807_i64

The maximum value which can be held in a #gint64.

MAXINT8 = 127_i8

The maximum value which can be held in a #gint8.

MAXUINT16 = 65535_u16

The maximum value which can be held in a #guint16.

MAXUINT32 = 4294967295_u32

The maximum value which can be held in a #guint32.

MAXUINT64 = 18446744073709551615_u64

The maximum value which can be held in a #guint64.

MAXUINT8 = 255_u8

The maximum value which can be held in a #guint8.

MICRO_VERSION = 0

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.

MININT16 = -32768_i16

The minimum value which can be held in a #gint16.

MININT32 = -2147483648

The minimum value which can be held in a #gint32.

MININT64 = -9223372036854775808_i64

The minimum value which can be held in a #gint64.

MININT8 = -128_i8

The minimum value which can be held in a #gint8.

MINOR_VERSION = 74

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.

MODULE_SUFFIX = "so"
OPTION_REMAINING = ""

If a long option in the main group has this name, it is not treated as a regular option. Instead it collects all non-option arguments which would otherwise be left in argv. The option must be of type %G_OPTION_ARG_CALLBACK, %G_OPTION_ARG_STRING_ARRAY or %G_OPTION_ARG_FILENAME_ARRAY.

Using %G_OPTION_REMAINING instead of simply scanning argv for leftover arguments has the advantage that GOption takes care of necessary encoding conversions for strings or filenames.

PDP_ENDIAN = 3412

Specifies one of the possible types of byte order (currently unused). See %G_BYTE_ORDER.

PI = 3.141593

The value of pi (ratio of circle's circumference to its diameter).

PI_2 = 1.570796

Pi divided by 2.

PI_4 = 0.785398

Pi divided by 4.

PID_FORMAT = "i"

A format specifier that can be used in printf()-style format strings when printing a #GPid.

POLLFD_FORMAT = "%d"

A format specifier that can be used in printf()-style format strings when printing the @fd member of a #GPollFD.

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+.

SEARCHPATH_SEPARATOR = 58

The search path separator character. This is ':' on UNIX machines and ';' under Windows.

SEARCHPATH_SEPARATOR_S = ":"

The search path separator as a string. This is ":" on UNIX machines and ";" under Windows.

SIZEOF_LONG = 8
SIZEOF_SIZE_T = 8
SIZEOF_SSIZE_T = 8
SIZEOF_VOID_P = 8
SOURCE_CONTINUE = true

Use this macro as the return value of a #GSourceFunc to leave the #GSource in the main loop.

SOURCE_REMOVE = true

Use this macro as the return value of a #GSourceFunc to remove the #GSource from the main loop.

SQRT2 = 1.414214

The square root of two.

STR_DELIMITERS = "_-|> <."

The standard delimiters, used in g_strdelimit().

SYSDEF_AF_INET = 2
SYSDEF_AF_INET6 = 10
SYSDEF_AF_UNIX = 1
SYSDEF_MSG_DONTROUTE = 4
SYSDEF_MSG_OOB = 1
SYSDEF_MSG_PEEK = 2
TEST_OPTION_ISOLATE_DIRS = "isolate_dirs"

Creates a unique temporary directory for each unit test and uses g_set_user_dirs() to set XDG directories to point into subdirectories of it for the duration of the unit test. The directory tree is cleaned up after the test finishes successfully. Note that this doesn’t take effect until g_test_run() is called, so calls to (for example) g_get_user_home_dir() will return the system-wide value when made in a test program’s main() function.

The following functions will return subdirectories of the temporary directory when this option is used. The specific subdirectory paths in use are not guaranteed to be stable API — always use a getter function to retrieve them.

  • g_get_home_dir()
  • g_get_user_cache_dir()
  • g_get_system_config_dirs()
  • g_get_user_config_dir()
  • g_get_system_data_dirs()
  • g_get_user_data_dir()
  • g_get_user_state_dir()
  • g_get_user_runtime_dir()

The subdirectories may not be created by the test harness; as with normal calls to functions like g_get_user_cache_dir(), the caller must be prepared to create the directory if it doesn’t exist.

TIME_SPAN_DAY = 86400000000_i64

Evaluates to a time span of one day.

TIME_SPAN_HOUR = 3600000000_i64

Evaluates to a time span of one hour.

TIME_SPAN_MILLISECOND = 1000_i64

Evaluates to a time span of one millisecond.

TIME_SPAN_MINUTE = 60000000_i64

Evaluates to a time span of one minute.

TIME_SPAN_SECOND = 1000000_i64

Evaluates to a time span of one second.

UNICHAR_MAX_DECOMPOSITION_LENGTH = 18

The maximum length (in codepoints) of a compatibility or canonical decomposition of a single Unicode character.

This is as defined by Unicode 6.1.

URI_RESERVED_CHARS_GENERIC_DELIMITERS = ":/?#[]@"

Generic delimiters characters as defined in RFC 3986. Includes :/?#[]@.

URI_RESERVED_CHARS_SUBCOMPONENT_DELIMITERS = "!$&'()*+,;="

Subcomponent delimiter characters as defined in RFC 3986. Includes !$&'()*+,;=.

USEC_PER_SEC = 1000000

Number of microseconds in one second (1 million). This macro is provided for code readability.

VA_COPY_AS_ARRAY = 1
VERSION_MIN_REQUIRED = 2

A macro that should be defined by the user prior to including the glib.h header. The definition should be one of the predefined GLib version macros: %GLIB_VERSION_2_26, %GLIB_VERSION_2_28,...

This macro defines the earliest version of GLib that the package is required to be able to compile against.

If the compiler is configured to warn about the use of deprecated functions, then using functions that were deprecated in version %GLIB_VERSION_MIN_REQUIRED or earlier will cause warnings (but using functions deprecated in later releases will not).

WIN32_MSG_HANDLE = 19981206

Class Method Summary

Instance Method Summary

Class Method Detail

def self.application_name : String? #

def self.application_name=(application_name : String) : Nil #

def self.atomic_int_compare_and_exchange_full(atomic : Pointer(Int32), oldval : Int32, newval : Int32, preval : Int32) : Bool #

def self.atomic_int_exchange(atomic : Pointer(Int32), newval : Int32) : Int32 #

def self.atomic_pointer_compare_and_exchange_full(atomic : Pointer(Void), oldval : Pointer(Void)?, newval : Pointer(Void)?, preval : Pointer(Void)) : Bool #

def self.atomic_pointer_exchange(atomic : Pointer(Void)?, newval : Pointer(Void)?) : Pointer(Void)? #

def self.bit_nth_lsf(mask : UInt64, nth_bit : Int32) : Int32 #

def self.bit_nth_msf(mask : UInt64, nth_bit : Int32) : Int32 #

def self.bit_storage(number : UInt64) : UInt32 #

def self.check_version(required_major : UInt32, required_minor : UInt32, required_micro : UInt32) : String? #

def self.datalist_id_remove_multiple(datalist : GLib::Data, keys : Enumerable(UInt32)) : Nil #

def self.format_size_for_display(size : Int64) : String #

def self.idle_add(priority : Priority = Priority::Default, &block : -> Bool) #

def self.idle_remove_by_data(data : Pointer(Void)?) : Bool #

def self.idle_source_new : GLib::Source #

def self.main_context_default : GLib::MainContext #

def self.main_context_get_thread_default : GLib::MainContext? #

def self.main_context_ref_thread_default : GLib::MainContext #

def self.main_current_source : GLib::Source? #

def self.main_depth : Int32 #

def self.markup_escape_text(text : String, length : Int64) : String #

def self.on_error_query(prg_name : String) : Nil #

def self.on_error_stack_trace(prg_name : String) : Nil #

def self.os_info(key_name : String) : String? #

def self.prgname : String? #

def self.prgname=(prgname : String) : Nil #

def self.quark_from_string(string : String?) : UInt32 #

def self.quark_to_string(quark : UInt32) : String #

def self.quark_try_string(string : String?) : UInt32 #

def self.reload_user_special_dirs_cache : Nil #

def self.source_remove(tag : UInt32) : Bool #

def self.source_set_name_by_id(tag : UInt32, name : String) : Nil #

def self.spaced_primes_closest(num : UInt32) : UInt32 #

def self.system_config_dirs : Enumerable(String) #

def self.system_data_dirs : Enumerable(String) #

def self.timeout(interval : Time::Span, priority : Priority = Priority::Default, &block : -> Bool) #

def self.timeout_milliseconds(interval : UInt32, priority : Priority = Priority::Default, &block : -> Bool) #

def self.timeout_seconds(interval : UInt32, priority : Priority = Priority::Default, &block : -> Bool) #

def self.timeout_source_new(interval : UInt32) : GLib::Source #

def self.timeout_source_new_seconds(interval : UInt32) : GLib::Source #

def self.user_cache_dir : Path #

def self.user_config_dir : Path #

def self.user_data_dir : Path #

def self.user_runtime_dir : Path #

def self.user_special_dir(directory : GLib::UserDirectory) : Path? #

def self.user_state_dir : Path #

def self.variant_get_gtype : UInt64 #

def self.variant_is_object_path(string : String) : Bool #

def self.variant_is_signature(string : String) : Bool #

def self.variant_parse_error_print_context(error : GLib::Error, source_str : String) : String #

def self.variant_parse_error_quark : UInt32 #

def self.variant_parser_get_error_quark : UInt32 #

def self.variant_type_checked_(arg0 : String) : GLib::VariantType #

def self.variant_type_string_get_depth_(type_string : String) : UInt64 #

def self.variant_type_string_is_valid(type_string : String) : Bool #

def self.variant_type_string_scan(string : String, limit : String?) : Bool #

Instance Method Detail

def variant_parse(type : GLib::VariantType?, text : String, limit : String?, endptr : String?) : GLib::Variant #