![]() |
![]() |
![]() |
GObject Introspection Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define GI_IS_OBJECT_INFO (info) typedef GIObjectInfo; void * (*GIObjectInfoGetValueFunction) (const GValue *value
); void * (*GIObjectInfoRefFunction) (void *object
); void (*GIObjectInfoSetValueFunction) (GValue *value
,void *object
); void (*GIObjectInfoUnrefFunction) (void *object
); const gchar * g_object_info_get_type_name (GIObjectInfo *info
); const gchar * g_object_info_get_type_init (GIObjectInfo *info
); gboolean g_object_info_get_abstract (GIObjectInfo *info
); gboolean g_object_info_get_fundamental (GIObjectInfo *info
); GIObjectInfo * g_object_info_get_parent (GIObjectInfo *info
); gint g_object_info_get_n_interfaces (GIObjectInfo *info
); GIInterfaceInfo * g_object_info_get_interface (GIObjectInfo *info
,gint n
); gint g_object_info_get_n_fields (GIObjectInfo *info
); GIFieldInfo * g_object_info_get_field (GIObjectInfo *info
,gint n
); gint g_object_info_get_n_properties (GIObjectInfo *info
); GIPropertyInfo * g_object_info_get_property (GIObjectInfo *info
,gint n
); gint g_object_info_get_n_methods (GIObjectInfo *info
); GIFunctionInfo * g_object_info_get_method (GIObjectInfo *info
,gint n
); GIFunctionInfo * g_object_info_find_method (GIObjectInfo *info
,const gchar *name
); gint g_object_info_get_n_signals (GIObjectInfo *info
); GISignalInfo * g_object_info_get_signal (GIObjectInfo *info
,gint n
); gint g_object_info_get_n_vfuncs (GIObjectInfo *info
); GIVFuncInfo * g_object_info_get_vfunc (GIObjectInfo *info
,gint n
); gint g_object_info_get_n_constants (GIObjectInfo *info
); GIConstantInfo * g_object_info_get_constant (GIObjectInfo *info
,gint n
); GIStructInfo * g_object_info_get_class_struct (GIObjectInfo *info
); GIVFuncInfo * g_object_info_find_vfunc (GIObjectInfo *info
,const gchar *name
); const char * g_object_info_get_unref_function (GIObjectInfo *info
); GIObjectInfoUnrefFunction g_object_info_get_unref_function_pointer (GIObjectInfo *info
); const char * g_object_info_get_ref_function (GIObjectInfo *info
); GIObjectInfoRefFunction g_object_info_get_ref_function_pointer (GIObjectInfo *info
); const char * g_object_info_get_set_value_function (GIObjectInfo *info
); GIObjectInfoSetValueFunction g_object_info_get_set_value_function_pointer (GIObjectInfo *info
); const char * g_object_info_get_get_value_function (GIObjectInfo *info
); GIObjectInfoGetValueFunction g_object_info_get_get_value_function_pointer (GIObjectInfo *info
);
GIObjectInfo represents a GObject. This doesn't represent a specific instance of a GObject, instead this represent the object type (eg class).
A GObject has methods, fields, properties, signals, interfaces, constants and virtual functions.
void * (*GIObjectInfoGetValueFunction) (const GValue *value
);
Extract an object instance out of value
|
a GValue |
Returns : |
the object instance. [transfer full] |
void * (*GIObjectInfoRefFunction) (void *object
);
Increases the reference count of an object instance.
|
object instance pointer |
Returns : |
the object instance. [transfer full] |
void (*GIObjectInfoSetValueFunction) (GValue *value
,void *object
);
Update value
and attach the object instance pointer object
to it.
|
a GValue |
|
object instance pointer |
void (*GIObjectInfoUnrefFunction) (void *object
);
Decreases the reference count of an object instance.
|
object instance pointer |
const gchar * g_object_info_get_type_name (GIObjectInfo *info
);
Obtain the name of the objects class/type.
|
a GIObjectInfo |
Returns : |
name of the objects type |
const gchar * g_object_info_get_type_init (GIObjectInfo *info
);
Obtain the function which when called will return the GType function for which this object type is registered.
|
a GIObjectInfo |
Returns : |
the type init function |
gboolean g_object_info_get_abstract (GIObjectInfo *info
);
Obtain if the object type is an abstract type, eg if it cannot be instantiated
|
a GIObjectInfo |
Returns : |
TRUE if the object type is abstract
|
gboolean g_object_info_get_fundamental (GIObjectInfo *info
);
Obtain if the object type is of a fundamental type which is not G_TYPE_OBJECT. This is mostly for supporting GstMiniObject.
|
a GIObjectInfo |
Returns : |
TRUE if the object type is a fundamental type
|
GIObjectInfo * g_object_info_get_parent (GIObjectInfo *info
);
Obtain the parent of the object type.
|
a GIObjectInfo |
Returns : |
the GIObjectInfo. Free the struct by calling
g_base_info_unref() when done. [transfer full]
|
gint g_object_info_get_n_interfaces (GIObjectInfo *info
);
Obtain the number of interfaces that this object type has.
|
a GIObjectInfo |
Returns : |
number of interfaces |
GIInterfaceInfo * g_object_info_get_interface (GIObjectInfo *info
,gint n
);
Obtain an object type interface at index n
.
|
a GIObjectInfo |
|
index of interface to get |
Returns : |
the GIInterfaceInfo. Free the struct by calling
g_base_info_unref() when done. [transfer full]
|
gint g_object_info_get_n_fields (GIObjectInfo *info
);
Obtain the number of fields that this object type has.
|
a GIObjectInfo |
Returns : |
number of fields |
GIFieldInfo * g_object_info_get_field (GIObjectInfo *info
,gint n
);
Obtain an object type field at index n
.
|
a GIObjectInfo |
|
index of field to get |
Returns : |
the GIFieldInfo. Free the struct by calling
g_base_info_unref() when done. [transfer full]
|
gint g_object_info_get_n_properties (GIObjectInfo *info
);
Obtain the number of properties that this object type has.
|
a GIObjectInfo |
Returns : |
number of properties |
GIPropertyInfo * g_object_info_get_property (GIObjectInfo *info
,gint n
);
Obtain an object type property at index n
.
|
a GIObjectInfo |
|
index of property to get |
Returns : |
the GIPropertyInfo. Free the struct by calling
g_base_info_unref() when done. [transfer full]
|
gint g_object_info_get_n_methods (GIObjectInfo *info
);
Obtain the number of methods that this object type has.
|
a GIObjectInfo |
Returns : |
number of methods |
GIFunctionInfo * g_object_info_get_method (GIObjectInfo *info
,gint n
);
Obtain an object type method at index n
.
|
a GIObjectInfo |
|
index of method to get |
Returns : |
the GIFunctionInfo. Free the struct by calling
g_base_info_unref() when done. [transfer full]
|
GIFunctionInfo * g_object_info_find_method (GIObjectInfo *info
,const gchar *name
);
Obtain a method of the object type given a name
. NULL
will be
returned if there's no method available with that name.
|
a GIObjectInfo |
|
name of method to obtain |
Returns : |
the GIFunctionInfo. Free the struct by calling
g_base_info_unref() when done. [transfer full]
|
gint g_object_info_get_n_signals (GIObjectInfo *info
);
Obtain the number of signals that this object type has.
|
a GIObjectInfo |
Returns : |
number of signals |
GISignalInfo * g_object_info_get_signal (GIObjectInfo *info
,gint n
);
Obtain an object type signal at index n
.
|
a GIObjectInfo |
|
index of signal to get |
Returns : |
the GISignalInfo. Free the struct by calling
g_base_info_unref() when done. [transfer full]
|
gint g_object_info_get_n_vfuncs (GIObjectInfo *info
);
Obtain the number of virtual functions that this object type has.
|
a GIObjectInfo |
Returns : |
number of virtual functions |
GIVFuncInfo * g_object_info_get_vfunc (GIObjectInfo *info
,gint n
);
Obtain an object type virtual function at index n
.
|
a GIObjectInfo |
|
index of virtual function to get |
Returns : |
the GIVFuncInfo. Free the struct by calling
g_base_info_unref() when done. [transfer full]
|
gint g_object_info_get_n_constants (GIObjectInfo *info
);
Obtain the number of constants that this object type has.
|
a GIObjectInfo |
Returns : |
number of constants |
GIConstantInfo * g_object_info_get_constant (GIObjectInfo *info
,gint n
);
Obtain an object type constant at index n
.
|
a GIObjectInfo |
|
index of constant to get |
Returns : |
the GIConstantInfo. Free the struct by calling
g_base_info_unref() when done. [transfer full]
|
GIStructInfo * g_object_info_get_class_struct (GIObjectInfo *info
);
Every GObject has two structures; an instance structure and a class structure. This function returns the metadata for the class structure.
|
a GIObjectInfo |
Returns : |
the GIStructInfo or NULL . Free with
g_base_info_unref() when done. [transfer full]
|
GIVFuncInfo * g_object_info_find_vfunc (GIObjectInfo *info
,const gchar *name
);
Locate a virtual function slot with name name
. Note that the namespace
for virtuals is distinct from that of methods; there may or may not be
a concrete method associated for a virtual. If there is one, it may
be retrieved using g_vfunc_info_get_invoker()
, otherwise NULL
will be
returned.
See the documentation for g_vfunc_info_get_invoker()
for more
information on invoking virtuals.
|
a GIObjectInfo |
|
The name of a virtual function to find. |
Returns : |
the GIVFuncInfo, or NULL . Free it with
g_base_info_unref() when done. [transfer full]
|
const char * g_object_info_get_unref_function (GIObjectInfo *info
);
Obtain the symbol name of the function that should be called to unref this
object type. It's mainly used fundamental types. The type signature for
the symbol is GIObjectInfoUnrefFunction
, to fetch the function pointer
see g_object_info_get_unref_function()
.
|
a GIObjectInfo |
Returns : |
the symbol or NULL
|
GIObjectInfoUnrefFunction g_object_info_get_unref_function_pointer
(GIObjectInfo *info
);
Obtain a pointer to a function which can be used to decrease the reference count an instance of this object type. This takes derivation into account and will reversely traverse the base classes of this type, starting at the top type.
|
a GIObjectInfo |
Returns : |
the function pointer or NULL
|
const char * g_object_info_get_ref_function (GIObjectInfo *info
);
Obtain the symbol name of the function that should be called to ref this
object type. It's mainly used fundamental types. The type signature for
the symbol is GIObjectInfoRefFunction
, to fetch the function pointer
see g_object_info_get_ref_function()
.
|
a GIObjectInfo |
Returns : |
the symbol or NULL
|
GIObjectInfoRefFunction g_object_info_get_ref_function_pointer
(GIObjectInfo *info
);
Obtain a pointer to a function which can be used to increase the reference count an instance of this object type. This takes derivation into account and will reversely traverse the base classes of this type, starting at the top type.
|
a GIObjectInfo |
Returns : |
the function pointer or NULL
|
const char * g_object_info_get_set_value_function
(GIObjectInfo *info
);
Obtain the symbol name of the function that should be called to convert
set a GValue giving an object instance pointer of this object type.
I's mainly used fundamental types. The type signature for the symbol
is GIObjectInfoSetValueFunction
, to fetch the function pointer
see g_object_info_get_set_value_function()
.
|
a GIObjectInfo |
Returns : |
the symbol or NULL
|
GIObjectInfoSetValueFunction g_object_info_get_set_value_function_pointer
(GIObjectInfo *info
);
Obtain a pointer to a function which can be used to set a GValue given an instance of this object type. This takes derivation into account and will reversely traverse the base classes of this type, starting at the top type.
|
a GIObjectInfo |
Returns : |
the function pointer or NULL
|
const char * g_object_info_get_get_value_function
(GIObjectInfo *info
);
Obtain the symbol name of the function that should be called to convert
an object instance pointer of this object type to a GValue.
I's mainly used fundamental types. The type signature for the symbol
is GIObjectInfoGetValueFunction
, to fetch the function pointer
see g_object_info_get_get_value_function()
.
|
a GIObjectInfo |
Returns : |
the symbol or NULL
|
GIObjectInfoGetValueFunction g_object_info_get_get_value_function_pointer
(GIObjectInfo *info
);
Obtain a pointer to a function which can be used to extract an instance of this object type out of a GValue. This takes derivation into account and will reversely traverse the base classes of this type, starting at the top type.
|
a GIObjectInfo |
Returns : |
the function pointer or NULL
|