Provide a copy of a boxed structure src-boxed which is of type boxed-type.
Passed: a class, or a GType number.
The type of src-boxed.
Passed: a foreign pointer, or a bytevector.
The boxed structure to be copied.
Returned: a foreign pointer.
The newly created copy of the boxed structure.
Free the boxed structure boxed which is of type boxed-type.
Passed: a class, or a GType number.
The type of boxed.
Passed: a foreign pointer, or a bytevector.
The boxed structure to be freed.
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
boxed-type-register-static
directly. The macro will create the appropriate *_get_type()
function for the boxed type.
Passed: a string.
Name of the new boxed type.
Passed: a procedure.
Boxed structure copy function.
See GBoxedCopyFunc for how it is called.
Passed: a procedure.
Boxed structure free function.
See GBoxedFreeFunc for how it is called.
Returned: a class, or a GType number.
New G_TYPE_BOXED derived type id for name.
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().
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
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().
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
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
#f marshaller.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
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.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single boolean argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single argument which is any boxed pointer type.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single character argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with one double-precision floating point argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single argument with an enumerated type.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single argument with a flags types.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with one single-precision floating point argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single integer argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with with a single long integer argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single <GObject> argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single argument of type <GParam>.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
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
cclosure-marshal-void--object
or
cclosure-marshal-void--object.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single string argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single unsigned character argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with with a single unsigned integer argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with an unsigned int and a pointer as arguments.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single unsigned long integer argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with a single <GVariant> argument.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
A GClosureMarshal function for use with
signals with no arguments.
Passed: a <GClosure>.
A <GClosure>.
Passed: a <GValue>.
A <GValue> to store the return value. May be
#f if the callback of closure doesn’t return a value.
Passed: an unsigned 32-bit integer.
The length of the param-values array.
Passed: a <GValue>.
An array of GValues holding the arguments on which to invoke the
callback of closure.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The invocation hint given as the last argument to closure:invoke!.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
Additional data specified when registering the marshaller, see
g_closure_set_marshal() and g_closure_set_meta_marshal()
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.
Passed: an unsigned 64-bit integer.
A pointer to a handler ID (of type gulong) of the handler to be
disconnected.
Passed: a <GObject>.
The instance to remove the signal handler from. This pointer may be
#f or invalid, if the handler ID is zero.
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.
Passed: a class, or a GType number.
the type identifier of a GEnumClass type
Passed: a 32-bit integer.
the value
Returned: a string.
a newly-allocated text string
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.
Passed: a class, or a GType number.
the type identifier of a GFlagsClass type
Passed: an unsigned 32-bit integer.
the value
Returned: a string.
a newly-allocated text string
Returned: a class, or a GType number.
Creates a new <GParamBoolean> instance
specifying a G_TYPE_BOOLEAN property. In many cases, it may be
more appropriate to use an enum with
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.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a boolean.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamBoxed> instance
specifying a G_TYPE_BOXED derived property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a class, or a GType number.
G_TYPE_BOXED derived type of this property
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamChar> instance
specifying a G_TYPE_CHAR property.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: an 8-bit integer, or a character.
minimum value for the property specified
Passed: an 8-bit integer, or a character.
maximum value for the property specified
Passed: an 8-bit integer, or a character.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamDouble> instance
specifying a G_TYPE_DOUBLE property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a real number.
minimum value for the property specified
Passed: a real number.
maximum value for the property specified
Passed: a real number.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamEnum> instance
specifying a G_TYPE_ENUM property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a class, or a GType number.
a GType derived from G_TYPE_ENUM
Passed: a 32-bit integer.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamFlags> instance
specifying a G_TYPE_FLAGS property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a class, or a GType number.
a GType derived from G_TYPE_FLAGS
Passed: an unsigned 32-bit integer.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamFloat> instance
specifying a G_TYPE_FLOAT property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a real number.
minimum value for the property specified
Passed: a real number.
maximum value for the property specified
Passed: a real number.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamGType> instance
specifying a G_TYPE_GTYPE property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a class, or a GType number.
a GType whose subtypes are allowed as values of the property (use
G_TYPE_NONE for any type)
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamInt> instance specifying
a G_TYPE_INT property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a 32-bit integer.
minimum value for the property specified
Passed: a 32-bit integer.
maximum value for the property specified
Passed: a 32-bit integer.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamInt64> instance
specifying a G_TYPE_INT64 property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a 64-bit integer.
minimum value for the property specified
Passed: a 64-bit integer.
maximum value for the property specified
Passed: a 64-bit integer.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamLong> instance
specifying a G_TYPE_LONG property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a 64-bit integer.
minimum value for the property specified
Passed: a 64-bit integer.
maximum value for the property specified
Passed: a 64-bit integer.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamBoxed> instance
specifying a G_TYPE_OBJECT derived property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a class, or a GType number.
G_TYPE_OBJECT derived type of this property
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamParam> instance
specifying a G_TYPE_PARAM property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a class, or a GType number.
a GType derived from G_TYPE_PARAM
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamPointer> instance
specifying a pointer property. Where possible, it is better to use
param-spec-object or
param-spec-boxed to expose memory
management information.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamString> instance.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a string, or #f.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamUChar> instance
specifying a G_TYPE_UCHAR property.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: an unsigned 8-bit integer, or a character.
minimum value for the property specified
Passed: an unsigned 8-bit integer, or a character.
maximum value for the property specified
Passed: an unsigned 8-bit integer, or a character.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamUInt> instance
specifying a G_TYPE_UINT property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: an unsigned 32-bit integer.
minimum value for the property specified
Passed: an unsigned 32-bit integer.
maximum value for the property specified
Passed: an unsigned 32-bit integer.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamUInt64> instance
specifying a G_TYPE_UINT64 property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: an unsigned 64-bit integer.
minimum value for the property specified
Passed: an unsigned 64-bit integer.
maximum value for the property specified
Passed: an unsigned 64-bit integer.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamULong> instance
specifying a G_TYPE_ULONG property.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: an unsigned 64-bit integer.
minimum value for the property specified
Passed: an unsigned 64-bit integer.
maximum value for the property specified
Passed: an unsigned 64-bit integer.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamUnichar> instance
specifying a G_TYPE_UINT property. <GValue>
structures for this property can be accessed with value:set-uint and value:get-uint.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a character.
default value for the property specified
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
a newly created parameter specification
Creates a new <GParamVariant> instance
specifying a <GVariant> property.
If default-value is floating, it is consumed.
See g_param_spec_internal() for details on property names.
Passed: a string.
canonical name of the property specified
Passed: a string, or #f.
nick name for the property specified
Passed: a string, or #f.
description of the property specified
Passed: a <GVariantType>.
Passed: a <GVariant>, or #f.
a <GVariant> of type type to use as the
default value, or #f
Passed: a <%GParamFlags>, or a list of its
symbols, or one of them.
flags for the property specified
Returned: a <GParam>.
the newly created <GParam>
Transforms src-value into dest-value if possible, and then
validates dest-value, in order for it to conform to pspec.
If strict-validation is #t this function will only succeed
if the transformed dest-value complied to pspec without
modifications.
See also
value-type-transformable?,
value:transform? and
param-value-validate?.
Passed: a <GParam>.
a valid <GParam>
Passed: a <GValue>.
source <GValue>
Passed: a <GValue>.
destination <GValue> of correct type for pspec
Passed: a boolean.
#t requires dest-value to conform to pspec without
modifications
Returned: a boolean.
#t if transformation and validation were successful, #f
otherwise and dest-value is left untouched.
Checks whether value contains the default value as specified in pspec.
Return whether the contents of value comply with the specifications set out by pspec.
Sets value to its default value as specified in pspec.
Ensures that the contents of value comply with the specifications
set out by pspec. For example, a
<GParamInt> 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.
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 value2, respectively.
Creates a new G_TYPE_POINTER derived type id for a new pointer
type with name name.
Passed: a string.
the name of the new pointer type.
Returned: a class, or a GType number.
a new G_TYPE_POINTER derived type id for name.
Calls the original class closure of a signal. This function should only
be called from an overridden class closure; see
signal-override-class-closure
and
signal-override-class-handler.
Passed: a foreign pointer, or a bytevector.
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.
Passed: a <GValue>.
Location for the return value.
Connects a closure to a signal for a particular object.
If closure is a floating reference (see 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.
Passed: a <GObject>.
the instance to connect to.
Passed: a string.
a string of the form "signal-name::detail".
Passed: a <GClosure>.
the closure to connect.
Passed: a boolean.
whether the handler should be called before or after the default handler of the signal.
Returned: an unsigned 64-bit integer.
the handler ID (always greater than 0)
Connects a closure to a signal for a particular object.
If closure is a floating reference (see 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.
Passed: a <GObject>.
the instance to connect to.
Passed: an unsigned 32-bit integer.
the id of the signal.
Passed: an unsigned 32-bit integer.
the detail.
Passed: a <GClosure>.
the closure to connect.
Passed: a boolean.
whether the handler should be called before or after the default handler of the signal.
Returned: an unsigned 64-bit integer.
the handler ID (always greater than 0)
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 signal-emitv! doesn’t change
return-value if no handlers are connected, in contrast to
g_signal_emit() and g_signal_emit_valist().
Passed: a foreign pointer, or a bytevector.
argument list for 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.
Passed: an unsigned 32-bit integer.
the signal id
Passed: an unsigned 32-bit integer.
the detail
Passed, and returned: a <GValue>.
Location to store the return value of the signal emission. This must be provided if the specified signal returns a value, but may be ignored otherwise.
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.
Passed: a <GObject>.
The instance to block the signal handler of.
Passed: an unsigned 64-bit integer.
Handler id of the handler to be blocked.
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 handler-id has to be a valid signal handler id, connected to a signal of instance.
Passed: a <GObject>.
The instance to remove the signal handler from.
Passed: an unsigned 64-bit integer.
Handler id of the handler to be disconnected.
Finds the first signal handler that matches certain selection criteria.
The criteria mask is passed as an OR-ed combination of
<%GSignalMatchType> flags, and the
criteria values are passed as arguments. The match mask has to be
non-0 for successful matches. If no handler was found, 0 is returned.
Passed: a <GObject>.
The instance owning the signal handler to be found.
Passed: a <%GSignalMatchType>, or a list
of its symbols, or one of them.
Mask indicating which of signal-id, detail, closure, func and/or data the handler has to match.
Passed: an unsigned 32-bit integer.
Signal the handler has to be connected to.
Passed: an unsigned 32-bit integer.
Signal detail the handler has to be connected to.
Passed, or left out: a <GClosure>, or #f.
The closure the handler will invoke.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The C closure callback of the handler (useless for non-C closures).
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The closure data of the handler’s closure.
Returned: an unsigned 64-bit integer.
A valid non-0 signal handler id for a successful match.
Returns whether handler-id is the ID of a handler connected to instance.
Passed: a <GObject>.
The instance where a signal handler is sought.
Passed: an unsigned 64-bit integer.
the handler ID.
Returned: a boolean.
whether handler-id identifies a handler connected to instance.
Undoes the effect of a previous
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.
Passed: a <GObject>.
The instance to unblock the signal handler of.
Passed: an unsigned 64-bit integer.
Handler id of the handler to be unblocked.
Blocks all handlers on an instance that match a certain selection criteria.
The criteria mask is passed as a combination of
<%GSignalMatchType> flags, and the
criteria values are passed as arguments. A handler must match on all
flags set in mask to be blocked (i.e. the match is conjunctive).
Passing at least one of the id,
closure,
func or data
match flags is required for successful matches. If no handlers were
found, 0 is returned, the number of blocked handlers otherwise.
Support for id was added in GLib 2.78.
Passed: a <GObject>.
The instance to block handlers from.
Passed: a <%GSignalMatchType>, or a list
of its symbols, or one of them.
Mask indicating which of signal-id, detail, closure, func and/or data the handlers have to match.
Passed: an unsigned 32-bit integer.
Signal the handlers have to be connected to.
Passed: an unsigned 32-bit integer.
Signal detail the handlers have to be connected to.
Passed, or left out: a <GClosure>, or #f.
The closure the handlers will invoke.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The C closure callback of the handlers (useless for non-C closures).
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The closure data of the handlers’ closures.
Returned: an unsigned 32-bit integer.
The number of handlers that matched.
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.
Passed: a <GObject>.
The instance whose signal handlers are destroyed
Disconnects all handlers on an instance that match a certain selection criteria.
The criteria mask is passed as a combination of
<%GSignalMatchType> flags, and the
criteria values are passed as arguments. A handler must match on all
flags set in mask to be disconnected (i.e. the match is
conjunctive).
Passing at least one of the id,
closure,
func or data
match flags is required for successful matches. If no handlers were
found, 0 is returned, the number of disconnected handlers otherwise.
Support for id was added in GLib 2.78.
Passed: a <GObject>.
The instance to remove handlers from.
Passed: a <%GSignalMatchType>, or a list
of its symbols, or one of them.
Mask indicating which of signal-id, detail, closure, func and/or data the handlers have to match.
Passed: an unsigned 32-bit integer.
Signal the handlers have to be connected to.
Passed: an unsigned 32-bit integer.
Signal detail the handlers have to be connected to.
Passed, or left out: a <GClosure>, or #f.
The closure the handlers will invoke.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The C closure callback of the handlers (useless for non-C closures).
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The closure data of the handlers’ closures.
Returned: an unsigned 32-bit integer.
The number of handlers that matched.
Unblocks all handlers on an instance that match a certain selection criteria.
The criteria mask is passed as a combination of
<%GSignalMatchType> flags, and the
criteria values are passed as arguments. A handler must match on all
flags set in mask to be unblocked (i.e. the match is
conjunctive).
Passing at least one of the id,
closure,
func or data
match flags is required for successful matches. If no handlers were
found, 0 is returned, the number of unblocked handlers otherwise. The
match criteria should not apply to any handlers that are not currently
blocked.
Support for id was added in GLib 2.78.
Passed: a <GObject>.
The instance to unblock handlers from.
Passed: a <%GSignalMatchType>, or a list
of its symbols, or one of them.
Mask indicating which of signal-id, detail, closure, func and/or data the handlers have to match.
Passed: an unsigned 32-bit integer.
Signal the handlers have to be connected to.
Passed: an unsigned 32-bit integer.
Signal detail the handlers have to be connected to.
Passed, or left out: a <GClosure>, or #f.
The closure the handlers will invoke.
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The C closure callback of the handlers (useless for non-C closures).
Passed, or left out: a foreign pointer, or a bytevector, or #f.
The closure data of the handlers’ closures.
Returned: an unsigned 32-bit integer.
The number of handlers that matched.
Returns whether there are any handlers connected to instance for the given signal id and detail.
If detail is 0 then it will only match handlers that were connected without detail. If detail is non-zero then it will match handlers connected both without detail and with the given detail. This is consistent with how a signal emitted with detail would be delivered to those handlers.
Since 2.46 this also checks for a non-default class closure being installed, as this is basically always what you want.
One example of when you might use this is when the arguments to the signal are difficult to compute. A class implementor may opt to not emit the signal if no one is attached anyway, thus saving the cost of building the arguments.
Passed: a <GObject>.
the object whose signal handlers are sought.
Passed: an unsigned 32-bit integer.
the signal id.
Passed: an unsigned 32-bit integer.
the detail.
Passed: a boolean.
whether blocked handlers should count as match.
Returned: a boolean.
#t if a handler is connected to the signal, #f otherwise.
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 GObject.signal_new for details of the rules for valid names.
The rules for signal names are the same as those for property names.
Passed: a string.
the canonical name of the signal
Returned: a boolean.
#t if name is a valid signal name, #f otherwise.
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().
Passed: a class, or a GType number.
Instance or interface type.
Returned: an u32vector.
Newly allocated array of signal IDs.
Not returned: it is the length of %return.
Location to store the number of signal ids for 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.
Passed: a string.
the signal’s name.
Passed: a class, or a GType number.
the type that the signal operates on.
Returned: an unsigned 32-bit integer.
the signal’s identifying number, or 0 if no signal was found.
Given the signal’s identifier, finds its name.
Two different signals may have the same name, if they have differing types.
Passed: an unsigned 32-bit integer.
the signal’s identifying number.
Returned: a string, or #f.
the signal name, or #f if the signal number was invalid.
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
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.
Passed: an unsigned 32-bit integer.
the signal id
Passed: a class, or a GType number.
the instance type on which to override the class closure for the signal.
Passed: a <GClosure>.
the closure.
Overrides the class closure (i.e. the default handler) for the given signal for emissions on instances of instance-type with callback class-handler. instance-type must be derived from the type to which the signal belongs.
See
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.
Passed: a string.
the name for the signal
Passed: a class, or a GType number.
the instance type on which to override the class handler for the signal.
Passed: a procedure.
the handler.
See GCallback for how it is called.
Internal function to parse a signal name into its signal-id and detail quark.
Passed: a string.
a string of the form "signal-name::detail".
Passed: a class, or a GType number.
The interface/instance type that introduced "signal-name".
Passed: a boolean.
#t forces creation of a GQuark for the detail.
Returned: a boolean.
Whether the signal name could successfully be parsed and signal-id-p and detail-p contain valid return values.
Returned: an unsigned 32-bit integer.
Location to store the signal id.
Returned: an unsigned 32-bit integer.
Location to store the detail quark.
Deletes an emission hook.
Passed: an unsigned 32-bit integer.
the id of the signal
Passed: an unsigned 64-bit integer.
the id of the emission hook, as returned by
g_signal_add_emission_hook()
Stops a signal’s current emission.
This will prevent the default method from running, if the signal was
run-last and you connected normally (i.e.
without the "after" flag).
Prints a warning if used on a signal which isn’t being emitted.
Passed: a <GObject>.
the object whose signal handlers you wish to stop.
Passed: an unsigned 32-bit integer.
the signal identifier, as returned by
signal-lookup.
Passed: an unsigned 32-bit integer.
the detail which the signal was emitted with.
Stops a signal’s current emission.
This is just like
signal-stop-emission except it will
look up the signal id for you.
Passed: a <GObject>.
the object whose signal handlers you wish to stop.
Passed: a string.
a string of the form "signal-name::detail".
Creates a new closure which invokes the function found at the offset struct-offset in the class structure of the interface or classed type identified by itype.
Passed: a class, or a GType number.
the GType identifier of an interface or classed type
Passed: an unsigned 32-bit integer.
the offset of the member function of itype’s class structure which is to be invoked by the new closure
Returned: a <GClosure>.
a floating reference to a new GCClosure
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.
Passed: a <GSource>.
the source
Passed: a <GClosure>.
Sets a dummy callback for source. The callback will do nothing,
and if the source expects a gboolean return value, it will return
#t. (If the source expects any other type of return value, it
will return a 0/#f value; whatever value:init initializes a <GValue> to for
that type.)
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.
Passed: a <GSource>.
the source
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.
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.
Passed: a class, or a GType number.
GType of a classed type
Passed: an unsigned 64-bit integer.
size of private structure
Passed: a class, or a GType number.
Passed: an unsigned 64-bit integer.
Returned: a 32-bit integer.
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.
Passed: a class, or a GType number.
GType value of an instantiatable type
Passed: a class, or a GType number.
GType value of an interface type
Passed: a <GTypePlugin>.
<GTypePlugin> structure to retrieve the
GInterfaceInfo from
Passed: a class, or a GType number.
Returned: a boolean.
Passed: a <GValue>.
Passed: a class, or a GType number.
Returned: a boolean.
Passed: a <GValue>.
Returned: a boolean.
Return a newly allocated and 0-terminated array of type IDs, listing the child types of type.
Passed: a class, or a GType number.
the parent type
Returned: a vector, each a class, or a GType number.
Newly allocated and 0-terminated array of child types, free with
byte-array:free
Not returned: it is the length of %return.
location to store the length of the returned array, or #f
Passed: a foreign pointer, or a bytevector, or #f.
Passed: a 32-bit integer.
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.
Passed: a class, or a GType number.
a GType
Returned: an unsigned 32-bit integer.
the depth of 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
type-ensure guarantees that the type’s
_get_type() method is called.
Passed: a class, or a GType number.
a GType
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).
Passed: a string.
type name to look up
Returned: a class, or a GType number.
corresponding type ID or 0
Internal function, used to extract the fundamental type ID portion. Use
G_TYPE_FUNDAMENTAL() instead.
Passed: a class, or a GType number.
valid type ID
Returned: a class, or a GType number.
fundamental type ID
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.
Returned: a class, or a GType number.
the next available fundamental type ID to be registered, or 0 if the type system ran out of fundamental type IDs
Returns the number of instances allocated of the particular type; this
is only available if GLib is built with debugging support and the
instance-count debug flag is set (by setting the
GOBJECT_DEBUG variable to include instance-count).
Passed: a class, or a GType number.
a GType
Returned: a 32-bit integer.
the number of instances allocated of the given type; if instance counts are not available, returns 0.
Returns the <GTypePlugin> structure for
type.
Passed: a class, or a GType number.
GType to retrieve the plugin for
Returned: a <GTypePlugin>.
the corresponding plugin if type is a dynamic type, #f
otherwise
Obtains data which has previously been attached to type with
type-set-qdata.
Note that this does not take subtyping into account; data attached to
one type with type-set-qdata cannot be
retrieved from a subtype using
type-get-qdata.
Passed: a class, or a GType number.
a GType
Passed: an unsigned 32-bit integer.
a GQuark id to identify the data
Returned: a foreign pointer, or #f.
the data, or #f if no data was found
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
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.
Returned: an unsigned 32-bit integer.
An unsigned int, representing the state of type registrations
Adds prerequisite-type to the list of prerequisites of interface-type. This means that any type implementing interface-type must also implement prerequisite-type. 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.
Passed: a class, or a GType number.
GType value of an interface type
Passed: a class, or a GType number.
GType value of an interface or instantiatable type
Returns the <GTypePlugin> structure for the
dynamic interface interface-type which has been added to
instance-type, or #f if interface-type has not been
added to instance-type or does not have a
<GTypePlugin> structure. See
type-add-interface-dynamic.
Passed: a class, or a GType number.
GType of an instantiatable type
Passed: a class, or a GType number.
GType of an interface type
Returned: a <GTypePlugin>.
the <GTypePlugin> for the dynamic interface
interface-type of instance-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
type-interface-add-prerequisite
for more information about prerequisites.
Passed: a class, or a GType number.
an interface type
Returned: a class, or a GType number.
the instantiatable prerequisite type or G_TYPE_INVALID if none
Returns the prerequisites of an interfaces type.
Passed: a class, or a GType number.
an interface type
Returned: a vector, each a class, or a GType number.
a newly-allocated zero-terminated array of GType containing the
prerequisites of interface-type
Not returned: it is the length of %return.
location to return the number of prerequisites, or #f
Return a newly allocated and 0-terminated array of type IDs, listing the interface types that type conforms to.
Passed: a class, or a GType number.
the type to list interface types for
Returned: a vector, each a class, or a GType number.
Newly allocated and 0-terminated array of interface types, free with
byte-array:free
Not returned: it is the length of %return.
location to store the length of the returned array, or #f
If is-a-type is a derivable type, check whether type is a descendant of is-a-type. If is-a-type is an interface, check whether type conforms to it.
Passed: a class, or a GType number.
type to check ancestry for
Passed: a class, or a GType number.
possible ancestor of type or interface that type could conform to
Returned: a boolean.
#t if type is a is-a-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.
Passed: a class, or a GType number.
type to return name for
Returned: a string, or #f.
static type name or #f
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 root-type 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.
Passed: a class, or a GType number.
descendant of root-type and the type to be returned
Passed: a class, or a GType number.
immediate parent of the returned type
Returned: a class, or a GType number.
immediate child of root-type and ancestor of leaf-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.
Passed: a class, or a GType number.
the derived type
Returned: a class, or a GType number.
the parent type
Get the corresponding quark of the type IDs name.
Passed: a class, or a GType number.
type to return quark of type name for
Returned: an unsigned 32-bit integer.
the type names quark or 0
Registers type-name as the name of a new dynamic type derived from
parent-type. 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.
Passed: a class, or a GType number.
type from which this type will be derived
Passed: a string.
0-terminated string used as the name of the new type
Passed: a <GTypePlugin>.
<GTypePlugin> structure to retrieve the
GTypeInfo from
Passed: a <%GTypeFlags>, or a list of its
symbols, or one of them.
bitwise combination of <%GTypeFlags> values
Returned: a class, or a GType number.
the new type identifier or G_TYPE_INVALID if registration failed
Attaches arbitrary data to a type.
Passed: a class, or a GType number.
a GType
Passed: an unsigned 32-bit integer.
a GQuark id to identify the data
Passed, or left out: a foreign pointer, or a bytevector, or #f.
the data
Passed: a class, or a GType number.
Passed: an unsigned 32-bit integer.
Returned: a boolean.
Checks whether a value:copy is able to copy
values of type src-type into values of type dest-type.
Passed: a class, or a GType number.
source type to be copied
Passed: a class, or a GType number.
destination type for copying
Returned: a boolean.
true if the copy is possible; false otherwise
Checks whether 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
GObject.Value.register_transform_func.
Passed: a class, or a GType number.
source type
Passed: a class, or a GType number.
target type
Returned: a boolean.
true if the transformation is possible; false otherwise
Returned: a class, or a GType number.