Movatterモバイル変換


[0]ホーム

URL:


Namespace

GObject – 2.0

The base type system and object class

Version2.87.0
AuthorsGLib Development Team
LicenseLGPL-2.1-or-later
Websitehttps://www.gtk.org
Sourcehttps://gitlab.gnome.org/GNOME/glib/

Build

C headersglib-object.h
pkg-config filesgobject-2.0

Dependencies

GLib—2.0The base utility library
Browse documentation

Related libraries

GModulePortable API for dynamically loading modules
Browse documentation
GIOGObject Interfaces and Objects, Networking, IPC, and I/O
Browse documentation

Additional documentation

Classes

Binding

GObject instance (or source) and another property on anotherGObjectinstance (or target).

since: 2.26

BindingGroup

GBindingGroup can be used to bind multiple propertiesfrom an object collectively.

since: 2.72

InitiallyUnowned

A type for objects that have an initially floating reference.

Object

The base object type.

ParamSpec

GParamSpec encapsulates the metadata required to specify parameters, such asGObject properties.

ParamSpecBoolean

AGParamSpec derived structure that contains the meta data for boolean properties.

ParamSpecBoxed

AGParamSpec derived structure that contains the meta data for boxed properties.

ParamSpecChar

AGParamSpec derived structure that contains the meta data for character properties.

ParamSpecDouble

AGParamSpec derived structure that contains the meta data for double properties.

ParamSpecEnum

AGParamSpec derived structure that contains the meta data for enum properties.

ParamSpecFlags

AGParamSpec derived structure that contains the meta data for flags properties.

ParamSpecFloat

AGParamSpec derived structure that contains the meta data for float properties.

ParamSpecGType

AGParamSpec derived structure that contains the meta data forGType properties.

since: 2.10

ParamSpecInt

AGParamSpec derived structure that contains the meta data for integer properties.

ParamSpecInt64

AGParamSpec derived structure that contains the meta data for 64bit integer properties.

ParamSpecLong

AGParamSpec derived structure that contains the meta data for long integer properties.

ParamSpecObject

AGParamSpec derived structure that contains the meta data for object properties.

ParamSpecOverride

AGParamSpec derived structure that redirects operations toother types ofGParamSpec.

since: 2.4

ParamSpecParam

AGParamSpec derived structure that contains the meta data forG_TYPE_PARAMproperties.

ParamSpecPointer

AGParamSpec derived structure that contains the meta data for pointer properties.

ParamSpecString

AGParamSpec derived structure that contains the meta data for string properties.

ParamSpecUChar

AGParamSpec derived structure that contains the meta data for unsigned character properties.

ParamSpecUInt

AGParamSpec derived structure that contains the meta data for unsigned integer properties.

ParamSpecUInt64

AGParamSpec derived structure that contains the meta data for unsigned 64bit integer properties.

ParamSpecULong

AGParamSpec derived structure that contains the meta data for unsigned long integer properties.

ParamSpecUnichar

AGParamSpec derived structure that contains the meta data for unichar (unsigned integer) properties.

ParamSpecValueArray

AGParamSpec derived structure that contains the meta data forGValueArray properties.

ParamSpecVariant

AGParamSpec derived structure that contains the meta data forGVariant properties.

since: 2.26

SignalGroup

GSignalGroup manages a collection of signals on aGObject.

since: 2.72

TypeModule

GTypeModule provides a simple implementation of theGTypePlugininterface.

Interfaces

TypePlugin

An interface that handles the lifecycle of dynamically loaded types.

Structs

CClosure

AGCClosure is a specialization ofGClosure for C function callbacks.

Closure

AGClosure represents a callback supplied by the programmer.

ClosureNotifyData

EnumClass

The class of an enumeration type holds information about itspossible values.

EnumValue

A structure which contains a single enum value, its name, and its nickname.

FlagsClass

The class of a flags type holds information about itspossible values.

FlagsValue

A structure which contains a single flags value, its name, and its nickname.

InterfaceInfo

A structure that provides information to the type system which isused specifically for managing interface types.

ObjectConstructParam

The GObjectConstructParam struct is an auxiliary structure used to handGParamSpec/GValue pairs to theconstructor of aGObjectClass.

Parameter

The GParameter struct is an auxiliary structure usedto hand parameter name/value pairs to g_object_newv().

deprecated: 2.54 

ParamSpecPool

AGParamSpecPool maintains a collection ofGParamSpecs which can bequickly accessed by owner and name.

ParamSpecTypeInfo

This structure is used to provide the type system with the informationrequired to initialize and destruct (finalize) a parameter’s class andinstances thereof.

SignalInvocationHint

TheGSignalInvocationHint structure is used to pass on additional informationto callbacks during a signal emission.

SignalQuery

A structure holding in-depth information for a specific signal.

TypeClass

An opaque structure used as the base of all classes.

TypeFundamentalInfo

A structure that provides information to the type system which isused specifically for managing fundamental types.

TypeInfo

This structure is used to provide the type system with the informationrequired to initialize and destruct (finalize) a type’s class andits instances.

TypeInstance

An opaque structure used as the base of all type instances.

TypeInterface

An opaque structure used as the base of all interface types.

TypePluginClass

TheGTypePlugin interface is used by the type system in order to handlethe lifecycle of dynamically loaded types.

TypeQuery

A structure holding information for a specific type.

TypeValueTable
  • 'i': Integers, passed ascollect_values[].v_int
  • 'l': Longs, passed ascollect_values[].v_long
  • 'd': Doubles, passed ascollect_values[].v_double
  • 'p': Pointers, passed ascollect_values[].v_pointer.

Value

An opaque structure used to hold different types of values.

ValueArray

AGValueArray is a container structure to hold an array of generic values.

deprecated: 2.32 

WeakRef

A structure containing a weak reference to aGObject.

Unions

TypeCValue

A union holding one collected value.

Aliases

SignalCMarshaller

This is the signature of marshaller functions, required to marshallarrays of parameter values to signal emissions into C language callback invocations.

SignalCVaMarshaller

This is the signature of va_list marshaller functions, an optionalmarshaller that can be used in some situations to avoidmarshalling the signal argument into GValues.

Type

A numerical value which represents the unique identifier of a registered type.

Bitfields

BindingFlags

Flags to be passed tog_object_bind_property() or g_object_bind_property_full().

since: 2.26

ConnectFlags

The connection flags are used to specify the behaviour of a signal’s connection.

IOCondition

ParamFlags

Through theGParamFlags flag values, certain aspects of parameterscan be configured.

SignalFlags

