[642:7] extends: object
The type used for marshaller functions.
GObjectClosureMarshalCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (closure, return_value, n_param_values, param_values, invocation_hint, marshal_data)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[16:7] extends: object
A callback function used by the type system to finalize those portions of a derived types class structure that were setup from the corresponding GBaseInitFunc() function. Class finalization basically works the inverse way in which class initialization is performed. See GClassInitFunc() for a discussion of the class initialization process.
GObjectBaseFinalizeFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (g_class)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[939:7] extends: object
A callback function used by the type system to initialize a new interface. This function should initialize all internal data and* allocate any resources required by the interface. The members of @iface_data are guaranteed to have been filled with zeros before this function is called.
GObjectInterfaceInitFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (g_iface, iface_data)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1592:7] extends: object
The type of the @complete_interface_info function of #GTypePluginClass.
GObjectTypePluginCompleteInterfaceInfoCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (plugin, instance_type, interface_type, info)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1882:7] extends: object
Copies the content of a #GValue into another. The @dest_value is a #GValue with zero-filled data section and @src_value is a properly initialized #GValue of same type, or derived type. The purpose of this function is to copy the contents of @src_value into @dest_value in a way, that even after @src_value has been freed, the contents of @dest_value remain valid. String type example: |[ dest_value->data[0].v_pointer = g_strdup (src_value->data[0].v_pointer); ]|
GObjectTypeValueCopyFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (src_value, dest_value)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[572:7] extends: object
A callback function used by the type system to initialize the class of a specific type. This function should initialize all static class members. The initialization process of a class involves: - Copying common members from the parent class over to the derived class structure. - Zero initialization of the remaining members not copied over from the parent class. - Invocation of the GBaseInitFunc() initializers of all parent types and the class' type. - Invocation of the class' GClassInitFunc() initializer. Since derived classes are partially initialized through a memory copy of the parent class, the general rule is that GBaseInitFunc() and GBaseFinalizeFunc() should take care of necessary reinitialization and release of those class members that were introduced by the type that specified these GBaseInitFunc()/GBaseFinalizeFunc(). GClassInitFunc() should only care about initializing static class members, while dynamic class members (such as allocated strings or reference counted resources) are better handled by a GBaseInitFunc() for this type, so proper initialization of the dynamic class members is performed for class initialization of derived types as well. An example may help to correspond the intend of the different class initializers: |[ typedef struct { GObjectClass parent_class; gint static_integer; gchar *dynamic_string; } TypeAClass; static void type_a_base_class_init (TypeAClass *class) { class->dynamic_string = g_strdup ("some string"); } static void type_a_base_class_finalize (TypeAClass *class) { g_free (class->dynamic_string); } static void type_a_class_init (TypeAClass *class) { class->static_integer = 42; } typedef struct { TypeAClass parent_class; gfloat static_float; GString *dynamic_gstring; } TypeBClass; static void type_b_base_class_init (TypeBClass *class) { class->dynamic_gstring = g_string_new ("some other string"); } static void type_b_base_class_finalize (TypeBClass *class) { g_string_free (class->dynamic_gstring); } static void type_b_class_init (TypeBClass *class) { class->static_float = 3.14159265358979323846; } ]| Initialization of TypeBClass will first cause initialization of TypeAClass (derived classes reference their parent classes, see g_type_class_ref() on this). Initialization of TypeAClass roughly involves zero-initializing its fields, then calling its GBaseInitFunc() type_a_base_class_init() to allocate its dynamic members (dynamic_string), and finally calling its GClassInitFunc() type_a_class_init() to initialize its static members (static_integer). The first step in the initialization process of TypeBClass is then a plain memory copy of the contents of TypeAClass into TypeBClass and zero-initialization of the remaining fields in TypeBClass. The dynamic members of TypeAClass within TypeBClass now need reinitialization which is performed by calling type_a_base_class_init() with an argument of TypeBClass. After that, the GBaseInitFunc() of TypeBClass, type_b_base_class_init() is called to allocate the dynamic members of TypeBClass (dynamic_gstring), and finally the GClassInitFunc() of TypeBClass, type_b_class_init(), is called to complete the initialization process with the static members (static_float). Corresponding finalization counter parts to the GBaseInitFunc() functions have to be provided to release allocated resources at class finalization time.
GObjectClassInitFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (g_class, class_data)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[2263:7] extends: object
A #GWeakNotify function can be added to an object as a callback that gets triggered when the object is finalized. Since the object is already being disposed when the #GWeakNotify is called, there's not much you could do with the object, apart from e.g. using its address as hash-index or the like. In particular, this means it’s invalid to call g_object_ref(), g_weak_ref_init(), g_weak_ref_set(), g_object_add_toggle_ref(), g_object_weak_ref(), g_object_add_weak_pointer() or any function which calls them on the object from this callback.
GObjectWeakNotifyCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (data, where_the_object_was)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[2185:7] extends: object
The type of value transformation functions which can be registered with [func@GObject.Value.register_transform_func]. @dest_value will be initialized to the correct destination type.
GObjectValueTransformCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (src_value, dest_value)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[382:7] extends: object
The type used for callback functions in structure definitions and function signatures. This doesn't mean that all callback functions must take no parameters and return void. The required signature of a callback function is determined by the context in which is used (e.g. the signal to which it is connected). Use G_CALLBACK() to cast the callback function to a #GCallback.
GObjectCallbackCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline ()
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[239:7] extends: object
This function is provided by the user and should produce a copy of the passed in boxed structure.
GObjectBoxedCopyFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (boxed)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1663:7] extends: object
The type of the @complete_type_info function of #GTypePluginClass.
GObjectTypePluginCompleteTypeInfoCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (plugin, g_type, info, value_table)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1302:7] extends: object
A simple function pointer to get invoked when the signal is emitted. Emission hooks allow you to tie a hook to the signal type, so that it will trap all emissions of that signal, from any object. You may not attach these to signals created with the %G_SIGNAL_NO_HOOKS flag.
GObjectSignalEmissionHookCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (ihint, n_param_values, param_values, data)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1151:7] extends: object
The type of the @set_property function of #GObjectClass.
GObjectObjectSetPropertyFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (object, property_id, value, pspec)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1735:7] extends: object
The type of the @unuse_plugin function of #GTypePluginClass.
GObjectTypePluginUnuseCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (plugin)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1079:7] extends: object
The type of the @get_property function of #GObjectClass.
GObjectObjectGetPropertyFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (object, property_id, value, pspec)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1228:7] extends: object
The signal accumulator is a special callback function that can be used to collect return values of the various callbacks that are called during a signal emission. The signal accumulator is specified at signal creation time, if it is left %NULL, no accumulation of callback return values is performed. The return value of signal emissions is then the value returned by the last callback.
GObjectSignalAccumulatorCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (ihint, return_accu, handler_return, data)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1009:7] extends: object
The type of the @finalize function of #GObjectClass.
GObjectObjectFinalizeFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (object)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1806:7] extends: object
The type of the @use_plugin function of #GTypePluginClass, which gets called to increase the use count of @plugin.
GObjectTypePluginUseCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (plugin)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[309:7] extends: object
This function is provided by the user and should free the boxed structure passed.
GObjectBoxedFreeFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (boxed)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[2113:7] extends: object
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. To extend on our above string example: |[ return value->data[0].v_pointer; ]|
GObjectTypeValuePeekPointerFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (value)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[2333:14] static extends: object
Generated low-level function wrappers for namespace GObject.
getLib ()
boxed_copy (int boxed_type, src_boxed)
Provide a copy of a boxed structure @src_boxed which is of type
boxed_type is The type of @src_boxed..src_boxed is The boxed structure to be copied..The newly created copy of the boxed structure..boxed_free (int boxed_type, boxed)
Free the boxed structure @boxed which is of type @boxed_type.
boxed_type is The type of @boxed..boxed is The boxed structure to be freed..None.boxed_type_register_static (string name, object boxed_copy, object boxed_free)
This function creates a new %G_TYPE_BOXED derived type id for a new boxed type with name @name. Boxed type handling functions have to be provided to copy and free opaque boxed structures of this type. For the general case, it is recommended to use G_DEFINE_BOXED_TYPE() instead of calling g_boxed_type_register_static() directly. The macro will create the appropriate
*_get_type()function for the boxed type.
name is Name of the new boxed type..boxed_copy is Boxed structure copy function..boxed_free is Boxed structure free function..New %G_TYPE_BOXED derived type id for @name..cclosure_marshal_BOOLEAN__BOXED_BOXED (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with handlers that take two boxed pointers as arguments and return a boolean. If you have such a signal, you will probably also need to use an accumulator, such as g_signal_accumulator_true_handled().
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_BOOLEAN__FLAGS (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with handlers that take a flags type as an argument and return a boolean. If you have such a signal, you will probably also need to use an accumulator, such as g_signal_accumulator_true_handled().
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_STRING__OBJECT_POINTER (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with handlers that take a #GObject and a pointer and produce a string. It is highly unlikely that your signal handler fits this description.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__BOOLEAN (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single boolean argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__BOXED (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single argument which is any boxed pointer type.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__CHAR (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single character argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__DOUBLE (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with one double-precision floating point argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__ENUM (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single argument with an enumerated type.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__FLAGS (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single argument with a flags types.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__FLOAT (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with one single-precision floating point argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__INT (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single integer argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__LONG (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with with a single long integer argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__OBJECT (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single #GObject argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__PARAM (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single argument of type #GParamSpec.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__POINTER (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single raw pointer argument type. If it is possible, it is better to use one of the more specific functions such as g_cclosure_marshal_VOID__OBJECT() or g_cclosure_marshal_VOID__OBJECT().
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__STRING (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single string argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__UCHAR (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single unsigned character argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__UINT (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with with a single unsigned integer argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__UINT_POINTER (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with an unsigned int and a pointer as arguments.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__ULONG (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single unsigned long integer argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__VARIANT (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with a single #GVariant argument.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_VOID__VOID (object closure, object return_value, int n_param_values, object param_values, invocation_hint, marshal_data)
A #GClosureMarshal function for use with signals with no arguments.
closure is A #GClosure..return_value is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_marshal_generic (object closure, object return_gvalue, int n_param_values, object param_values, invocation_hint, marshal_data)
A generic marshaller function implemented via libffi. Normally this function is not passed explicitly to g_signal_new(), but used automatically by GLib when specifying a %NULL marshaller.
closure is A #GClosure..return_gvalue is A #GValue to store the return value. May be %NULL if the callback of closure doesn't return a value..n_param_values is The length of the @param_values array..param_values is An array of #GValues holding the arguments on which to invoke the callback of closure..invocation_hint is The invocation hint given as the last argument to g_closure_invoke()..marshal_data is Additional data specified when registering the marshaller, see g_closure_set_marshal() and g_closure_set_meta_marshal().None.cclosure_new (object callback_func, object destroy_data)
Creates a new closure which invokes @callback_func with @user_data as the last parameter. @destroy_data will be called as a finalize notifier on the #GClosure.
callback_func is the function to invoke.user_data is user data to pass to @callback_func.destroy_data is destroy notify to be called when @user_data is no longer used.a floating reference to a new #GCClosure.cclosure_new_object (object callback_func, object object)
A variant of g_cclosure_new() which uses @object as @user_data and calls g_object_watch_closure() on @object and the created closure. This function is useful when you have a callback closely associated with a #GObject, and want the callback to no longer run after the object is is freed.
callback_func is the function to invoke.object is a #GObject pointer to pass to @callback_func.a new #GCClosure.cclosure_new_object_swap (object callback_func, object object)
A variant of g_cclosure_new_swap() which uses @object as @user_data and calls g_object_watch_closure() on @object and the created closure. This function is useful when you have a callback closely associated with a #GObject, and want the callback to no longer run after the object is is freed.
callback_func is the function to invoke.object is a #GObject pointer to pass to @callback_func.a new #GCClosure.cclosure_new_swap (object callback_func, object destroy_data)
Creates a new closure which invokes @callback_func with @user_data as the first parameter. @destroy_data will be called as a finalize notifier on the #GClosure.
callback_func is the function to invoke.user_data is user data to pass to @callback_func.destroy_data is destroy notify to be called when @user_data is no longer used.a floating reference to a new #GCClosure.clear_object (object object_ptr)
Clears a reference to a #GObject. @object_ptr must not be %NULL. If the reference is %NULL then this function does nothing. Otherwise, the reference count of the object is decreased and the pointer is set to %NULL. A macro is also included that allows this function to be used without pointer casts.
object_ptr is a pointer to a #GObject reference.None.clear_signal_handler (int handler_id_ptr, object instance)
Disconnects a handler from @instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to. The @handler_id_ptr is then set to zero, which is never a valid handler ID value (see g_signal_connect()). If the handler ID is 0 then this function does nothing. There is also a macro version of this function so that the code will be inlined.
handler_id_ptr is A pointer to a handler ID (of type #gulong) of the handler to be disconnected..instance is The instance to remove the signal handler from. This pointer may be %NULL or invalid, if the handler ID is zero..None.enum_complete_type_info (int g_enum_type, list const_values)
This function is meant to be called from the
complete_type_infofunction of a #GTypePlugin implementation, as in the following example: |[ static void my_enum_complete_type_info (GTypePlugin *plugin, GType g_type, GTypeInfo *info, GTypeValueTable *value_table) { static const GEnumValue values[] = { { MY_ENUM_FOO, "MY_ENUM_FOO", "foo" }, { MY_ENUM_BAR, "MY_ENUM_BAR", "bar" }, { 0, NULL, NULL } }; g_enum_complete_type_info (type, info, values); } ]|
g_enum_type is the type identifier of the type being completed.info is the #GTypeInfo struct to be filled in.const_values is An array of #GEnumValue structs for the possible enumeration values. The array is terminated by a struct with all members being 0..None.enum_get_value (object enum_class, int value)
Returns the #GEnumValue for a value.
enum_class is a #GEnumClass.value is the value to look up.the #GEnumValue for @value, or %NULL if @value is not a member of the enumeration.enum_get_value_by_name (object enum_class, string name)
Looks up a #GEnumValue by name.
enum_class is a #GEnumClass.name is the name to look up.the #GEnumValue with name @name, or %NULL if the enumeration doesn't have a member with that name.enum_get_value_by_nick (object enum_class, string nick)
Looks up a #GEnumValue by nickname.
enum_class is a #GEnumClass.nick is the nickname to look up.the #GEnumValue with nickname @nick, or %NULL if the enumeration doesn't have a member with that nickname.enum_register_static (string name, list const_static_values)
Registers a new static enumeration type with the name @name. It is normally more convenient to let [glib-mkenums][glib-mkenums], generate a my_enum_get_type() function from a usual C enumeration definition than to write one yourself using g_enum_register_static().
name is A nul-terminated string used as the name of the new type..const_static_values is An array of #GEnumValue structs for the possible enumeration values. The array is terminated by a struct with all members being 0. GObject keeps a reference to the data, so it cannot be stack-allocated..The new type identifier..enum_to_string (int g_enum_type, int value)
Pretty-prints @value in the form of the enum’s name. This is intended to be used for debugging purposes. The format of the output may change in the future.
g_enum_type is the type identifier of a #GEnumClass type.value is the value.a newly-allocated text string.flags_complete_type_info (int g_flags_type, list const_values)
This function is meant to be called from the complete_type_info() function of a #GTypePlugin implementation, see the example for g_enum_complete_type_info() above.
g_flags_type is the type identifier of the type being completed.info is the #GTypeInfo struct to be filled in.const_values is An array of #GFlagsValue structs for the possible enumeration values. The array is terminated by a struct with all members being 0..None.flags_get_first_value (object flags_class, int value)
Returns the first #GFlagsValue which is set in @value.
flags_class is a #GFlagsClass.value is the value.the first #GFlagsValue which is set in @value, or %NULL if none is set.flags_get_value_by_name (object flags_class, string name)
Looks up a #GFlagsValue by name.
flags_class is a #GFlagsClass.name is the name to look up.the #GFlagsValue with name @name, or %NULL if there is no flag with that name.flags_get_value_by_nick (object flags_class, string nick)
Looks up a #GFlagsValue by nickname.
flags_class is a #GFlagsClass.nick is the nickname to look up.the #GFlagsValue with nickname @nick, or %NULL if there is no flag with that nickname.flags_register_static (string name, list const_static_values)
Registers a new static flags type with the name @name. It is normally more convenient to let [glib-mkenums][glib-mkenums] generate a my_flags_get_type() function from a usual C enumeration definition than to write one yourself using g_flags_register_static().
name is A nul-terminated string used as the name of the new type..const_static_values is An array of #GFlagsValue structs for the possible flags values. The array is terminated by a struct with all members being 0. GObject keeps a reference to the data, so it cannot be stack-allocated..The new type identifier..flags_to_string (int flags_type, int value)
Pretty-prints @value in the form of the flag names separated by
|and sorted. Any extra bits will be shown at the end as a hexadecimal number. This is intended to be used for debugging purposes. The format of the output may change in the future.
flags_type is the type identifier of a #GFlagsClass type.value is the value.a newly-allocated text string.gtype_get_type ()
Generated wrapper for GIR function
gtype_get_type. Native symbol:g_gtype_get_type.
param_spec_boolean (string name, string nick, string blurb, bool default_value, string flags)
Creates a new #GParamSpecBoolean instance specifying a %G_TYPE_BOOLEAN property. In many cases, it may be more appropriate to use an enum with g_param_spec_enum(), both to improve code clarity by using explicitly named values, and to allow for more values to be added in future without breaking API. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_boxed (string name, string nick, string blurb, int boxed_type, string flags)
Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_BOXED derived property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.boxed_type is %G_TYPE_BOXED derived type of this property.flags is flags for the property specified.a newly created parameter specification.param_spec_char (string name, string nick, string blurb, int minimum, int maximum, int default_value, string flags)
Creates a new #GParamSpecChar instance specifying a %G_TYPE_CHAR property.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.minimum is minimum value for the property specified.maximum is maximum value for the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_double (string name, string nick, string blurb, double minimum, double maximum, double default_value, string flags)
Creates a new #GParamSpecDouble instance specifying a %G_TYPE_DOUBLE property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.minimum is minimum value for the property specified.maximum is maximum value for the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_enum (string name, string nick, string blurb, int enum_type, int default_value, string flags)
Creates a new #GParamSpecEnum instance specifying a %G_TYPE_ENUM property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.enum_type is a #GType derived from %G_TYPE_ENUM.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_flags (string name, string nick, string blurb, int flags_type, int default_value, string flags)
Creates a new #GParamSpecFlags instance specifying a %G_TYPE_FLAGS property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.flags_type is a #GType derived from %G_TYPE_FLAGS.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_float (string name, string nick, string blurb, double minimum, double maximum, double default_value, string flags)
Creates a new #GParamSpecFloat instance specifying a %G_TYPE_FLOAT property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.minimum is minimum value for the property specified.maximum is maximum value for the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_gtype (string name, string nick, string blurb, int is_a_type, string flags)
Creates a new #GParamSpecGType instance specifying a %G_TYPE_GTYPE property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.is_a_type is a #GType whose subtypes are allowed as values of the property (use %G_TYPE_NONE for any type).flags is flags for the property specified.a newly created parameter specification.param_spec_int (string name, string nick, string blurb, int minimum, int maximum, int default_value, string flags)
Creates a new #GParamSpecInt instance specifying a %G_TYPE_INT property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.minimum is minimum value for the property specified.maximum is maximum value for the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_int64 (string name, string nick, string blurb, int minimum, int maximum, int default_value, string flags)
Creates a new #GParamSpecInt64 instance specifying a %G_TYPE_INT64 property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.minimum is minimum value for the property specified.maximum is maximum value for the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_long (string name, string nick, string blurb, int minimum, int maximum, int default_value, string flags)
Creates a new #GParamSpecLong instance specifying a %G_TYPE_LONG property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.minimum is minimum value for the property specified.maximum is maximum value for the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_object (string name, string nick, string blurb, int object_type, string flags)
Creates a new #GParamSpecBoxed instance specifying a %G_TYPE_OBJECT derived property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.object_type is %G_TYPE_OBJECT derived type of this property.flags is flags for the property specified.a newly created parameter specification.param_spec_override (string name, object overridden)
Creates a new property of type #GParamSpecOverride. This is used to direct operations to another paramspec, and will not be directly useful unless you are implementing a new base type similar to GObject.
name is the name of the property..overridden is The property that is being overridden.the newly created #GParamSpec.param_spec_param (string name, string nick, string blurb, int param_type, string flags)
Creates a new #GParamSpecParam instance specifying a %G_TYPE_PARAM property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.param_type is a #GType derived from %G_TYPE_PARAM.flags is flags for the property specified.a newly created parameter specification.param_spec_pointer (string name, string nick, string blurb, string flags)
Creates a new #GParamSpecPointer instance specifying a pointer property. Where possible, it is better to use g_param_spec_object() or g_param_spec_boxed() to expose memory management information. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_string (string name, string nick, string blurb, string default_value, string flags)
Creates a new #GParamSpecString instance. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_uchar (string name, string nick, string blurb, int minimum, int maximum, int default_value, string flags)
Creates a new #GParamSpecUChar instance specifying a %G_TYPE_UCHAR property.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.minimum is minimum value for the property specified.maximum is maximum value for the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_uint (string name, string nick, string blurb, int minimum, int maximum, int default_value, string flags)
Creates a new #GParamSpecUInt instance specifying a %G_TYPE_UINT property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.minimum is minimum value for the property specified.maximum is maximum value for the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_uint64 (string name, string nick, string blurb, int minimum, int maximum, int default_value, string flags)
Creates a new #GParamSpecUInt64 instance specifying a %G_TYPE_UINT64 property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.minimum is minimum value for the property specified.maximum is maximum value for the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_ulong (string name, string nick, string blurb, int minimum, int maximum, int default_value, string flags)
Creates a new #GParamSpecULong instance specifying a %G_TYPE_ULONG property. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.minimum is minimum value for the property specified.maximum is maximum value for the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_unichar (string name, string nick, string blurb, int default_value, string flags)
Creates a new #GParamSpecUnichar instance specifying a %G_TYPE_UINT property. #GValue structures for this property can be accessed with g_value_set_uint() and g_value_get_uint(). See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.default_value is default value for the property specified.flags is flags for the property specified.a newly created parameter specification.param_spec_value_array (string name, string nick, string blurb, object element_spec, string flags)
Creates a new #GParamSpecValueArray instance specifying a %G_TYPE_VALUE_ARRAY property. %G_TYPE_VALUE_ARRAY is a %G_TYPE_BOXED type, as such, #GValue structures for this property can be accessed with g_value_set_boxed() and g_value_get_boxed(). See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.element_spec is a #GParamSpec describing the elements contained in arrays of this property, may be %NULL.flags is flags for the property specified.a newly created parameter specification.param_spec_variant (string name, string nick, string blurb, object type, object default_value, string flags)
Creates a new #GParamSpecVariant instance specifying a #GVariant property. If @default_value is floating, it is consumed. See g_param_spec_internal() for details on property names.
name is canonical name of the property specified.nick is nick name for the property specified.blurb is description of the property specified.type is a #GVariantType.default_value is a #GVariant of type @type to use as the default value, or %NULL.flags is flags for the property specified.the newly created #GParamSpec.param_type_register_static (string name, object pspec_info)
Registers @name as the name of a new static type derived from %G_TYPE_PARAM. The type system uses the information contained in the #GParamSpecTypeInfo structure pointed to by @info to manage the #GParamSpec type and its instances.
name is 0-terminated string used as the name of the new #GParamSpec type..pspec_info is The #GParamSpecTypeInfo for this #GParamSpec type..The new type identifier..param_value_convert (object pspec, object src_value, object dest_value, bool strict_validation)
Transforms @src_value into @dest_value if possible, and then validates
in order for it to conform to @pspec. If @strict_validation is %TRUE this function will only succeed if the transformed @dest_value complied to @pspec without modifications. See also g_value_type_transformable(), g_value_transform() and g_param_value_validate().pspec is a valid #GParamSpec.src_value is source #GValue.dest_value is destination #GValue of correct type for @pspec.strict_validation is %TRUE requires @dest_value to conform to @pspec without modifications.%TRUE if transformation and validation were successful, %FALSE otherwise and @dest_value is left untouched..param_value_defaults (object pspec, object value)
Checks whether @value contains the default value as specified in @pspec.
pspec is a valid #GParamSpec.value is a #GValue of correct type for @pspec.whether @value contains the canonical default for this @pspec.param_value_is_valid (object pspec, object value)
Return whether the contents of @value comply with the specifications set out by @pspec.
pspec is a valid #GParamSpec.value is a #GValue of correct type for @pspec.whether the contents of @value comply with the specifications set out by @pspec..param_value_set_default (object pspec, object value)
Sets @value to its default value as specified in @pspec.
pspec is a valid #GParamSpec.value is a #GValue of correct type for @pspec; since 2.64, you can also pass an empty #GValue, initialized with %G_VALUE_INIT.None.param_value_validate (object pspec, object value)
Ensures that the contents of @value comply with the specifications set out by @pspec. For example, a #GParamSpecInt might require that integers stored in @value may not be smaller than -42 and not be greater than +42. If @value contains an integer outside of this range, it is modified accordingly, so the resulting value will fit into the range -42 .. +42.
pspec is a valid #GParamSpec.value is a #GValue of correct type for @pspec.whether modifying @value was necessary to ensure validity.param_values_cmp (object pspec, object value1, object value2)
Compares @value1 with @value2 according to @pspec, and return -1, 0 or +1, if @value1 is found to be less than, equal to or greater than
respectively.pspec is a valid #GParamSpec.value1 is a #GValue of correct type for @pspec.value2 is a #GValue of correct type for @pspec.-1, 0 or +1, for a less than, equal to or greater than result.pointer_type_register_static (string name)
Creates a new %G_TYPE_POINTER derived type id for a new pointer type with name @name.
name is the name of the new pointer type..a new %G_TYPE_POINTER derived type id for @name..signal_accumulator_first_wins (ihint, object return_accu, object handler_return, dummy)
A predefined #GSignalAccumulator for signals intended to be used as a hook for application code to provide a particular value. Usually only one such value is desired and multiple handlers for the same signal don't make much sense (except for the case of the default handler defined in the class structure, in which case you will usually want the signal connection to override the class handler). This accumulator will use the return value from the first signal handler that is run as the return value for the signal and not run any further handlers (ie: the first handler "wins").
ihint is standard #GSignalAccumulator parameter.return_accu is standard #GSignalAccumulator parameter.handler_return is standard #GSignalAccumulator parameter.dummy is standard #GSignalAccumulator parameter.standard #GSignalAccumulator result.signal_accumulator_true_handled (ihint, object return_accu, object handler_return, dummy)
A predefined #GSignalAccumulator for signals that return a boolean values. The behavior that this accumulator gives is that a return of %TRUE stops the signal emission: no further callbacks will be invoked, while a return of %FALSE allows the emission to continue. The idea here is that a %TRUE return indicates that the callback handled the signal, and no further handling is needed.
ihint is standard #GSignalAccumulator parameter.return_accu is standard #GSignalAccumulator parameter.handler_return is standard #GSignalAccumulator parameter.dummy is standard #GSignalAccumulator parameter.standard #GSignalAccumulator result.signal_chain_from_overridden (list instance_and_params, object return_value)
Calls the original class closure of a signal. This function should only be called from an overridden class closure; see g_signal_override_class_closure() and g_signal_override_class_handler().
instance_and_params is the argument list of the signal emission. The first element in the array is a #GValue for the instance the signal is being emitted on. The rest are any arguments to be passed to the signal..return_value is Location for the return value..None.signal_chain_from_overridden_handler (object instance, list varargs)
Calls the original class closure of a signal. This function should only be called from an overridden class closure; see g_signal_override_class_closure() and g_signal_override_class_handler().
instance is the instance the signal is being emitted on..... is parameters to be passed to the parent class closure, followed by a location for the return value. If the return type of the signal is %G_TYPE_NONE, the return value location can be omitted..None.signal_connect_closure (object instance, string detailed_signal, object closure, bool after)
Connects a closure to a signal for a particular object. If @closure is a floating reference (see g_closure_sink()), this function takes ownership of @closure. This function cannot fail. If the given signal name doesn’t exist, a critical warning is emitted. No validation is performed on the ‘detail’ string when specified in @detailed_signal, other than a non-empty check. Refer to the signals documentation for more details.
instance is the instance to connect to..detailed_signal is a string of the form "signal-name::detail"..closure is the closure to connect..after is whether the handler should be called before or after the default handler of the signal..the handler ID (always greater than 0).signal_connect_data (object instance, string detailed_signal, object c_handler, object destroy_data, string connect_flags)
Connects a #GCallback function to a signal for a particular object. Similar to g_signal_connect(), but allows to provide a #GClosureNotify for the data which will be called when the signal handler is disconnected and no longer used. Specify @connect_flags if you need
..._after()or..._swapped()variants of this function. This function cannot fail. If the given signal name doesn’t exist, a critical warning is emitted. No validation is performed on the ‘detail’ string when specified in
other than a non-empty check. Refer to the signals documentation for more details.instance is the instance to connect to..detailed_signal is a string of the form "signal-name::detail"..c_handler is the #GCallback to connect..data is data to pass to @c_handler calls..destroy_data is a #GClosureNotify for @data..connect_flags is a combination of #GConnectFlags..the handler ID (always greater than 0).signal_connect_object (object instance, string detailed_signal, object c_handler, object gobject, string connect_flags)
This is similar to g_signal_connect_data(), but uses a closure which ensures that the @gobject stays alive during the call to @c_handler by temporarily adding a reference count to @gobject. When the @gobject is destroyed the signal handler will be automatically disconnected. Note that this is not currently threadsafe (ie: emitting a signal while
is being destroyed in another thread is not safe). This function cannot fail. If the given signal name doesn’t exist, a critical warning is emitted. No validation is performed on the "detail" string when specified in @detailed_signal, other than a non-empty check. Refer to the signals documentation for more details.instance is the instance to connect to..detailed_signal is a string of the form "signal-name::detail"..c_handler is the #GCallback to connect..gobject is the object to pass as data to @c_handler..connect_flags is a combination of #GConnectFlags..the handler id..signal_emit_by_name (object instance, string detailed_signal, list varargs)
Emits a signal. Signal emission is done synchronously. The method will only return control after all handlers are called or signal emission was stopped. Note that g_signal_emit_by_name() resets the return value to the default if no handlers are connected, in contrast to g_signal_emitv().
instance is the instance the signal is being emitted on..detailed_signal is a string of the form "signal-name::detail"..... is parameters to be passed to the signal, followed by a location for the return value. If the return type of the signal is %G_TYPE_NONE, the return value location can be omitted. The number of parameters to pass to this function is defined when creating the signal..None.signal_get_invocation_hint (object instance)
Returns the invocation hint of the innermost signal emission of instance.
instance is the instance to query.the invocation hint of the innermost signal emission, or %NULL if not found..signal_handler_block (object instance, int handler_id)
Blocks a handler of an instance so it will not be called during any signal emissions unless it is unblocked again. Thus "blocking" a signal handler means to temporarily deactivate it, a signal handler has to be unblocked exactly the same amount of times it has been blocked before to become active again. The @handler_id has to be a valid signal handler id, connected to a signal of @instance.
instance is The instance to block the signal handler of..handler_id is Handler id of the handler to be blocked..None.signal_handler_disconnect (object instance, int handler_id)
Disconnects a handler from an instance so it will not be called during any future or currently ongoing emissions of the signal it has been connected to. The @handler_id becomes invalid and may be reused. The
has to be a valid signal handler id, connected to a signal ofinstance is The instance to remove the signal handler from..handler_id is Handler id of the handler to be disconnected..None.signal_handler_is_connected (object instance, int handler_id)
Returns whether @handler_id is the ID of a handler connected to
instance is The instance where a signal handler is sought..handler_id is the handler ID..whether @handler_id identifies a handler connected to @instance..signal_handler_unblock (object instance, int handler_id)
Undoes the effect of a previous g_signal_handler_block() call. A blocked handler is skipped during signal emissions and will not be invoked, unblocking it (for exactly the amount of times it has been blocked before) reverts its "blocked" state, so the handler will be recognized by the signal system and is called upon future or currently ongoing signal emissions (since the order in which handlers are called during signal emissions is deterministic, whether the unblocked handler in question is called as part of a currently ongoing emission depends on how far that emission has proceeded yet). The @handler_id has to be a valid id of a signal handler that is connected to a signal of @instance and is currently blocked.
instance is The instance to unblock the signal handler of..handler_id is Handler id of the handler to be unblocked..None.signal_handlers_destroy (object instance)
Destroy all signal handlers of a type instance. This function is an implementation detail of the #GObject dispose implementation, and should not be used outside of the type system.
instance is The instance whose signal handlers are destroyed.None.signal_is_valid_name (string name)
Validate a signal name. This can be useful for dynamically-generated signals which need to be validated at run-time before actually trying to create them. See [func@GObject.signal_new] for details of the rules for valid names. The rules for signal names are the same as those for property names.
name is the canonical name of the signal.%TRUE if @name is a valid signal name, %FALSE otherwise..signal_list_ids (int itype)
Lists the signals by id that a certain instance or interface type created. Further information about the signals can be acquired through g_signal_query().
itype is Instance or interface type..n_ids is Location to store the number of signal ids for @itype..Newly allocated array of signal IDs..signal_lookup (string name, int itype)
Given the name of the signal and the type of object it connects to, gets the signal's identifying integer. Emitting the signal by number is somewhat faster than using the name each time. Also tries the ancestors of the given type. The type class passed as @itype must already have been instantiated (for example, using g_type_class_ref()) for this function to work, as signals are always installed during class initialization. See g_signal_new() for details on allowed signal names.
name is the signal's name..itype is the type that the signal operates on..the signal's identifying number, or 0 if no signal was found..signal_name (int signal_id)
Given the signal's identifier, finds its name. Two different signals may have the same name, if they have differing types.
signal_id is the signal's identifying number..the signal name, or %NULL if the signal number was invalid..signal_override_class_closure (int signal_id, int instance_type, object class_closure)
Overrides the class closure (i.e. the default handler) for the given signal for emissions on instances of @instance_type. @instance_type must be derived from the type to which the signal belongs. See g_signal_chain_from_overridden() and g_signal_chain_from_overridden_handler() for how to chain up to the parent class closure from inside the overridden one.
signal_id is the signal id.instance_type is the instance type on which to override the class closure for the signal..class_closure is the closure..None.signal_override_class_handler (string signal_name, int instance_type, object class_handler)
Overrides the class closure (i.e. the default handler) for the given signal for emissions on instances of @instance_type with callback
@instance_type must be derived from the type to which the signal belongs. See g_signal_chain_from_overridden() and g_signal_chain_from_overridden_handler() for how to chain up to the parent class closure from inside the overridden one.signal_name is the name for the signal.instance_type is the instance type on which to override the class handler for the signal..class_handler is the handler..None.signal_remove_emission_hook (int signal_id, int hook_id)
Deletes an emission hook.
signal_id is the id of the signal.hook_id is the id of the emission hook, as returned by g_signal_add_emission_hook().None.signal_stop_emission_by_name (object instance, string detailed_signal)
Stops a signal's current emission. This is just like g_signal_stop_emission() except it will look up the signal id for you.
instance is the object whose signal handlers you wish to stop..detailed_signal is a string of the form "signal-name::detail"..None.signal_type_cclosure_new (int itype, int struct_offset)
Creates a new closure which invokes the function found at the offset
in the class structure of the interface or classed type identified by @itype.itype is the #GType identifier of an interface or classed type.struct_offset is the offset of the member function of @itype's class structure which is to be invoked by the new closure.a floating reference to a new #GCClosure.source_set_closure (object source, object closure)
Set the callback for a source as a #GClosure. If the source is not one of the standard GLib types, the @closure_callback and @closure_marshal fields of the #GSourceFuncs structure must have been filled in with pointers to appropriate functions.
source is the source.closure is a #GClosure.None.source_set_dummy_callback (object source)
Sets a dummy callback for @source. The callback will do nothing, and if the source expects a #gboolean return value, it will return %TRUE. (If the source expects any other type of return value, it will return a 0/%NULL value; whatever g_value_init() initializes a #GValue to for that type.) If the source is not one of the standard GLib types, the
and @closure_marshal fields of the #GSourceFuncs structure must have been filled in with pointers to appropriate functions.source is the source.None.strdup_value_contents (object value)
Return a newly allocated string, which describes the contents of a #GValue. The main purpose of this function is to describe #GValue contents for debugging output, the way in which the contents are described may change between different GLib versions.
value is #GValue which contents are to be described..Newly allocated string..type_add_class_cache_func (cache_data, object cache_func)
Adds a #GTypeClassCacheFunc to be called before the reference count of a class goes from one to zero. This can be used to prevent premature class destruction. All installed #GTypeClassCacheFunc functions will be chained until one of them returns %TRUE. The functions have to check the class id passed in to figure whether they actually want to cache the class of this type, since all classes are routed through the same #GTypeClassCacheFunc chain.
cache_data is data to be passed to @cache_func.cache_func is a #GTypeClassCacheFunc.None.type_add_class_private (int class_type, int private_size)
Registers a private class structure for a classed type; when the class is allocated, the private structures for the class and all of its parent types are allocated sequentially in the same memory block as the public structures, and are zero-filled. This function should be called in the type's get_type() function after the type is registered. The private structure can be retrieved using the G_TYPE_CLASS_GET_PRIVATE() macro.
class_type is GType of a classed type.private_size is size of private structure.None.type_add_instance_private (int class_type, int private_size)
Generated wrapper for GIR function
type_add_instance_private. Native symbol:g_type_add_instance_private.
type_add_interface_check (check_data, object check_func)
Adds a function to be called after an interface vtable is initialized for any class (i.e. after the @interface_init member of #GInterfaceInfo has been called). This function is useful when you want to check an invariant that depends on the interfaces of a class. For instance, the implementation of #GObject uses this facility to check that an object implements all of the properties that are defined on its interfaces.
check_data is data to pass to @check_func.check_func is function to be called after each interface is initialized.None.type_add_interface_dynamic (int instance_type, int interface_type, object plugin)
Adds @interface_type to the dynamic @instance_type. The information contained in the #GTypePlugin structure pointed to by @plugin is used to manage the relationship.
instance_type is #GType value of an instantiatable type.interface_type is #GType value of an interface type.plugin is #GTypePlugin structure to retrieve the #GInterfaceInfo from.None.type_add_interface_static (int instance_type, int interface_type, object info)
Adds @interface_type to the static @instance_type. The information contained in the #GInterfaceInfo structure pointed to by @info is used to manage the relationship.
instance_type is #GType value of an instantiatable type.interface_type is #GType value of an interface type.info is #GInterfaceInfo structure for this (@instance_type,combination.None.type_check_class_cast (object g_class, int is_a_type)
Generated wrapper for GIR function
type_check_class_cast. Native symbol:g_type_check_class_cast.
type_check_class_is_a (object g_class, int is_a_type)
Generated wrapper for GIR function
type_check_class_is_a. Native symbol:g_type_check_class_is_a.
type_check_instance (object instance)
Private helper function to aid implementation of the G_TYPE_CHECK_INSTANCE() macro.
instance is a valid #GTypeInstance structure.%TRUE if @instance is valid, %FALSE otherwise.type_check_instance_cast (object instance, int iface_type)
Generated wrapper for GIR function
type_check_instance_cast. Native symbol:g_type_check_instance_cast.
type_check_instance_is_a (object instance, int iface_type)
Generated wrapper for GIR function
type_check_instance_is_a. Native symbol:g_type_check_instance_is_a.
type_check_instance_is_fundamentally_a (object instance, int fundamental_type)
Generated wrapper for GIR function
type_check_instance_is_fundamentally_a. Native symbol:g_type_check_instance_is_fundamentally_a.
type_check_is_value_type (int type)
Generated wrapper for GIR function
type_check_is_value_type. Native symbol:g_type_check_is_value_type.
type_check_value (object value)
Generated wrapper for GIR function
type_check_value. Native symbol:g_type_check_value.
type_check_value_holds (object value, int type)
Generated wrapper for GIR function
type_check_value_holds. Native symbol:g_type_check_value_holds.
type_children (int type)
Return a newly allocated and 0-terminated array of type IDs, listing the child types of @type.
type is the parent type.n_children is location to store the length of the returned array, or %NULL.Newly allocated and 0-terminated array of child types, free with g_free().type_class_adjust_private_offset (g_class, int private_size_or_offset)
Generated wrapper for GIR function
type_class_adjust_private_offset. Native symbol:g_type_class_adjust_private_offset.
None.type_class_get (int type)
Retrieves the type class of the given @type. This function will create the class on demand if it does not exist already. If you don't want to create the class, use g_type_class_peek() instead.
type is type ID of a classed type.the class structure for the type.type_class_peek (int type)
Retrieves the class for a give type. This function is essentially the same as g_type_class_get(), except that the class may have not been instantiated yet. As a consequence, this function may return %NULL if the class of the type passed in does not currently exist (hasn't been referenced before).
type is type ID of a classed type.the #GTypeClass structure for the given type ID or %NULL if the class does not currently exist.type_class_peek_static (int type)
A more efficient version of g_type_class_peek() which works only for static types.
type is type ID of a classed type.the #GTypeClass structure for the given type ID or %NULL if the class does not currently exist or is dynamically loaded.type_class_ref (int type)
Increments the reference count of the class structure belonging to @type. This function will demand-create the class if it doesn't exist already.
type is type ID of a classed type.the #GTypeClass structure for the given type ID.type_create_instance (int type)
Creates and initializes an instance of @type if @type is valid and can be instantiated. The type system only performs basic allocation and structure setups for instances: actual instance creation should happen through functions supplied by the type's fundamental type implementation. So use of g_type_create_instance() is reserved for implementers of fundamental types only. E.g. instances of the #GObject hierarchy should be created via g_object_new() and never directly through g_type_create_instance() which doesn't handle things like singleton objects or object construction. The extended members of the returned instance are guaranteed to be filled with zeros. Note: Do not use this function, unless you're implementing a fundamental type. Also language bindings should not use this function, but g_object_new() instead.
type is an instantiatable type to create an instance for.an allocated and initialized instance, subject to further treatment by the fundamental type implementation.type_default_interface_get (int g_type)
Returns the default interface vtable for the given @g_type. If the type is not currently in use, then the default vtable for the type will be created and initialized by calling the base interface init and default vtable init functions for the type (the @base_init and @class_init members of #GTypeInfo). If you don't want to create the interface vtable, you should use g_type_default_interface_peek() instead. Calling g_type_default_interface_get() is useful when you want to make sure that signals and properties for an interface have been installed.
g_type is an interface type.the default vtable for the interface..type_default_interface_peek (int g_type)
If the interface type @g_type is currently in use, returns its default interface vtable.
g_type is an interface type.the default vtable for the interface, or %NULL if the type is not currently in use.type_default_interface_ref (int g_type)
Increments the reference count for the interface type @g_type, and returns the default interface vtable for the type. If the type is not currently in use, then the default vtable for the type will be created and initialized by calling the base interface init and default vtable init functions for the type (the @base_init and @class_init members of #GTypeInfo). Calling g_type_default_interface_ref() is useful when you want to make sure that signals and properties for an interface have been installed.
g_type is an interface type.the default vtable for the interface; call g_type_default_interface_unref() when you are done using the interface..type_default_interface_unref (object g_iface)
Decrements the reference count for the type corresponding to the interface default vtable @g_iface. If the type is dynamic, then when no one is using the interface and all references have been released, the finalize function for the interface's default vtable (the @class_finalize member of #GTypeInfo) will be called.
g_iface is the default vtable structure for an interface, as returned by g_type_default_interface_ref().None.type_depth (int type)
Returns the length of the ancestry of the passed in type. This includes the type itself, so that e.g. a fundamental type has depth 1.
type is a #GType.the depth of @type.type_ensure (int type)
Ensures that the indicated @type has been registered with the type system, and its _class_init() method has been run. In theory, simply calling the type's _get_type() method (or using the corresponding macro) is supposed take care of this. However, _get_type() methods are often marked %G_GNUC_CONST for performance reasons, even though this is technically incorrect (since %G_GNUC_CONST requires that the function not have side effects, which _get_type() methods do on the first call). As a result, if you write a bare call to a _get_type() macro, it may get optimized out by the compiler. Using g_type_ensure() guarantees that the type's _get_type() method is called.
type is a #GType.None.type_free_instance (object instance)
Frees an instance of a type, returning it to the instance pool for the type, if there is one. Like g_type_create_instance(), this function is reserved for implementors of fundamental types.
instance is an instance of a type.None.type_from_name (string name)
Look up the type ID from a given type name, returning 0 if no type has been registered under this name (this is the preferred method to find out by name whether a specific type has been registered yet).
name is type name to look up.corresponding type ID or 0.type_fundamental (int type_id)
Internal function, used to extract the fundamental type ID portion. Use G_TYPE_FUNDAMENTAL() instead.
type_id is valid type ID.fundamental type ID.type_fundamental_next ()
Returns the next free fundamental type id which can be used to register a new fundamental type with g_type_register_fundamental(). The returned type ID represents the highest currently registered fundamental type identifier.
the next available fundamental type ID to be registered, or 0 if the type system ran out of fundamental type IDs.type_get_instance_count (int type)
Returns the number of instances allocated of the particular type; this is only available if GLib is built with debugging support and the
instance-countdebug flag is set (by setting theGOBJECT_DEBUGvariable to includeinstance-count).
type is a #GType.the number of instances allocated of the given type; if instance counts are not available, returns 0..type_get_plugin (int type)
Returns the #GTypePlugin structure for @type.
type is #GType to retrieve the plugin for.the corresponding plugin if @type is a dynamic type, %NULL otherwise.type_get_type_registration_serial ()
Returns an opaque serial number that represents the state of the set of registered types. Any time a type is registered this serial changes, which means you can cache information based on type lookups (such as g_type_from_name()) and know if the cache is still valid at a later time by comparing the current serial with the one at the type lookup.
An unsigned int, representing the state of type registrations.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.
None.type_init_with_debug_flags (string debug_flags)
This function used to initialise the type system with debugging flags. Since GLib 2.36, the type system is initialised automatically and this function does nothing. If you need to enable debugging features, use the
GOBJECT_DEBUGenvironment variable.
debug_flags is bitwise combination of #GTypeDebugFlags values for debugging purposes.None.type_interface_add_prerequisite (int interface_type, int prerequisite_type)
Adds @prerequisite_type to the list of prerequisites of @interface_type. This means that any type implementing @interface_type must also implement
Prerequisites can be thought of as an alternative to interface derivation (which GType doesn't support). An interface can have at most one instantiatable prerequisite type.interface_type is #GType value of an interface type.prerequisite_type is #GType value of an interface or instantiatable type.None.type_interface_get_plugin (int instance_type, int interface_type)
Returns the #GTypePlugin structure for the dynamic interface
which has been added to @instance_type, or %NULL ifhas not been added to @instance_type or does not have a #GTypePlugin structure. See g_type_add_interface_dynamic().instance_type is #GType of an instantiatable type.interface_type is #GType of an interface type.the #GTypePlugin for the dynamic interface @interface_type oftype_interface_instantiatable_prerequisite (int interface_type)
Returns the most specific instantiatable prerequisite of an interface type. If the interface type has no instantiatable prerequisite, %G_TYPE_INVALID is returned. See g_type_interface_add_prerequisite() for more information about prerequisites.
interface_type is an interface type.the instantiatable prerequisite type or %G_TYPE_INVALID if none.type_interface_peek (object instance_class, int iface_type)
Returns the #GTypeInterface structure of an interface to which the passed in class conforms.
instance_class is a #GTypeClass structure.iface_type is an interface ID which this class conforms to.the #GTypeInterface structure of @iface_type if implemented by%NULL otherwise.type_interface_prerequisites (int interface_type)
Returns the prerequisites of an interfaces type.
interface_type is an interface type.n_prerequisites is location to return the number of prerequisites, or %NULL.a newly-allocated zero-terminated array of #GType containing the prerequisites of @interface_type.type_interfaces (int type)
Return a newly allocated and 0-terminated array of type IDs, listing the interface types that @type conforms to.
type is the type to list interface types for.n_interfaces is location to store the length of the returned array, or %NULL.Newly allocated and 0-terminated array of interface types, free with g_free().type_is_a (int type, int is_a_type)
If @is_a_type is a derivable type, check whether @type is a descendant of
If @is_a_type is an interface, check whether @type conforms to it.type is type to check ancestry for.is_a_type is possible ancestor of @type or interface that @type could conform to.%TRUE if @type is a @is_a_type.type_name (int type)
Get the unique name that is assigned to a type ID. Note that this function (like all other GType API) cannot cope with invalid type IDs. %G_TYPE_INVALID may be passed to this function, as may be any other validly registered type ID, but randomized type IDs should not be passed in and will most likely lead to a crash.
type is type to return name for.static type name or %NULL.type_name_from_class (object g_class)
Generated wrapper for GIR function
type_name_from_class. Native symbol:g_type_name_from_class.
type_name_from_instance (object instance)
Generated wrapper for GIR function
type_name_from_instance. Native symbol:g_type_name_from_instance.
type_next_base (int leaf_type, int root_type)
Given a @leaf_type and a @root_type which is contained in its ancestry, return the type that @root_type is the immediate parent of. In other words, this function determines the type that is derived directly from
which is also a base class of @leaf_type. Given a root type and a leaf type, this function can be used to determine the types and order in which the leaf type is descended from the root type.leaf_type is descendant of @root_type and the type to be returned.root_type is immediate parent of the returned type.immediate child of @root_type and ancestor of @leaf_type.type_parent (int type)
Return the direct parent type of the passed in type. If the passed in type has no parent, i.e. is a fundamental type, 0 is returned.
type is the derived type.the parent type.type_query (int type)
Queries the type system for information about a specific type. This function will fill in a user-provided structure to hold type-specific information. If an invalid #GType is passed in, the @type member of the #GTypeQuery is 0. All members filled into the #GTypeQuery structure should be considered constant and have to be left untouched. Since GLib 2.78, this function allows queries on dynamic types. Previously it only supported static types.
type is #GType of a static, classed type.query is a user provided structure that is filled in with constant values upon success.None.type_register_dynamic (int parent_type, string type_name, object plugin, string flags)
Registers @type_name as the name of a new dynamic type derived from
The type system uses the information contained in the #GTypePlugin structure pointed to by @plugin to manage the type and its instances (if not abstract). The value of @flags determines the nature (e.g. abstract or not) of the type.parent_type is type from which this type will be derived.type_name is 0-terminated string used as the name of the new type.plugin is #GTypePlugin structure to retrieve the #GTypeInfo from.flags is bitwise combination of #GTypeFlags values.the new type identifier or %G_TYPE_INVALID if registration failed.type_register_fundamental (int type_id, string type_name, object info, finfo, string flags)
Registers @type_id as the predefined identifier and @type_name as the name of a fundamental type. If @type_id is already registered, or a type named @type_name is already registered, the behaviour is undefined. The type system uses the information contained in the #GTypeInfo structure pointed to by @info and the #GTypeFundamentalInfo structure pointed to by
to manage the type and its instances. The value of @flags determines additional characteristics of the fundamental type.type_id is a predefined type identifier.type_name is 0-terminated string used as the name of the new type.info is #GTypeInfo structure for this type.finfo is #GTypeFundamentalInfo structure for this type.flags is bitwise combination of #GTypeFlags values.the predefined type identifier.type_register_static (int parent_type, string type_name, object info, string flags)
Registers @type_name as the name of a new static type derived from
The type system uses the information contained in the #GTypeInfo structure pointed to by @info to manage the type and its instances (if not abstract). The value of @flags determines the nature (e.g. abstract or not) of the type.parent_type is type from which this type will be derived.type_name is 0-terminated string used as the name of the new type.info is #GTypeInfo structure for this type.flags is bitwise combination of #GTypeFlags values.the new type identifier.type_register_static_simple (int parent_type, string type_name, int class_size, object class_init, int instance_size, object instance_init, string flags)
Registers @type_name as the name of a new static type derived from
The value of @flags determines the nature (e.g. abstract or not) of the type. It works by filling a #GTypeInfo struct and calling g_type_register_static().parent_type is type from which this type will be derived.type_name is 0-terminated string used as the name of the new type.class_size is size of the class structure (see #GTypeInfo).class_init is location of the class initialization function (see #GTypeInfo).instance_size is size of the instance structure (see #GTypeInfo).instance_init is location of the instance initialization function (see #GTypeInfo).flags is bitwise combination of #GTypeFlags values.the new type identifier.type_remove_class_cache_func (cache_data, object cache_func)
Removes a previously installed #GTypeClassCacheFunc. The cache maintained by @cache_func has to be empty when calling g_type_remove_class_cache_func() to avoid leaks.
cache_data is data that was given when adding @cache_func.cache_func is a #GTypeClassCacheFunc.None.type_remove_interface_check (check_data, object check_func)
Removes an interface check function added with g_type_add_interface_check().
check_data is callback data passed to g_type_add_interface_check().check_func is callback function passed to g_type_add_interface_check().None.type_test_flags (int type, int flags)
Generated wrapper for GIR function
type_test_flags. Native symbol:g_type_test_flags.
type_value_table_peek (int type)
Returns the location of the #GTypeValueTable associated with @type. Note that this function should only be used from source code that implements or has internal knowledge of the implementation of @type.
type is a #GType.location of the #GTypeValueTable associated with @type or %NULL if there is no #GTypeValueTable associated with @type.value_register_transform_func (int src_type, int dest_type, object transform_func)
Registers a value transformation function for use in [method@GObject.Value.transform]. Any previously registered transformation function for @src_type and @dest_type will be replaced.
src_type is source type.dest_type is target type.transform_func is a function which transforms values of type @src_type into values of type @dest_type.None.value_type_compatible (int src_type, int dest_type)
Checks whether a [method@GObject.Value.copy] is able to copy values of type @src_type into values of type @dest_type.
src_type is source type to be copied.dest_type is destination type for copying.true if the copy is possible; false otherwise.value_type_transformable (int src_type, int dest_type)
Checks whether [method@GObject.Value.transform] is able to transform values of type @src_type into values of type @dest_type. Note that for the types to be transformable, they must be compatible or a transformation function must be registered using [func@GObject.Value.register_transform_func].
src_type is source type.dest_type is target type.true if the transformation is possible; false otherwise.variant_get_gtype ()
Generated wrapper for GIR function
variant_get_gtype. Native symbol:g_variant_get_gtype.
[92:7] extends: object
A callback function used by the type system to do base initialization of the class structures of derived types. This function is called as part of the initialization process of all derived classes and should reallocate or reset all dynamic class members copied over from the parent class. For example, class members (such as strings) that are not sufficiently handled by a plain memory copy of the parent class into the derived class have to be altered. See GClassInitFunc() for a discussion of the class initialization process.
GObjectBaseInitFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (g_class)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[716:7] extends: object
The type used for the various notification callbacks which can be registered on closures.
GObjectClosureNotifyCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (data, closure)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[456:7] extends: object
A callback function used by the type system to finalize a class. This function is rarely needed, as dynamically allocated class resources should be handled by GBaseInitFunc() and GBaseFinalizeFunc(). Also, specification of a GClassFinalizeFunc() in the #GTypeInfo structure of a static type is invalid, because classes of static types will never be finalized (they are artificially kept alive when their reference count drops to zero).
GObjectClassFinalizeFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (g_class, class_data)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1451:7] extends: object
A callback function which is called when the reference count of a class drops to zero. It may use g_type_class_ref() to prevent the class from being freed. You should not call g_type_class_unref() from a #GTypeClassCacheFunc function to prevent infinite recursion, use g_type_class_unref_uncached() instead. The functions have to check the class id passed in to figure whether they actually want to cache the class of this type, since all classes are routed through the same #GTypeClassCacheFunc chain.
GObjectTypeClassCacheFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (cache_data, g_class)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1965:7] extends: object
Frees any old contents that might be left in the value->data array of the
given value. No resources may remain allocated through the #GValue contents
after this function returns. E.g. for our above string type: |[ // only free strings without a specific flag for static
storage if (!(value->data[1].v_uint & G_VALUE_NOCOPY_CONTENTS)) g_free
(value->data[0].v_pointer); ]|
GObjectTypeValueFreeFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (value)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[2040:7] extends: object
Initializes the value contents by setting the fields of the value->data
array. The data array of the #GValue passed into this function was
zero-filled with memset(), so no care has to be taken to free any old
contents. For example, in the case of a string value that may never be %NULL,
the implementation might look like: |[
value->data[0].v_pointer = g_strdup (""); ]|
GObjectTypeValueInitFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (value)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[866:7] extends: object
A callback function used by the type system to finalize an interface. This function should destroy any internal data and release any resources allocated by the corresponding GInterfaceInitFunc() function.
GObjectInterfaceFinalizeFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (g_iface, iface_data)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1522:7] extends: object
A callback called after an interface vtable is initialized. See g_type_add_interface_check().
GObjectTypeInterfaceCheckFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (check_data, g_iface)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[1374:7] extends: object
A callback function used for notification when the state of a toggle reference changes. See also: g_object_add_toggle_ref()
GObjectToggleNotifyCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (data, object, is_last_ref)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[166:7] extends: object
A function to be called to transform @from_value to @to_value. If this is the @transform_to function of a binding, then @from_value is the @source_property on the @source object, and @to_value is the @target_property on the @target object. If this is the @transform_from function of a %G_BINDING_BIDIRECTIONAL binding, then those roles are reversed.
GObjectBindingTransformFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (binding, from_value, to_value, user_data)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.
[793:7] extends: object
A callback function used by the type system to initialize a new instance of a type. This function initializes all instance members and allocates any resources required by it. Initialization of a derived instance involves calling all its parent types instance initializers, so the class member of the instance is altered during its initialization to always point to the class that belongs to the type the current initializer was introduced for. The extended members of @instance are guaranteed to have been filled with zeros before this function is called.
GObjectInstanceInitFuncCallback (callback Fn, UserData = null)
Creates one native callback wrapper. The wrapper owns a trampoline that converts native pointers into generated wrapper objects before invoking
Fn.
Fn is the Aussom callback implementation.UserData is retained and passed through to Fn on each invocation when provided.trampoline (instance, g_class)
Internal trampoline. Converts native pointer arguments into generated wrapper instances, then invokes the user's callback.
callback ()
Returns the wrapped NativeCallback.
handle ()
Returns the callback as a NativeHandle.
close ()
Closes the underlying NativeCallback.
isClosed ()
Returns true when the callback has been closed.