Import line: | GObject = imports.gi.GObject; |
GIR File: | GObject-2.0.gir |
C documentation: | GObject |
Namespace : | GObject |
Properties | |
---|---|
gint32 GObject.PARAM_MASK : 0
|
|
gint32 GObject.PARAM_READWRITE : 0
|
|
gint32 GObject.PARAM_STATIC_STRINGS : 0
|
|
gint32 GObject.PARAM_USER_SHIFT : 0
|
|
gint32 GObject.SIGNAL_FLAGS_MASK : 0
|
|
gint32 GObject.SIGNAL_MATCH_MASK : 0
|
|
gint32 GObject.TYPE_FUNDAMENTAL_MAX : 0
|
|
gint32 GObject.TYPE_FUNDAMENTAL_SHIFT : 0
|
|
gint32 GObject.TYPE_RESERVED_BSE_FIRST : 0
|
|
gint32 GObject.TYPE_RESERVED_BSE_LAST : 0
|
|
gint32 GObject.TYPE_RESERVED_GLIB_FIRST : 0
|
|
gint32 GObject.TYPE_RESERVED_GLIB_LAST : 0
|
|
gint32 GObject.TYPE_RESERVED_USER_FIRST : 0
|
|
gint32 GObject.VALUE_COLLECT_FORMAT_MAX_LENGTH : 0
|
|
gint32 GObject.VALUE_NOCOPY_CONTENTS : 0
|
None |
Method / Constructor | Defined By | |
---|---|---|
GObject | ||
GObject.boxed_type_init
()
:
none
|
GObject | |
GObject.cclosure_marshal_BOOLEAN__BOXED_BOXED
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
|
GObject | |
GObject.cclosure_marshal_BOOLEAN__FLAGS
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
denotes a flags type.
A marshaller for a GCClosure with a callback of type
denotes a flags type.
|
GObject | |
GObject.cclosure_marshal_STRING__OBJECT_POINTER
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__BOOLEAN
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__BOXED
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__CHAR
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__DOUBLE
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__ENUM
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__FLAGS
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__FLOAT
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__INT
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__LONG
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__OBJECT
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__PARAM
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__POINTER
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__STRING
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__UCHAR
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__UINT
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__UINT_POINTER
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__ULONG
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__VARIANT
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
GObject.cclosure_marshal_VOID__VOID
(Closure closure, Value return_value, guint32 n_param_values, Value param_values, void* invocation_hint, void* marshal_data)
:
none
A marshaller for a GCClosure with a callback of type
A marshaller for a GCClosure with a callback of type
|
GObject | |
This function is meant to be called from the complete_type_info()
function 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); } ]|
This function is meant to be called from the complete_type_info()
function 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); } ]|
|
GObject | |
Registers a new static enumeration type with the name name.
Registers a new static enumeration type with the name name.
It is normally more convenient to let linkend="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().
|
GObject | |
GObject.enum_types_init
()
:
none
|
GObject | |
GObject.flags_complete_type_info
(Number g_flags_type, TypeInfo info, FlagsValue const_values)
:
none
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.
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.
|
GObject | |
Registers a new static flags type with the name name.
Registers a new static flags type with the name name.
It is normally more convenient to let linkend="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().
|
GObject | |
GObject.gtype_get_type
()
:
Number
|
GObject | |
GObject.object_get_type
()
:
Number
|
GObject | |
Creates a new GParamSpecPool.
Creates a new GParamSpecPool.
If type_prefixing is TRUE, lookups in the newly created pool will allow to specify the owner as a colon-separated prefix of the property name, like "GtkContainer:border-width". This feature is deprecated, so you should always set type_prefixing to FALSE.
|
GObject | |
GObject.param_spec_types_init
()
:
none
|
GObject | |
GObject.param_type_init
()
:
none
|
GObject | |
Registers name as the name of a new static type derived from
G_TYPE_PARAM.
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.
|
GObject | |
GObject.param_value_convert
(ParamSpec pspec, Value src_value, Value dest_value, gboolean strict_validation)
:
gboolean
Transforms src_value into dest_value if possible, and then
validates dest_value, in order for it to conform to pspec.
Transforms src_value into dest_value if possible, and then
validates dest_value, in order for it to conform to pspec. If transformed dest_value complied to pspec without modifications. See also g_value_type_transformable(), g_value_transform() and g_param_value_validate(). FALSE otherwise and dest_value is left untouched.
|
GObject | |
Checks whether value contains the default value as specified in pspec.
Checks whether value contains the default value as specified in pspec.
|
GObject | |
Sets value to its default value as specified in pspec.
Sets value to its default value as specified in pspec.
|
GObject | |
Ensures that the contents of value comply with the specifications
set out by pspec.
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.
|
GObject | |
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.
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.
|
GObject | |
Creates a new G_TYPE_POINTER derived type id for a new
pointer type with name name. |
GObject | |
GObject.signal_accumulator_first_wins
(SignalInvocationHint ihint, Value return_accu, Value handler_return, void* dummy)
:
gboolean
A predefined GSignalAccumulator for signals intended to be used as a
hook for application code to provide a particular value.
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
|
GObject | |
GObject.signal_accumulator_true_handled
(SignalInvocationHint ihint, Value return_accu, Value handler_return, void* dummy)
:
gboolean
A predefined GSignalAccumulator for signals that return a
boolean values.
A predefined GSignalAccumulator for signals that return a
boolean values. The behavior that this accumulator gives is 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 and no further handling is needed.
|
GObject | |
GObject.signal_add_emission_hook
(guint32 signal_id, guint32 detail, Function hook_func, void* hook_data, Function data_destroy)
:
guint32
Adds an emission hook for a signal, which will get called for any emission
of that signal, independent of the instance.
Adds an emission hook for a signal, which will get called for any emission
of that signal, independent of the instance. This is possible only for signals which don't have G_SIGNAL_NO_HOOKS flag set.
|
GObject | |
Calls the original class closure of a signal.
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().
|
GObject | |
GObject.signal_connect_closure
(void* instance, String detailed_signal, Closure closure, gboolean after)
:
guint32
Connects a closure to a signal for a particular object.
Connects a closure to a signal for a particular object.
|
GObject | |
GObject.signal_connect_closure_by_id
(void* instance, guint32 signal_id, guint32 detail, Closure closure, gboolean after)
:
guint32
Connects a closure to a signal for a particular object.
Connects a closure to a signal for a particular object.
|
GObject | |
GObject.signal_emitv
(Value instance_and_params, guint32 signal_id, guint32 detail, Value return_value)
:
none
Emits a signal.
Emits a signal.
Note that g_signal_emitv() doesn't change return_value if no handlers are connected, in contrast to g_signal_emit() and g_signal_emit_valist().
|
GObject | |
Blocks a handler of an instance so it will not be called during any
signal emissions unless it is unblocked again.
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 deactive 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.
|
GObject | |
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.
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.
|
GObject | |
GObject.signal_handler_find
(void* instance, SignalMatchType mask, guint32 signal_id, guint32 detail, Closure closure, void* func, void* data)
:
guint32
Finds the first signal handler that matches certain selection criteria.
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.
|
GObject | |
Returns whether handler_id is the id of a handler connected to instance.
Returns whether handler_id is the id of a handler connected to instance.
|
GObject | |
Undoes the effect of a previous g_signal_handler_block() call.
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.
|
GObject | |
GObject.signal_handlers_block_matched
(void* instance, SignalMatchType mask, guint32 signal_id, guint32 detail, Closure closure, void* func, void* data)
:
guint32
Blocks all handlers on an instance that match a certain selection criteria.
Blocks all handlers on an instance that match a certain selection criteria.
The criteria mask is passed as an OR-ed combination of GSignalMatchType flags, and the criteria values are passed as arguments. Passing at least one of the G_SIGNAL_MATCH_CLOSURE, G_SIGNAL_MATCH_FUNC or G_SIGNAL_MATCH_DATA match flags is required for successful matches. If no handlers were found, 0 is returned, the number of blocked handlers otherwise.
|
GObject | |
GObject.signal_handlers_destroy
(void* instance)
:
none
|
GObject | |
GObject.signal_handlers_disconnect_matched
(void* instance, SignalMatchType mask, guint32 signal_id, guint32 detail, Closure closure, void* func, void* data)
:
guint32
Disconnects all handlers on an instance that match a certain
selection criteria.
Disconnects all handlers on an instance that match a certain
selection criteria. The criteria mask is passed as an OR-ed combination of GSignalMatchType flags, and the criteria values are passed as arguments. Passing at least one of the G_SIGNAL_MATCH_CLOSURE, G_SIGNAL_MATCH_FUNC or G_SIGNAL_MATCH_DATA match flags is required for successful matches. If no handlers were found, 0 is returned, the number of disconnected handlers otherwise.
|
GObject | |
GObject.signal_handlers_unblock_matched
(void* instance, SignalMatchType mask, guint32 signal_id, guint32 detail, Closure closure, void* func, void* data)
:
guint32
Unblocks all handlers on an instance that match a certain selection
criteria.
Unblocks all handlers on an instance that match a certain selection
criteria. The criteria mask is passed as an OR-ed combination of GSignalMatchType flags, and the criteria values are passed as arguments. Passing at least one of the G_SIGNAL_MATCH_CLOSURE, G_SIGNAL_MATCH_FUNC or G_SIGNAL_MATCH_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.
|
GObject | |
GObject.signal_has_handler_pending
(void* instance, guint32 signal_id, guint32 detail, gboolean may_be_blocked)
:
gboolean
Returns whether there are any handlers connected to instance for the
given signal id and detail.
Returns whether there are any handlers connected to instance for the
given signal id and detail. 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. otherwise.
|
GObject | |
GObject.signal_init
()
:
none
|
GObject | |
Lists the signals by id that a certain instance or interface type
created.
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().
|
GObject | |
Given the name of the signal and the type of object it connects to, gets
the signal's identifying integer.
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. See g_signal_new() for details on allowed signal names.
|
GObject | |
Given the signal's identifier, finds its name.
|
GObject | |
GObject.signal_override_class_closure
(guint32 signal_id, Number instance_type, Closure class_closure)
:
none
Overrides the class closure (i.e.
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.
|
GObject | |
GObject.signal_parse_name
(String detailed_signal, Number itype, guint32 signal_id_p, guint32 detail_p, gboolean force_detail_quark)
:
gboolean
Internal function to parse a signal name into its signal_id
and detail quark.
Internal function to parse a signal name into its signal_id
and detail quark.
|
GObject | |
Queries the signal system for in-depth information about a
specific signal.
Queries the signal system for in-depth information about a
specific signal. This function will fill in a user-provided structure to hold signal-specific information. If an invalid signal id is passed in, the signal_id member of the GSignalQuery is 0. All members filled into the GSignalQuery structure should be considered constant and have to be left untouched.
|
GObject | |
GObject | ||
Stops a signal's current emission.
Stops a signal's current emission.
This will prevent the default method from running, if the signal was G_SIGNAL_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.
|
GObject | |
Stops a signal's current emission.
Stops a signal's current emission.
This is just like g_signal_stop_emission() except it will look up the signal id for you.
|
GObject | |
Creates a new closure which invokes the function found at the offset
identified by itype.
Creates a new closure which invokes the function found at the offset
identified by itype.
|
GObject | |
Set the callback for a source as a GClosure.
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.
|
GObject | |
GObject.source_set_dummy_callback
(Source source)
:
none
Sets a dummy callback for 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 structure must have been filled in with pointers to appropriate functions.
|
GObject | |
Return a newly allocated string, which describes the contents of a
GValue.
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.
|
GObject | |
GObject.strv_get_type
()
:
Number
|
GObject | |
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.
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. 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.
|
GObject | |
GObject.type_add_interface_dynamic
(Number instance_type, Number interface_type, TypePlugin plugin)
:
none
Adds the dynamic interface_type to instantiable_type.
Adds the dynamic interface_type to instantiable_type. The information
contained in the GTypePlugin structure pointed to by plugin is used to manage the relationship.
|
GObject | |
GObject.type_add_interface_static
(Number instance_type, Number interface_type, InterfaceInfo info)
:
none
Adds the static interface_type to instantiable_type.
Adds the static interface_type to instantiable_type. The information
contained in the GTypeInterfaceInfo structure pointed to by info is used to manage the relationship.
|
GObject | |
|
GObject | |
Private helper function to aid implementation of the G_TYPE_CHECK_INSTANCE()
macro.
Private helper function to aid implementation of the G_TYPE_CHECK_INSTANCE()
macro.
|
GObject | |
|
GObject | |
GObject | ||
|
GObject | |
|
GObject | |
Return a newly allocated and 0-terminated array of type IDs, listing the
child types of type.
Return a newly allocated and 0-terminated array of type IDs, listing the
child types of type. The return value has to be g_free()ed after use. and 0-terminated array of child types.
|
GObject | |
Registers a private structure for an instantiatable type.
Registers a private structure for an instantiatable type.
When an object is allocated, the private structures for the type and all of its parent types are allocated sequentially in the same memory block as the public structures. Note that the accumulated size of the private structures of a type and all its parent types cannot excced 64kB. This function should be called in the type's class_init() function. The private structure can be retrieved using the G_TYPE_INSTANCE_GET_PRIVATE() macro. The following example shows attaching a private structure fashion. type's class_init() function. |[ typedef struct _MyObject MyObject; typedef struct _MyObjectPrivate MyObjectPrivate; struct _MyObject { GObject parent; MyObjectPrivate *priv; }; struct _MyObjectPrivate { int some_field; }; static void my_object_class_init (MyObjectClass *klass) { g_type_class_add_private (klass, sizeof (MyObjectPrivate)); } static void my_object_init (MyObject *my_object) { my_object->priv = G_TYPE_INSTANCE_GET_PRIVATE (my_object, MY_TYPE_OBJECT, MyObjectPrivate); } static int my_object_get_some_field (MyObject *my_object) { MyObjectPrivate *priv = my_object->priv; return priv->some_field; } ]|
|
GObject | |
This function is essentially the same as g_type_class_ref(), except that
the classes reference count isn't incremented.
This function is essentially the same as g_type_class_ref(), except that
the classes reference count isn't incremented. 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). structure for the given type ID or NULL if the class does not currently exist.
|
GObject | |
A more efficient version of g_type_class_peek() which works only for
static types.
A more efficient version of g_type_class_peek() which works only for
static types. structure for the given type ID or NULL if the class does not currently exist or is dynamically loaded.
|
GObject | |
If the interface type g_type is currently in use, returns its
default interface vtable.
If the interface type g_type is currently in use, returns its
default interface vtable. vtable for the interface, or NULL if the type is not currently in use.
|
GObject | |
GObject | ||
GObject.type_free_instance
(TypeInstance instance)
:
none
Frees an instance of a type, returning it to the instance pool for
the type, if there is one.
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.
|
GObject | |
Lookup 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).
Lookup 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).
|
GObject | |
GObject | ||
GObject.type_fundamental_next
()
:
Number
Returns the next free fundamental type id which can be used to
register a new fundamental type with g_type_register_fundamental().
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. or 0 if the type system ran out of fundamental type IDs.
|
GObject | |
Returns the GTypePlugin structure for type or
NULL if type does not have a GTypePlugin structure.
Returns the GTypePlugin structure for type or
NULL if type does not have a GTypePlugin structure. dynamic type, NULL otherwise.
|
GObject | |
Obtains data which has previously been attached to type
with g_type_set_qdata(). |
GObject | |
GObject.type_init
()
:
none
Prior to any use of the type system, g_type_init() has to be called
to initialize the type system and assorted other code portions (such as the various fundamental type implementations or the signal system).
Prior to any use of the type system, g_type_init() has to be called
to initialize the type system and assorted other code portions (such as the various fundamental type implementations or the signal system). Since version 2.24 this also initializes the thread system
|
GObject | |
GObject.type_init_with_debug_flags
(TypeDebugFlags debug_flags)
:
none
Similar to g_type_init(), but additionally sets debug flags.
Similar to g_type_init(), but additionally sets debug flags.
|
GObject | |
Adds prerequisite_type to the list of prerequisites of interface_type.
Adds prerequisite_type to the list of prerequisites of interface_type.
This means that any type implementing interface_type must also implement interface derivation (which GType doesn't support). An interface can have at most one instantiatable prerequisite type.
|
GObject | |
GObject.type_interface_get_plugin
(Number instance_type, Number interface_type)
:
GObject.TypePlugin
Returns the GTypePlugin structure for the dynamic interface
have a GTypePlugin structure.
Returns the GTypePlugin structure for the dynamic interface
have a GTypePlugin structure. See g_type_add_interface_dynamic(). interface interface_type of instance_type.
|
GObject | |
Returns the GTypeInterface structure of an interface to which the
passed in class conforms.
Returns the GTypeInterface structure of an interface to which the
passed in class conforms. structure of iface_type if implemented by instance_class, NULL otherwise
|
GObject | |
Returns the prerequisites of an interfaces type.
|
GObject | |
Return a newly allocated and 0-terminated array of type IDs, listing the
interface types that type conforms to.
Return a newly allocated and 0-terminated array of type IDs, listing the
interface types that type conforms to. The return value has to be g_free()ed after use. allocated and 0-terminated array of interface types.
|
GObject | |
If is_a_type is a derivable type, check whether type is a
descendant of is_a_type.
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.
|
GObject | |
Get the unique name that is assigned to a type ID.
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.
|
GObject | |
|
GObject | |
|
GObject | |
Given a leaf_type and a root_type which is contained in its
anchestry, return the type that root_type is the immediate parent of.
Given a leaf_type and a root_type which is contained in its
anchestry, 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 be used to determine the types and order in which the leaf type is descended from the root type.
|
GObject | |
GObject | ||
GObject | ||
Queries the type system for information about a specific 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 GTypeQuery structure should be considered constant and have to be left untouched.
|
GObject | |
GObject.type_register_dynamic
(Number parent_type, String type_name, TypePlugin plugin, TypeFlags flags)
:
Number
Registers type_name as the name of a new dynamic type derived from
GTypePlugin structure pointed to by plugin to manage the type and its instances (if not abstract).
Registers type_name as the name of a new dynamic type derived from
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.
|
GObject | |
GObject.type_register_fundamental
(Number type_id, String type_name, TypeInfo info, TypeFundamentalInfo finfo, TypeFlags flags)
:
Number
Registers type_id as the predefined identifier and type_name as the
name of a fundamental type.
Registers type_id as the predefined identifier and type_name as the
name of a fundamental type. The type system uses the information contained in the GTypeInfo structure pointed to by info and the GTypeFundamentalInfo structure pointed to by finfo to manage the type and its instances. The value of flags determines additional characteristics of the fundamental type.
|
GObject | |
GObject.type_register_static
(Number parent_type, String type_name, TypeInfo info, TypeFlags flags)
:
Number
Registers type_name as the name of a new static type derived from
GTypeInfo structure pointed to by info to manage the type and its instances (if not abstract).
Registers type_name as the name of a new static type derived from
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.
|
GObject | |
GObject | ||
GObject | ||
GObject.value_c_init
()
:
none
|
GObject | |
GObject.value_transforms_init
()
:
none
|
GObject | |
Returns whether a GValue of type src_type can be copied into
a GValue of type dest_type.
Returns whether a GValue of type src_type can be copied into
a GValue of type dest_type.
|
GObject | |
Check whether g_value_transform() is able to transform values
of type src_type into values of type dest_type. |
GObject | |
GObject.value_types_init
()
:
none
|
GObject | |
GObject.variant_get_gtype
()
:
Number
|
GObject | |
GObject.variant_type_get_gtype
()
:
Number
|
GObject |
None |