Top |
GIInterfaceInfo represents a GInterface type.
A GInterface has methods, fields, properties, signals, interfaces, constants, virtual functions and prerequisites.
gint
g_interface_info_get_n_prerequisites (GIInterfaceInfo *info
);
Obtain the number of prerequisites for this interface type. A prerequisites is another interface that needs to be implemented for interface, similar to an base class for GObjects.
GIBaseInfo * g_interface_info_get_prerequisite (GIInterfaceInfo *info
,gint n
);
Obtain an interface type prerequisites index n
.
the prerequisites as a GIBaseInfo. Free the struct by calling
g_base_info_unref()
when done.
[transfer full]
gint
g_interface_info_get_n_properties (GIInterfaceInfo *info
);
Obtain the number of properties that this interface type has.
GIPropertyInfo * g_interface_info_get_property (GIInterfaceInfo *info
,gint n
);
Obtain an interface type property at index n
.
the GIPropertyInfo. Free the struct by calling
g_base_info_unref()
when done.
[transfer full]
gint
g_interface_info_get_n_methods (GIInterfaceInfo *info
);
Obtain the number of methods that this interface type has.
GIFunctionInfo * g_interface_info_get_method (GIInterfaceInfo *info
,gint n
);
Obtain an interface type method at index n
.
the GIFunctionInfo. Free the struct by calling
g_base_info_unref()
when done.
[transfer full]
GIFunctionInfo * g_interface_info_find_method (GIInterfaceInfo *info
,const gchar *name
);
Obtain a method of the interface type given a name
. NULL
will be
returned if there's no method available with that name.
the GIFunctionInfo or NULL
if none found.
Free the struct by calling g_base_info_unref()
when done.
[transfer full]
gint
g_interface_info_get_n_signals (GIInterfaceInfo *info
);
Obtain the number of signals that this interface type has.
GISignalInfo * g_interface_info_get_signal (GIInterfaceInfo *info
,gint n
);
Obtain an interface type signal at index n
.
GISignalInfo * g_interface_info_find_signal (GIInterfaceInfo *info
,const gchar *name
);
TODO
Since: 1.34
gint
g_interface_info_get_n_vfuncs (GIInterfaceInfo *info
);
Obtain the number of virtual functions that this interface type has.
GIVFuncInfo * g_interface_info_get_vfunc (GIInterfaceInfo *info
,gint n
);
Obtain an interface type virtual function at index n
.
GIVFuncInfo * g_interface_info_find_vfunc (GIInterfaceInfo *info
,const gchar *name
);
Locate a virtual function slot with name name
. See the documentation
for g_object_info_find_vfunc()
for more information on virtuals.
gint
g_interface_info_get_n_constants (GIInterfaceInfo *info
);
Obtain the number of constants that this interface type has.
GIConstantInfo * g_interface_info_get_constant (GIInterfaceInfo *info
,gint n
);
Obtain an interface type constant at index n
.
the GIConstantInfo. Free the struct by calling
g_base_info_unref()
when done.
[transfer full]
GIStructInfo *
g_interface_info_get_iface_struct (GIInterfaceInfo *info
);
Returns the layout C structure associated with this GInterface.