![]() |
![]() |
![]() |
GObject Introspection Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
#define GI_IS_STRUCT_INFO (info) typedef GIStructInfo; gint g_struct_info_get_n_fields (GIStructInfo *info
); GIFieldInfo * g_struct_info_get_field (GIStructInfo *info
,gint n
); gint g_struct_info_get_n_methods (GIStructInfo *info
); GIFunctionInfo * g_struct_info_get_method (GIStructInfo *info
,gint n
); GIFunctionInfo * g_struct_info_find_method (GIStructInfo *info
,const gchar *name
); gsize g_struct_info_get_size (GIStructInfo *info
); gsize g_struct_info_get_alignment (GIStructInfo *info
); gboolean g_struct_info_is_gtype_struct (GIStructInfo *info
); gboolean g_struct_info_is_foreign (GIStructInfo *info
);
gint g_struct_info_get_n_fields (GIStructInfo *info
);
Obtain the number of fields this structure has.
|
a GIStructInfo |
Returns : |
number of fields |
GIFieldInfo * g_struct_info_get_field (GIStructInfo *info
,gint n
);
Obtain the type information for field with specified index.
|
a GIStructInfo |
|
a field index |
Returns : |
the GIFieldInfo, free it with g_base_info_unref()
when done. [transfer full]
|
gint g_struct_info_get_n_methods (GIStructInfo *info
);
Obtain the number of methods this structure has.
|
a GIStructInfo |
Returns : |
number of methods |
GIFunctionInfo * g_struct_info_get_method (GIStructInfo *info
,gint n
);
Obtain the type information for method with specified index.
|
a GIStructInfo |
|
a method index |
Returns : |
the GIFunctionInfo, free it with g_base_info_unref()
when done. [transfer full]
|
GIFunctionInfo * g_struct_info_find_method (GIStructInfo *info
,const gchar *name
);
Obtain the type information for method named name
.
|
a GIStructInfo |
|
a method name |
Returns : |
the GIFunctionInfo, free it with g_base_info_unref()
when done. [transfer full]
|
gsize g_struct_info_get_size (GIStructInfo *info
);
Obtain the total size of the structure.
|
a GIStructInfo |
Returns : |
size of the structure in bytes |
gsize g_struct_info_get_alignment (GIStructInfo *info
);
Obtain the required alignment of the structure.
|
a GIStructInfo |
Returns : |
required alignment in bytes |
gboolean g_struct_info_is_gtype_struct (GIStructInfo *info
);
Return true if this structure represents the "class structure" for some GObject or GInterface. This function is mainly useful to hide this kind of structure from generated public APIs.
|
a GIStructInfo |
Returns : |
TRUE if this is a class struct, FALSE otherwise |