The signal flags are used to specify a signal’s behaviour.

SignalMatchType

The match types specify what g_signal_handlers_block_matched(),g_signal_handlers_unblock_matched() andg_signal_handlers_disconnect_matched()match signals by.

TypeDebugFlags

These flags used to be passed tog_type_init_with_debug_flags() whichis now deprecated.

deprecated: 2.36 

TypeFlags

Bit masks used to check or determine characteristics of a type.

TypeFundamentalFlags

Bit masks used to check or determine specific characteristics of afundamental type.

Callbacks

BaseFinalizeFunc

A callback function used by the type system to finalize those portionsof a derived types class structure that were setup from the correspondingGBaseInitFunc() function.

BaseInitFunc

A callback function used by the type system to do base initializationof the class structures of derived types.

BindingTransformFunc

A function to be called to transformfrom_value toto_value.

since: 2.26

BoxedCopyFunc

This function is provided by the user and should produce a copyof the passed in boxed structure.

BoxedFreeFunc

This function is provided by the user and should free the boxedstructure passed.

Callback

The type used for callback functions in structure definitions and function signatures.

ClassFinalizeFunc

A callback function used by the type system to finalize a class.

ClassInitFunc

A callback function used by the type system to initialize the classof a specific type.

ClosureMarshal

The type used for marshaller functions.

ClosureNotify

The type used for the various notification callbacks which can be registeredon closures.

InstanceInitFunc

A callback function used by the type system to initialize a newinstance of a type.

InterfaceFinalizeFunc

A callback function used by the type system to finalize an interface.

InterfaceInitFunc

A callback function used by the type system to initialize a new interface.

ObjectFinalizeFunc

The type of thefinalize function ofGObjectClass.

ObjectGetPropertyFunc

The type of theget_property function ofGObjectClass.

ObjectSetPropertyFunc

The type of theset_property function ofGObjectClass.

SignalAccumulator

The signal accumulator is a special callback function that can be usedto collect return values of the various callbacks that are calledduring a signal emission.

SignalEmissionHook

A simple function pointer to get invoked when the signal is emitted.

ToggleNotify

A callback function used for notification when the stateof a toggle reference changes.

TypeClassCacheFunc

A callback function which is called when the reference count of a classdrops to zero.

TypeInterfaceCheckFunc

A callback called after an interface vtable is initialized.

since: 2.4

TypePluginCompleteInterfaceInfo

The type of thecomplete_interface_info function ofGTypePluginClass.

TypePluginCompleteTypeInfo

The type of thecomplete_type_info function ofGTypePluginClass.

TypePluginUnuse

The type of theunuse_plugin function ofGTypePluginClass.

TypePluginUse

The type of theuse_plugin function ofGTypePluginClass, which gets calledto increase the use count ofplugin.

TypeValueCollectFunc

This function is responsible for converting the values collected froma variadic argument list into contents suitable for storage in aGValue.

since: 2.78

TypeValueCopyFunc

Copies the content of aGValue into another.

since: 2.78

TypeValueFreeFunc

Frees any old contents that might be left in thevalue->data array ofthe given value.

since: 2.78

TypeValueInitFunc

Initializes the value contents by setting the fields of thevalue->dataarray.

since: 2.78

TypeValueLCopyFunc

This function is responsible for storing thevaluecontents into arguments passed through a variadic argument list whichgot collected intocollect_values according tolcopy_format.

since: 2.78

TypeValuePeekPointerFunc

If the value contents fit into a pointer, such as objects or strings,return this pointer, so the caller can peek at the current contents.

since: 2.78

VaClosureMarshal

This is the signature of va_list marshaller functions, an optionalmarshaller that can be used in some situations to avoidmarshalling the signal argument into GValues.

ValueTransform

The type of value transformation functions which can be registered withg_value_register_transform_func().

WeakNotify

AGWeakNotify function can be added to an object as a callback that getstriggered when the object is finalized.

Functions

boxed_copy

Provide a copy of a boxed structuresrc_boxed which is of typeboxed_type.

boxed_free

Free the boxed structureboxed which is of typeboxed_type.

boxed_type_register_static

This function creates a newG_TYPE_BOXED derived type id for a newboxed type with namename.

clear_object

Clears a reference to aGObject.

since: 2.28

clear_signal_handler

Disconnects a handler frominstance so it will not be called duringany future or currently ongoing emissions of the signal it has beenconnected to. Thehandler_id_ptr is then set to zero, which is never a valid handlerID value (see g_signal_connect()).

since: 2.62

enum_complete_type_info

This function is meant to be called from thecomplete_type_infofunction of aGTypePlugin implementation, as in the following example:.

enum_get_value

Returns theGEnumValue for a value.

enum_get_value_by_name

Looks up aGEnumValue by name.

enum_get_value_by_nick

Looks up aGEnumValue by nickname.

enum_register_static

Registers a new static enumeration type with the namename.

enum_to_string

Pretty-printsvalue in the form of the enum’s name.

since: 2.54

flags_complete_type_info

This function is meant to be called from thecomplete_type_info()function of aGTypePlugin implementation, see the example forg_enum_complete_type_info() above.

flags_get_first_value

Returns the firstGFlagsValue which is set invalue.

flags_get_value_by_name

Looks up aGFlagsValue by name.

flags_get_value_by_nick

Looks up aGFlagsValue by nickname.

flags_register_static

Registers a new static flags type with the namename.

flags_to_string

Pretty-printsvalue in the form of the flag names separated by| andsorted. Any extra bits will be shown at the end as a hexadecimal number.

since: 2.54

gtype_get_type

param_spec_boolean

Creates a newGParamSpecBoolean instance specifying aG_TYPE_BOOLEANproperty. In many cases, it may be more appropriate to use an enum withg_param_spec_enum(), both to improve code clarity by using explicitly namedvalues, and to allow for more values to be added in future without breakingAPI.

param_spec_boxed

Creates a newGParamSpecBoxed instance specifying aG_TYPE_BOXEDderived property.

param_spec_char

Creates a newGParamSpecChar instance specifying aG_TYPE_CHAR property.

param_spec_double

Creates a newGParamSpecDouble instance specifying aG_TYPE_DOUBLEproperty.

param_spec_enum

Creates a newGParamSpecEnum instance specifying aG_TYPE_ENUMproperty.

param_spec_flags

Creates a newGParamSpecFlags instance specifying aG_TYPE_FLAGSproperty.

param_spec_float

Creates a newGParamSpecFloat instance specifying aG_TYPE_FLOAT property.

param_spec_gtype

Creates a newGParamSpecGType instance specifying aG_TYPE_GTYPE property.

