module GObject

Extended Modules

Defined in:

lib/gi-crystal/src/auto/g_object-2.0/binding.cr
lib/gi-crystal/src/auto/g_object-2.0/binding_group.cr
lib/gi-crystal/src/auto/g_object-2.0/c_closure.cr
lib/gi-crystal/src/auto/g_object-2.0/closure.cr
lib/gi-crystal/src/auto/g_object-2.0/closure_notify_data.cr
lib/gi-crystal/src/auto/g_object-2.0/enum_class.cr
lib/gi-crystal/src/auto/g_object-2.0/enum_value.cr
lib/gi-crystal/src/auto/g_object-2.0/flags_class.cr
lib/gi-crystal/src/auto/g_object-2.0/flags_value.cr
lib/gi-crystal/src/auto/g_object-2.0/g_object.cr
lib/gi-crystal/src/auto/g_object-2.0/initially_unowned.cr
lib/gi-crystal/src/auto/g_object-2.0/interface_info.cr
lib/gi-crystal/src/auto/g_object-2.0/object.cr
lib/gi-crystal/src/auto/g_object-2.0/object_construct_param.cr
lib/gi-crystal/src/auto/g_object-2.0/param_spec.cr
lib/gi-crystal/src/auto/g_object-2.0/param_spec_pool.cr
lib/gi-crystal/src/auto/g_object-2.0/parameter.cr
lib/gi-crystal/src/auto/g_object-2.0/signal_group.cr
lib/gi-crystal/src/auto/g_object-2.0/signal_invocation_hint.cr
lib/gi-crystal/src/auto/g_object-2.0/type_class.cr
lib/gi-crystal/src/auto/g_object-2.0/type_fundamental_info.cr
lib/gi-crystal/src/auto/g_object-2.0/type_info.cr
lib/gi-crystal/src/auto/g_object-2.0/type_instance.cr
lib/gi-crystal/src/auto/g_object-2.0/type_interface.cr
lib/gi-crystal/src/auto/g_object-2.0/type_module.cr
lib/gi-crystal/src/auto/g_object-2.0/type_plugin.cr
lib/gi-crystal/src/auto/g_object-2.0/type_plugin_class.cr
lib/gi-crystal/src/auto/g_object-2.0/type_query.cr
lib/gi-crystal/src/auto/g_object-2.0/type_value_table.cr
lib/gi-crystal/src/auto/g_object-2.0/value_array.cr
lib/gi-crystal/src/bindings/g_object/object.cr
lib/gi-crystal/src/bindings/g_object/param_spec.cr
lib/gi-crystal/src/bindings/g_object/signal.cr
lib/gi-crystal/src/bindings/g_object/signal_connection.cr
lib/gi-crystal/src/bindings/g_object/type.cr
lib/gi-crystal/src/bindings/g_object/value.cr

Constant Summary

PARAM_MASK = 255

Mask containing the bits of #GParamSpec.flags which are reserved for GLib.

PARAM_STATIC_STRINGS = 224

#GParamFlags value alias for %G_PARAM_STATIC_NAME | %G_PARAM_STATIC_NICK | %G_PARAM_STATIC_BLURB.

It is recommended to use this for all properties by default, as it allows for internal performance improvements in GObject.

It is very rare that a property would have a dynamically constructed name, nickname or blurb.

Since 2.13.0

PARAM_USER_SHIFT = 8

Minimum shift count to be used for user defined flags, to be stored in #GParamSpec.flags. The maximum allowed is 10.

SIGNAL_FLAGS_MASK = 511

A mask for all #GSignalFlags bits.

SIGNAL_MATCH_MASK = 63

A mask for all #GSignalMatchType bits.

TYPE_BOOL = 20_u64
TYPE_BOXED = 72_u64
TYPE_CHAR = 12_u64
TYPE_DOUBLE = 60_u64
TYPE_ENUM = 48_u64
TYPE_FLAG_RESERVED_ID_BIT = 1_u64

A bit in the type number that's supposed to be left untouched.

TYPE_FLAGS = 52_u64
TYPE_FLOAT = 56_u64
TYPE_FUNDAMENTAL_MAX = 255

An integer constant that represents the number of identifiers reserved for types that are assigned at compile-time.