since: 2.10

param_spec_int

Creates a newGParamSpecInt instance specifying aG_TYPE_INT property.

param_spec_int64

Creates a newGParamSpecInt64 instance specifying aG_TYPE_INT64 property.

param_spec_long

Creates a newGParamSpecLong instance specifying aG_TYPE_LONG property.

param_spec_object

Creates a newGParamSpecBoxed instance specifying aG_TYPE_OBJECTderived property.

param_spec_override

Creates a new property of typeGParamSpecOverride. This is usedto direct operations to another paramspec, and will not be directlyuseful unless you are implementing a new base type similar to GObject.

since: 2.4

param_spec_param

Creates a newGParamSpecParam instance specifying aG_TYPE_PARAMproperty.

param_spec_pointer

Creates a newGParamSpecPointer instance specifying a pointer property.Where possible, it is better to useg_param_spec_object() org_param_spec_boxed() to expose memory management information.

param_spec_string

Creates a newGParamSpecString instance.

param_spec_uchar

Creates a newGParamSpecUChar instance specifying aG_TYPE_UCHAR property.

param_spec_uint

Creates a newGParamSpecUInt instance specifying aG_TYPE_UINT property.

param_spec_uint64

Creates a newGParamSpecUInt64 instance specifying aG_TYPE_UINT64property.

param_spec_ulong

Creates a newGParamSpecULong instance specifying aG_TYPE_ULONGproperty.

param_spec_unichar

Creates a newGParamSpecUnichar instance specifying aG_TYPE_UINTproperty.GValue structures for this property can be accessed withg_value_set_uint() and g_value_get_uint().

param_spec_value_array

Creates a newGParamSpecValueArray instance specifying aG_TYPE_VALUE_ARRAY property.G_TYPE_VALUE_ARRAY is aG_TYPE_BOXED type, as such,GValue structures for this propertycan be accessed withg_value_set_boxed() and g_value_get_boxed().

param_spec_variant

Creates a newGParamSpecVariant instance specifying aGVariantproperty.

since: 2.26

param_type_register_static

Registersname as the name of a new static type derivedfromG_TYPE_PARAM.

param_value_convert

Transformssrc_value intodest_value if possible, and thenvalidatesdest_value, in order for it to conform topspec. Ifstrict_validation isTRUE this function will only succeed if thetransformeddest_value complied topspec without modifications.

param_value_defaults

Checks whethervalue contains the default value as specified inpspec.

param_value_is_valid

Return whether the contents ofvalue comply with the specificationsset out bypspec.

since: 2.74

param_value_set_default

Setsvalue to its default value as specified inpspec.

param_value_validate

Ensures that the contents ofvalue comply with the specificationsset out bypspec. For example, aGParamSpecInt might requirethat integers stored invalue may not be smaller than -42 and not begreater than +42. Ifvalue contains an integer outside of this range,it is modified accordingly, so the resulting value will fit into therange -42 .. +42.

param_values_cmp

Comparesvalue1 withvalue2 according topspec, and return -1, 0 or +1,ifvalue1 is found to be less than, equal to or greater thanvalue2, respectively.

pointer_type_register_static

Creates a newG_TYPE_POINTER derived type id for a newpointer type with namename.

signal_accumulator_first_wins

A predefinedGSignalAccumulator for signals intended to be used as ahook for application code to provide a particular value. Usuallyonly one such value is desired and multiple handlers for the samesignal don’t make much sense (except for the case of the defaulthandler defined in the class structure, in which case you willusually want the signal connection to override the class handler).

since: 2.28

signal_accumulator_true_handled

A predefinedGSignalAccumulator for signals that return aboolean values. The behavior that this accumulator gives isthat a return ofTRUE stops the signal emission: no furthercallbacks will be invoked, while a return ofFALSE allowsthe emission to continue. The idea here is that aTRUE returnindicates that the callback handled the signal, and no furtherhandling is needed.

since: 2.4

signal_add_emission_hook

Adds an emission hook for a signal, which will get called for any emissionof that signal, independent of the instance. This is possible onlyfor signals which don’t haveG_SIGNAL_NO_HOOKS flag set.

signal_chain_from_overridden

Calls the original class closure of a signal. This function should onlybe called from an overridden class closure; seeg_signal_override_class_closure() and g_signal_override_class_handler().

signal_chain_from_overridden_handler

Calls the original class closure of a signal. This function shouldonly be called from an overridden class closure; seeg_signal_override_class_closure() and g_signal_override_class_handler().

since: 2.18

signal_connect_closure

Connects a closure to a signal for a particular object.

signal_connect_closure_by_id

Connects a closure to a signal for a particular object.

signal_connect_data

Connects aGCallback function to a signal for a particular object. Similarto g_signal_connect(), but allows to provide aGClosureNotify for the datawhich will be called when the signal handler is disconnected and no longerused. Specifyconnect_flags if you need..._after() or..._swapped() variants of this function.

signal_connect_object

This is similar to g_signal_connect_data(), but uses a closure whichensures that thegobject stays alive during the call toc_handlerby temporarily adding a reference count togobject.

signal_emit

Emits a signal. Signal emission is done synchronously.The method will only return control after all handlers are called or signal emission was stopped.

signal_emit_by_name

Emits a signal. Signal emission is done synchronously.The method will only return control after all handlers are called or signal emission was stopped.

signal_emit_valist

Emits a signal. Signal emission is done synchronously.The method will only return control after all handlers are called or signal emission was stopped.

signal_emitv

Emits a signal. Signal emission is done synchronously.The method will only return control after all handlers are called or signal emission was stopped.

signal_get_invocation_hint

Returns the invocation hint of the innermost signal emission of instance.

signal_handler_block

Blocks a handler of an instance so it will not be called during anysignal emissions unless it is unblocked again. Thus “blocking” asignal handler means to temporarily deactivate it, a signal handlerhas to be unblocked exactly the same amount of times it has beenblocked before to become active again.

signal_handler_disconnect

Disconnects a handler from an instance so it will not be called duringany future or currently ongoing emissions of the signal it has beenconnected to. Thehandler_id becomes invalid and may be reused.

signal_handler_find

Finds the first signal handler that matches certain selection criteria.The criteria mask is passed as anOR-ed combination ofGSignalMatchTypeflags, and the criteria values are passed as arguments.The matchmask has to be non-0 for successful matches.If no handler was found, 0 is returned.

signal_handler_is_connected

Returns whetherhandler_id is theID of a handler connected toinstance.

signal_handler_unblock