TYPE_FUNDAMENTAL_SHIFT = 2

Shift value used in converting numbers to type IDs.

TYPE_INT = 24_u64
TYPE_INT64 = 40_u64
TYPE_INTERFACE = 8_u64
TYPE_INVALID = 0_u64
TYPE_LONG = 32_u64
TYPE_NONE = 4_u64
TYPE_OBJECT = 80_u64
TYPE_PARAM = 76_u64
TYPE_POINTER = 68_u64
TYPE_RESERVED_BSE_FIRST = 32

First fundamental type number to create a new fundamental type id with G_TYPE_MAKE_FUNDAMENTAL() reserved for BSE.

TYPE_RESERVED_BSE_LAST = 48

Last fundamental type number reserved for BSE.

TYPE_RESERVED_GLIB_FIRST = 22

First fundamental type number to create a new fundamental type id with G_TYPE_MAKE_FUNDAMENTAL() reserved for GLib.

TYPE_RESERVED_GLIB_LAST = 31

Last fundamental type number reserved for GLib.

TYPE_RESERVED_USER_FIRST = 49

First available fundamental type number to create new fundamental type id with G_TYPE_MAKE_FUNDAMENTAL().

TYPE_STRING = 64_u64
TYPE_STRV = LibGObject.g_strv_get_type
TYPE_UCHAR = 16_u64
TYPE_UINT = 28_u64
TYPE_UINT64 = 44_u64
TYPE_ULONG = 36_u64
TYPE_VARIANT = 84_u64
VALUE_INTERNED_STRING = 268435456

For string values, indicates that the string contained is canonical and will exist for the duration of the process. See g_value_set_interned_string().

VALUE_NOCOPY_CONTENTS = 134217728

If passed to G_VALUE_COLLECT(), allocated data won't be copied but used verbatim. This does not affect ref-counted types like objects. This does not affect usage of g_value_copy(), the data will be copied if it is not ref-counted.

Class Method Summary

Class Method Detail

def self.param_spec_boolean(name : String, nick : String?, blurb : String?, default_value : Bool, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_char(name : String, nick : String?, blurb : String?, minimum : Int8, maximum : Int8, default_value : Int8, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_double(name : String, nick : String?, blurb : String?, minimum : Float64, maximum : Float64, default_value : Float64, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_enum(name : String, nick : String?, blurb : String?, enum_type : UInt64, default_value : Int32, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_flags(name : String, nick : String?, blurb : String?, flags_type : UInt64, default_value : UInt32, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_float(name : String, nick : String?, blurb : String?, minimum : Float32, maximum : Float32, default_value : Float32, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_gtype(name : String, nick : String?, blurb : String?, is_a_type : UInt64, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_int(name : String, nick : String?, blurb : String?, minimum : Int32, maximum : Int32, default_value : Int32, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_int64(name : String, nick : String?, blurb : String?, minimum : Int64, maximum : Int64, default_value : Int64, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_long(name : String, nick : String?, blurb : String?, minimum : Int64, maximum : Int64, default_value : Int64, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_object(name : String, nick : String?, blurb : String?, object_type : UInt64, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_param(name : String, nick : String?, blurb : String?, param_type : UInt64, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_pointer(name : String, nick : String?, blurb : String?, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_string(name : String, nick : String?, blurb : String?, default_value : String?, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_uchar(name : String, nick : String?, blurb : String?, minimum : UInt8, maximum : UInt8, default_value : UInt8, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_uint(name : String, nick : String?, blurb : String?, minimum : UInt32, maximum : UInt32, default_value : UInt32, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_uint64(name : String, nick : String?, blurb : String?, minimum : UInt64, maximum : UInt64, default_value : UInt64, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_ulong(name : String, nick : String?, blurb : String?, minimum : UInt64, maximum : UInt64, default_value : UInt64, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_unichar(name : String, nick : String?, blurb : String?, default_value : UInt32, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_spec_variant(name : String, nick : String?, blurb : String?, type : GLib::VariantType, default_value : _?, flags : GObject::ParamFlags) : GObject::ParamSpec #

def self.param_value_is_valid(pspec : GObject::ParamSpec, value : _) : Bool #