Undoes the effect of a previousg_signal_handler_block() call. Ablocked handler is skipped during signal emissions and will not beinvoked, unblocking it (for exactly the amount of times it has beenblocked before) reverts its “blocked” state, so the handler will berecognized by the signal system and is called upon future orcurrently ongoing signal emissions (since the order in whichhandlers are called during signal emissions is deterministic,whether the unblocked handler in question is called as part of acurrently ongoing emission depends on how far that emission hasproceeded yet).

signal_handlers_block_matched

Blocks all handlers on an instance that match a certain selection criteria.

signal_handlers_destroy

Destroy all signal handlers of a type instance. This function isan implementation detail of theGObject dispose implementation,and should not be used outside of the type system.

signal_handlers_disconnect_matched

Disconnects all handlers on an instance that match a certainselection criteria.

signal_handlers_unblock_matched

Unblocks all handlers on an instance that match a certain selection criteria.

signal_has_handler_pending

Returns whether there are any handlers connected toinstance for thegiven signal id and detail.

signal_is_valid_name

Validate a signal name. This can be useful for dynamically-generated signalswhich need to be validated at run-time before actually trying to create them.

since: 2.66

signal_list_ids

Lists the signals by id that a certain instance or interface typecreated. Further information about the signals can be acquired through g_signal_query().

signal_lookup

Given the name of the signal and the type of object it connects to, getsthe signal’s identifying integer. Emitting the signal by number issomewhat faster than using the name each time.

signal_name

Given the signal’s identifier, finds its name.

signal_new

Creates a new signal. (This is usually done in the class initializer.).

signal_new_class_handler

Creates a new signal. (This is usually done in the class initializer.).

since: 2.18

signal_new_valist

Creates a new signal. (This is usually done in the class initializer.).

signal_newv

Creates a new signal. (This is usually done in the class initializer.).

signal_override_class_closure

Overrides the class closure (i.e. the default handler) for the given signalfor emissions on instances ofinstance_type.instance_type must be derivedfrom the type to which the signal belongs.

signal_override_class_handler

Overrides the class closure (i.e. the default handler) for thegiven signal for emissions on instances ofinstance_type withcallbackclass_handler.instance_type must be derived from thetype to which the signal belongs.

since: 2.18

signal_parse_name

Internal function to parse a signal name into itssignal_idanddetail quark.

signal_query

Queries the signal system for in-depth information about aspecific signal. This function will fill in a user-providedstructure to hold signal-specific information. If an invalidsignal id is passed in, thesignal_id member of theGSignalQueryis 0. All members filled into theGSignalQuery structure shouldbe considered constant and have to be left untouched.

signal_remove_emission_hook

Deletes an emission hook.

signal_set_va_marshaller

Change theGSignalCVaMarshaller used for a given signal. This is aspecialised form of the marshaller that can often be used for thecommon case of a single connected signal handler and avoids theoverhead ofGValue. Its use is optional.

since: 2.32

signal_stop_emission

Stops a signal’s current emission.

signal_stop_emission_by_name

Stops a signal’s current emission.

signal_type_cclosure_new

Creates a new closure which invokes the function found at the offsetstruct_offset in the class structure of the interface or classed typeidentified byitype.

source_set_closure

Set the callback for a source as aGClosure.

source_set_dummy_callback

Sets a dummy callback forsource. The callback will do nothing, andif the source expects a #gboolean return value, it will returnTRUE.(If the source expects any other type of return value, it will returna 0/NULL value; whateverg_value_init() initializes aGValue to forthat type.).

strdup_value_contents

Return a newly allocated string, which describes the contents of aGValue. The main purpose of this function is to describeGValuecontents for debugging output, the way in which the contents aredescribed may change between different GLib versions.

type_add_class_cache_func

Adds aGTypeClassCacheFunc to be called before the reference count of aclass goes from one to zero. This can be used to prevent premature classdestruction. All installedGTypeClassCacheFunc functions will be chaineduntil one of them returnsTRUE. The functions have to check the class idpassed in to figure whether they actually want to cache the class of thistype, since all classes are routed through the sameGTypeClassCacheFuncchain.

type_add_class_private

Registers a private class structure for a classed type;when the class is allocated, the private structures forthe class and all of its parent types are allocatedsequentially in the same memory block as the publicstructures, and are zero-filled.

since: 2.24

type_add_instance_private

type_add_interface_check

Adds a function to be called after an interface vtable isinitialized for any class (i.e. after theinterface_initmember ofGInterfaceInfo has been called).

since: 2.4

type_add_interface_dynamic

Addsinterface_type to the dynamicinstance_type. The informationcontained in theGTypePlugin structure pointed to bypluginis used to manage the relationship.

type_add_interface_static

Addsinterface_type to the staticinstance_type.The information contained in theGInterfaceInfo structurepointed to byinfo is used to manage the relationship.

type_check_class_cast

type_check_class_is_a

type_check_instance

Private helper function to aid implementation of theG_TYPE_CHECK_INSTANCE() macro.

type_check_instance_cast

type_check_instance_is_a

type_check_instance_is_fundamentally_a

type_check_is_value_type

type_check_value

type_check_value_holds

type_children

Return a newly allocated and 0-terminated array of type IDs, listingthe child types oftype.

type_create_instance

Creates and initializes an instance oftype iftype is valid andcan be instantiated. The type system only performs basic allocationand structure setups for instances: actual instance creation shouldhappen through functions supplied by the type’s fundamental typeimplementation. So use ofg_type_create_instance() is reserved forimplementers of fundamental types only. E.g. instances of theGObject hierarchy should be created viag_object_new() and neverdirectly throughg_type_create_instance() which doesn’t handle thingslike singleton objects or object construction.

type_default_interface_get

Returns the default interface vtable for the giveng_type.

since: 2.84

type_default_interface_peek

If the interface typeg_type is currently in use, returns itsdefault interface vtable.

since: 2.4

type_default_interface_ref

Increments the reference count for the interface typeg_type,and returns the default interface vtable for the type.

deprecated: 2.84 since: 2.4

type_default_interface_unref

Decrements the reference count for the type corresponding to theinterface default vtableg_iface.

deprecated: 2.84 since: 2.4

type_depth

Returns the length of the ancestry of the passed in type. Thisincludes the type itself, so that e.g. a fundamental type has depth 1.

type_ensure

Ensures that the indicatedtype has been registered with thetype system, and its _class_init() method has been run.

since: 2.34

type_free_instance

Frees an instance of a type, returning it to the instance pool forthe type, if there is one.

type_from_name

Look up the typeID from a given type name, returning 0 if no typehas been registered under this name (this is the preferred methodto find out by name whether a specific type has been registered yet).

type_fundamental

Internal function, used to extract the fundamental typeID portion.Use G_TYPE_FUNDAMENTAL() instead.

type_fundamental_next

Returns the next free fundamental type id which can be used toregister a new fundamental type with g_type_register_fundamental().The returned typeID represents the highest currently registeredfundamental type identifier.

type_get_instance_count

Returns the number of instances allocated of the particular type;this is only available if GLib is built with debugging support andtheinstance-count debug flag is set (by setting theGOBJECT_DEBUGvariable to includeinstance-count).

since: 2.44

type_get_plugin

Returns theGTypePlugin structure fortype.

type_get_qdata

Obtains data which has previously been attached totypewith g_type_set_qdata().

type_get_type_registration_serial

Returns an opaque serial number that represents the state of the setof registered types. Any time a type is registered this serial changes,which means you can cache information based on type lookups (such asg_type_from_name()) and know if the cache is still valid at a latertime by comparing the current serial with the one at the type lookup.

since: 2.36

type_init

This function used to initialise the type system. Since GLib 2.36,the type system is initialised automatically and this function does nothing.

deprecated: 2.36 

type_init_with_debug_flags

This function used to initialise the type system with debuggingflags. Since GLib 2.36, the type system is initialised automaticallyand this function does nothing.

deprecated: 2.36 

type_interfaces

Return a newly allocated and 0-terminated array of type IDs, listingthe interface types thattype conforms to.

type_is_a

Ifis_a_type is a derivable type, check whethertype is adescendant ofis_a_type. Ifis_a_type is an interface, checkwhethertype conforms to it.

type_name

Get the unique name that is assigned to a typeID.

type_name_from_class

type_name_from_instance

type_next_base

Given aleaf_type and aroot_type which is contained in itsancestry, return the type thatroot_type is the immediate parentof. In other words, this function determines the type that isderived directly fromroot_type which is also a base class ofleaf_type. Given a root type and a leaf type, this function canbe used to determine the types and order in which the leaf type isdescended from the root type.

type_parent

Return the direct parent type of the passed in type. If the passedin type has no parent, i.e. is a fundamental type, 0 is returned.

type_qname

Get the corresponding quark of the type IDs name.

type_query

Queries the type system for information about a specific type.

type_register_dynamic

Registerstype_name as the name of a new dynamic type derived fromparent_type. The type system uses the information contained in theGTypePlugin structure pointed to byplugin to manage the type and itsinstances (if not abstract). The value offlags determines the nature(e.g. abstract or not) of the type.

type_register_fundamental

Registerstype_id as the predefined identifier andtype_name as thename of a fundamental type. Iftype_id is already registered, or atype namedtype_name is already registered, the behaviour is undefined.The type system uses the information contained in theGTypeInfo structurepointed to byinfo and theGTypeFundamentalInfo structure pointed to byfinfo to manage the type and its instances. The value offlags determinesadditional characteristics of the fundamental type.

type_register_static

Registerstype_name as the name of a new static type derived fromparent_type. The type system uses the information contained in theGTypeInfo structure pointed to byinfo to manage the type and itsinstances (if not abstract). The value offlags determines the nature(e.g. abstract or not) of the type.

type_register_static_simple

Registerstype_name as the name of a new static type derived fromparent_type. The value offlags determines the nature (e.g.abstract or not) of the type. It works by filling aGTypeInfostruct and calling g_type_register_static().

since: 2.12

type_remove_class_cache_func

Removes a previously installedGTypeClassCacheFunc. The cachemaintained bycache_func has to be empty when callingg_type_remove_class_cache_func() to avoid leaks.

type_remove_interface_check

Removes an interface check function added with g_type_add_interface_check().

since: 2.4

type_set_qdata

Attaches arbitrary data to a type.

type_test_flags

variant_get_gtype

Function Macros

ADD_PRIVATE

A convenience macro to ease adding private data to instances of a new typein the_C_ section of G_DEFINE_TYPE_WITH_CODE() or G_DEFINE_ABSTRACT_TYPE_WITH_CODE().

since: 2.38

ADD_PRIVATE_DYNAMIC

A convenience macro to ease adding private data to instances of a new dynamictype in the_C_ section of G_DEFINE_DYNAMIC_TYPE_EXTENDED().

since: 2.38

assert_finalize_object

Assert thatobject is non-NULL, then release one reference to it withg_object_unref() and assert that it has been finalized (i.e. that thereare no more references).

since: 2.62

CALLBACK

Cast a function pointer to aGCallback.

CCLOSURE_SWAP_DATA

Checks whether the user data of theGCClosure should be passed as thefirst parameter to the callback. See g_cclosure_new_swap().

clear_weak_pointer

Clears a weak reference to aGObject.

since: 2.56

CLOSURE_N_NOTIFIERS

Get the total number of notifiers connected with the closurecl.

CLOSURE_NEEDS_MARSHAL

Check if the closure still needs a marshaller. See g_closure_set_marshal().

DECLARE_DERIVABLE_TYPE

A convenience macro for emitting the usual declarations in theheader file for a type which is intended to be subclassed.

since: 2.44

DECLARE_FINAL_TYPE

A convenience macro for emitting the usual declarations in the header filefor a type which is not (at the present time) intended to be subclassed.

since: 2.44

DECLARE_INTERFACE

A convenience macro for emitting the usual declarations in the header file for aGInterface type.

since: 2.44

DEFINE_ABSTRACT_TYPE

A convenience macro for type implementations.

since: 2.4

DEFINE_ABSTRACT_TYPE_WITH_CODE

A convenience macro for type implementations.

since: 2.4

DEFINE_ABSTRACT_TYPE_WITH_PRIVATE

Similar to G_DEFINE_TYPE_WITH_PRIVATE(), but defines an abstract type.

since: 2.38

DEFINE_BOXED_TYPE

A convenience macro for defining a new custom boxed type.

since: 2.26

DEFINE_BOXED_TYPE_WITH_CODE

A convenience macro for boxed type implementations.

since: 2.26

DEFINE_DYNAMIC_TYPE

A convenience macro for dynamic type implementations, which declares aclass initialization function, an instance initialization function (seeGTypeInfo for information about these) and a static variable namedt_n_parent_class pointing to the parent class.

since: 2.14

DEFINE_DYNAMIC_TYPE_EXTENDED

A more general version of G_DEFINE_DYNAMIC_TYPE() whichallows to specifyGTypeFlags and custom code.

since: 2.14

DEFINE_ENUM_TYPE

A convenience macro for defining enumeration types.

since: 2.74

DEFINE_ENUM_VALUE

Defines an enumeration value, and maps it to a “nickname”.

since: 2.74

DEFINE_FINAL_TYPE

A convenience macro for type implementations.

since: 2.70

DEFINE_FINAL_TYPE_WITH_CODE

A convenience macro for type implementations.

since: 2.70

DEFINE_FINAL_TYPE_WITH_PRIVATE

A convenience macro for type implementations.

since: 2.70

DEFINE_FLAGS_TYPE

A convenience macro for defining flag types.

since: 2.74

DEFINE_INTERFACE

A convenience macro forGTypeInterface definitions, which declaresa default vtable initialization function and defines a*_get_type()function.

since: 2.24

DEFINE_INTERFACE_WITH_CODE

A convenience macro forGTypeInterface definitions.

since: 2.24

DEFINE_POINTER_TYPE

A convenience macro for pointer type implementations, which defines atype_name_get_type() function registering the pointer type.

since: 2.26

DEFINE_POINTER_TYPE_WITH_CODE

A convenience macro for pointer type implementations.Similar to G_DEFINE_POINTER_TYPE(), but allows to insertcustom code into thetype_name_get_type() function.

since: 2.26

DEFINE_TYPE

A convenience macro for type implementations, which declares a classinitialization function, an instance initialization function (seeGTypeInfofor information about these) and a static variable namedt_n_parent_classpointing to the parent class. Furthermore, it defines a*_get_type() function.See G_DEFINE_TYPE_EXTENDED() for an example.

since: 2.4

DEFINE_TYPE_EXTENDED

The most general convenience macro for type implementations, on whichG_DEFINE_TYPE(), etc are based.

since: 2.4

DEFINE_TYPE_WITH_CODE

A convenience macro for type implementations.

since: 2.4

DEFINE_TYPE_WITH_PRIVATE

A convenience macro for type implementations, which declares a classinitialization function, an instance initialization function (seeGTypeInfofor information about these), a static variable namedt_n_parent_classpointing to the parent class, and adds private instance data to the type.

since: 2.38

DEPRECATED_ENUMERATOR_IN_2_26_FOR

DEPRECATED_ENUMERATOR_IN_2_28_FOR

DEPRECATED_ENUMERATOR_IN_2_30_FOR

DEPRECATED_ENUMERATOR_IN_2_32_FOR

DEPRECATED_ENUMERATOR_IN_2_34_FOR

DEPRECATED_ENUMERATOR_IN_2_36_FOR

DEPRECATED_ENUMERATOR_IN_2_38_FOR

DEPRECATED_ENUMERATOR_IN_2_40_FOR

DEPRECATED_ENUMERATOR_IN_2_42_FOR

DEPRECATED_ENUMERATOR_IN_2_44_FOR

DEPRECATED_ENUMERATOR_IN_2_46_FOR

DEPRECATED_ENUMERATOR_IN_2_48_FOR

DEPRECATED_ENUMERATOR_IN_2_50_FOR

DEPRECATED_ENUMERATOR_IN_2_52_FOR

DEPRECATED_ENUMERATOR_IN_2_54_FOR

DEPRECATED_ENUMERATOR_IN_2_56_FOR

DEPRECATED_ENUMERATOR_IN_2_58_FOR

DEPRECATED_ENUMERATOR_IN_2_60_FOR

DEPRECATED_ENUMERATOR_IN_2_62_FOR

DEPRECATED_ENUMERATOR_IN_2_64_FOR

DEPRECATED_ENUMERATOR_IN_2_66_FOR

DEPRECATED_ENUMERATOR_IN_2_68_FOR

DEPRECATED_ENUMERATOR_IN_2_70_FOR

DEPRECATED_ENUMERATOR_IN_2_72_FOR

DEPRECATED_ENUMERATOR_IN_2_74_FOR

DEPRECATED_ENUMERATOR_IN_2_76_FOR

DEPRECATED_ENUMERATOR_IN_2_78_FOR

DEPRECATED_ENUMERATOR_IN_2_80_FOR

DEPRECATED_ENUMERATOR_IN_2_82_FOR

DEPRECATED_ENUMERATOR_IN_2_84_FOR

DEPRECATED_ENUMERATOR_IN_2_86_FOR

DEPRECATED_ENUMERATOR_IN_2_88_FOR

DEPRECATED_FOR

DEPRECATED_IN_2_26_FOR

DEPRECATED_IN_2_28_FOR

DEPRECATED_IN_2_30_FOR

DEPRECATED_IN_2_32_FOR

DEPRECATED_IN_2_34_FOR

DEPRECATED_IN_2_36_FOR

DEPRECATED_IN_2_38_FOR

DEPRECATED_IN_2_40_FOR

DEPRECATED_IN_2_42_FOR

DEPRECATED_IN_2_44_FOR

DEPRECATED_IN_2_46_FOR

DEPRECATED_IN_2_48_FOR

DEPRECATED_IN_2_50_FOR

DEPRECATED_IN_2_52_FOR

DEPRECATED_IN_2_54_FOR

DEPRECATED_IN_2_56_FOR

DEPRECATED_IN_2_58_FOR

DEPRECATED_IN_2_60_FOR

DEPRECATED_IN_2_62_FOR

DEPRECATED_IN_2_64_FOR

DEPRECATED_IN_2_66_FOR

DEPRECATED_IN_2_68_FOR

DEPRECATED_IN_2_70_FOR

DEPRECATED_IN_2_72_FOR

DEPRECATED_IN_2_74_FOR

DEPRECATED_IN_2_76_FOR

DEPRECATED_IN_2_78_FOR

DEPRECATED_IN_2_80_FOR

DEPRECATED_IN_2_82_FOR

DEPRECATED_IN_2_84_FOR

DEPRECATED_IN_2_86_FOR

DEPRECATED_IN_2_88_FOR

DEPRECATED_MACRO_IN_2_26_FOR

DEPRECATED_MACRO_IN_2_28_FOR

DEPRECATED_MACRO_IN_2_30_FOR

DEPRECATED_MACRO_IN_2_32_FOR

DEPRECATED_MACRO_IN_2_34_FOR

DEPRECATED_MACRO_IN_2_36_FOR

DEPRECATED_MACRO_IN_2_38_FOR

DEPRECATED_MACRO_IN_2_40_FOR

DEPRECATED_MACRO_IN_2_42_FOR

DEPRECATED_MACRO_IN_2_44_FOR

DEPRECATED_MACRO_IN_2_46_FOR

DEPRECATED_MACRO_IN_2_48_FOR

DEPRECATED_MACRO_IN_2_50_FOR

DEPRECATED_MACRO_IN_2_52_FOR

DEPRECATED_MACRO_IN_2_54_FOR

DEPRECATED_MACRO_IN_2_56_FOR

DEPRECATED_MACRO_IN_2_58_FOR

DEPRECATED_MACRO_IN_2_60_FOR

DEPRECATED_MACRO_IN_2_62_FOR

DEPRECATED_MACRO_IN_2_64_FOR

DEPRECATED_MACRO_IN_2_66_FOR

DEPRECATED_MACRO_IN_2_68_FOR

DEPRECATED_MACRO_IN_2_70_FOR

DEPRECATED_MACRO_IN_2_72_FOR

DEPRECATED_MACRO_IN_2_74_FOR

DEPRECATED_MACRO_IN_2_76_FOR

DEPRECATED_MACRO_IN_2_78_FOR

DEPRECATED_MACRO_IN_2_80_FOR

DEPRECATED_MACRO_IN_2_82_FOR

DEPRECATED_MACRO_IN_2_84_FOR

DEPRECATED_MACRO_IN_2_86_FOR

DEPRECATED_MACRO_IN_2_88_FOR

DEPRECATED_TYPE_IN_2_26_FOR

DEPRECATED_TYPE_IN_2_28_FOR

DEPRECATED_TYPE_IN_2_30_FOR

DEPRECATED_TYPE_IN_2_32_FOR

DEPRECATED_TYPE_IN_2_34_FOR

DEPRECATED_TYPE_IN_2_36_FOR

DEPRECATED_TYPE_IN_2_38_FOR

DEPRECATED_TYPE_IN_2_40_FOR

DEPRECATED_TYPE_IN_2_42_FOR

DEPRECATED_TYPE_IN_2_44_FOR

DEPRECATED_TYPE_IN_2_46_FOR

DEPRECATED_TYPE_IN_2_48_FOR

DEPRECATED_TYPE_IN_2_50_FOR

DEPRECATED_TYPE_IN_2_52_FOR

DEPRECATED_TYPE_IN_2_54_FOR

DEPRECATED_TYPE_IN_2_56_FOR

DEPRECATED_TYPE_IN_2_58_FOR

DEPRECATED_TYPE_IN_2_60_FOR

DEPRECATED_TYPE_IN_2_62_FOR

DEPRECATED_TYPE_IN_2_64_FOR

DEPRECATED_TYPE_IN_2_66_FOR

DEPRECATED_TYPE_IN_2_68_FOR

DEPRECATED_TYPE_IN_2_70_FOR

DEPRECATED_TYPE_IN_2_72_FOR

DEPRECATED_TYPE_IN_2_74_FOR

DEPRECATED_TYPE_IN_2_76_FOR

DEPRECATED_TYPE_IN_2_78_FOR

DEPRECATED_TYPE_IN_2_80_FOR

DEPRECATED_TYPE_IN_2_82_FOR

DEPRECATED_TYPE_IN_2_84_FOR

DEPRECATED_TYPE_IN_2_86_FOR

DEPRECATED_TYPE_IN_2_88_FOR

ENUM_CLASS_TYPE

Get the type identifier from a givenGEnumClass structure.

ENUM_CLASS_TYPE_NAME

Get the static type name from a givenGEnumClass structure.

FLAGS_CLASS_TYPE

Get the type identifier from a givenGFlagsClass structure.

FLAGS_CLASS_TYPE_NAME

Get the static type name from a givenGFlagsClass structure.

IMPLEMENT_INTERFACE

A convenience macro to ease interface addition in the_C_ sectionof G_DEFINE_TYPE_WITH_CODE() or G_DEFINE_ABSTRACT_TYPE_WITH_CODE().See G_DEFINE_TYPE_EXTENDED() for an example.

since: 2.4

IMPLEMENT_INTERFACE_DYNAMIC

A convenience macro to ease interface addition in the_C_ sectionof G_DEFINE_DYNAMIC_TYPE_EXTENDED().

since: 2.24

OBJECT_CLASS_NAME

Return the name of a class structure’s type.

OBJECT_CLASS_TYPE

Get the type id of a class structure.

OBJECT_TYPE

Get the type id of an object.

OBJECT_TYPE_NAME

Get the name of an object’s type.

OBJECT_WARN_INVALID_PROPERTY_ID

This macro should be used to emit a standard warning about unexpectedproperties inset_property() andget_property() implementations.

OBJECT_WARN_INVALID_PSPEC

PARAM_SPEC_GTYPE

Casts aGParamSpec into aGParamSpecGType.

since: 2.10

PARAM_SPEC_TYPE

Retrieves theGType of thispspec.

PARAM_SPEC_TYPE_NAME

Retrieves theGType name of thispspec.

PARAM_SPEC_UCHAR

Cast aGParamSpec instance into aGParamSpecUChar.

PARAM_SPEC_UINT

Cast aGParamSpec instance into aGParamSpecUInt.

PARAM_SPEC_UINT64

Cast aGParamSpec instance into aGParamSpecUInt64.

PARAM_SPEC_ULONG

Cast aGParamSpec instance into aGParamSpecULong.

PARAM_SPEC_VALUE_TYPE

Retrieves theGType to initialize aGValue for this parameter.

PRIVATE_FIELD

Evaluates to thefield_name inside theinst private datastructure forTypeName.

since: 2.38

PRIVATE_FIELD_P

Evaluates to a pointer to thefield_name inside theinst private datastructure forTypeName.

since: 2.38

PRIVATE_OFFSET

Evaluates to the offset of thefield inside the instance private datastructure forTypeName.

since: 2.38

set_object

Updates aGObject pointer to refer tonew_object.

since: 2.44

set_weak_pointer

Updates a pointer to weakly refer tonew_object.

since: 2.56

signal_connect

Connects aGCallback function to a signal for a particular object.

signal_connect_after

Connects aGCallback function to a signal for a particular object.

signal_connect_swapped

Connects aGCallback function to a signal for a particular object.

signal_handlers_block_by_func

Blocks all handlers on an instance that matchfunc anddata.

signal_handlers_disconnect_by_data

Disconnects all handlers on an instance that matchdata.

since: 2.32

signal_handlers_disconnect_by_func

Disconnects all handlers on an instance that matchfunc anddata.

signal_handlers_unblock_by_func

Unblocks all handlers on an instance that matchfunc anddata.

TYPE_CHECK_CLASS_CAST

Checks thatg_class is a class structure of the type identified byg_typeand issues a warning if this is not the case. Returnsg_class castedto a pointer toc_type.NULL is not a valid class structure.

TYPE_CHECK_CLASS_TYPE

Checks ifg_class is a class structure of the type identified byg_type. Ifg_class isNULL,FALSE will be returned.

TYPE_CHECK_INSTANCE

Checks ifinstance is a validGTypeInstance structure,otherwise issues a warning and returnsFALSE.NULL is not a validGTypeInstance.

TYPE_CHECK_INSTANCE_CAST

Checks thatinstance is an instance of the type identified byg_typeand issues a warning if this is not the case. Returnsinstance castedto a pointer toc_type.

TYPE_CHECK_INSTANCE_FUNDAMENTAL_TYPE

Checks ifinstance is an instance of the fundamental type identified byg_type.Ifinstance isNULL,FALSE will be returned.

TYPE_CHECK_INSTANCE_TYPE

Checks ifinstance is an instance of the type identified byg_type. Ifinstance isNULL,FALSE will be returned.

TYPE_CHECK_VALUE

Checks ifvalue has been initialized to hold valuesof a value type.

TYPE_CHECK_VALUE_TYPE

Checks ifvalue has been initialized to hold valuesof typeg_type.

TYPE_FROM_CLASS

Get the type identifier from a givenclass structure.

TYPE_FROM_INSTANCE

Get the type identifier from a giveninstance structure.

TYPE_FROM_INTERFACE

Get the type identifier from a giveninterface structure.

TYPE_FUNDAMENTAL

The fundamental type which is the ancestor oftype.

TYPE_HAS_VALUE_TABLE

Checks iftype has aGTypeValueTable.

TYPE_MAKE_FUNDAMENTAL

Get the typeID for the fundamental type numberx.

UNAVAILABLE

UNAVAILABLE_STATIC_INLINE

VALUE_COLLECT

Collects a variable argument value from ava_list.

VALUE_COLLECT_INIT

Collects a variable argument value from ava_list.

since: 2.24

VALUE_COLLECT_INIT2

A variant of G_VALUE_COLLECT_INIT() that provides theGTypeValueTableto the caller.

since: 2.74

VALUE_COLLECT_SKIP

Skip an argument of type_value_type fromvar_args.

VALUE_HOLDS

Checks ifvalue holds a value oftype.

VALUE_HOLDS_BOOLEAN

Checks whether the givenGValue can hold values of typeG_TYPE_BOOLEAN.

VALUE_HOLDS_BOXED

Checks whether the givenGValue can hold values derivedfrom typeG_TYPE_BOXED.

VALUE_HOLDS_CHAR

Checks whether the givenGValue can hold values of typeG_TYPE_CHAR.

VALUE_HOLDS_DOUBLE

Checks whether the givenGValue can hold values of typeG_TYPE_DOUBLE.

VALUE_HOLDS_ENUM

Checks whether the givenGValue can hold values derived from typeG_TYPE_ENUM.

VALUE_HOLDS_FLAGS

Checks whether the givenGValue can hold values derived from typeG_TYPE_FLAGS.

VALUE_HOLDS_FLOAT

Checks whether the givenGValue can hold values of typeG_TYPE_FLOAT.

VALUE_HOLDS_GTYPE

Checks whether the givenGValue can hold values of typeG_TYPE_GTYPE.

since: 2.12

VALUE_HOLDS_INT

Checks whether the givenGValue can hold values of typeG_TYPE_INT.

VALUE_HOLDS_INT64

Checks whether the givenGValue can hold values of typeG_TYPE_INT64.

VALUE_HOLDS_LONG

Checks whether the givenGValue can hold values of typeG_TYPE_LONG.

VALUE_HOLDS_OBJECT

Checks whether the givenGValue can hold values derived from typeG_TYPE_OBJECT.

VALUE_HOLDS_PARAM

Checks whether the givenGValue can hold values derived from typeG_TYPE_PARAM.

VALUE_HOLDS_POINTER

Checks whether the givenGValue can hold values of typeG_TYPE_POINTER.

VALUE_HOLDS_STRING

Checks whether the givenGValue can hold values of typeG_TYPE_STRING.

VALUE_HOLDS_UCHAR

Checks whether the givenGValue can hold values of typeG_TYPE_UCHAR.

VALUE_HOLDS_UINT

Checks whether the givenGValue can hold values of typeG_TYPE_UINT.

VALUE_HOLDS_UINT64

Checks whether the givenGValue can hold values of typeG_TYPE_UINT64.

VALUE_HOLDS_ULONG

Checks whether the givenGValue can hold values of typeG_TYPE_ULONG.

VALUE_HOLDS_VARIANT

Checks whether the givenGValue can hold values of typeG_TYPE_VARIANT.

since: 2.26

VALUE_LCOPY

Stores a value’s value into one or more argument locations from ava_list.

VALUE_TYPE

Get the type identifier ofvalue.

VALUE_TYPE_NAME

Gets the name of the type ofvalue.

Constants

PARAM_MASK

Mask containing the bits ofGParamSpec.flags which are reserved for GLib.

PARAM_STATIC_STRINGS

GParamFlags value alias forG_PARAM_STATIC_NAME |G_PARAM_STATIC_NICK |G_PARAM_STATIC_BLURB.

PARAM_USER_SHIFT

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

SIGNAL_FLAGS_MASK

A mask for allGSignalFlags bits.

SIGNAL_MATCH_MASK

A mask for allGSignalMatchType bits.

TYPE_FLAG_RESERVED_ID_BIT

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

TYPE_FUNDAMENTAL_MAX

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

TYPE_FUNDAMENTAL_SHIFT

Shift value used in converting numbers to type IDs.

TYPE_RESERVED_BSE_FIRST

First fundamental type number to create a new fundamental type id withG_TYPE_MAKE_FUNDAMENTAL() reserved forBSE.

TYPE_RESERVED_BSE_LAST

Last fundamental type number reserved forBSE.

TYPE_RESERVED_GLIB_FIRST

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

TYPE_RESERVED_GLIB_LAST

Last fundamental type number reserved for GLib.

TYPE_RESERVED_USER_FIRST

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

VALUE_COLLECT_FORMAT_MAX_LENGTH

The maximal number ofGTypeCValues which can be collected for asingleGValue.

VALUE_INTERNED_STRING

Flag to indicate that a string in aGValue is canonical andwill exist for the duration of the process.

VALUE_NOCOPY_CONTENTS

Flag to indicate that allocated data in aGValue shouldn’t be copied.


[8]ページ先頭

©2009-2025 Movatter.jp