![]() |
![]() |
![]() |
GObject Introspection Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
typedef GIEnumInfo; typedef GIValueInfo; gint g_enum_info_get_n_values (GIEnumInfo *info
); GIValueInfo * g_enum_info_get_value (GIEnumInfo *info
,gint n
); GITypeTag g_enum_info_get_storage_type (GIEnumInfo *info
); glong g_value_info_get_value (GIValueInfo *info
);
A GIEnumInfo represents an enumeration and a GIValueInfo struct represents a value
of an enumeration. The GIEnumInfo contains a set of values and a type
The GIValueInfo is fetched by calling g_enum_info_get_value()
on a GIEnumInfo.
gint g_enum_info_get_n_values (GIEnumInfo *info
);
Obtain the number of values this enumeration contains.
|
a GIEnumInfo |
Returns : |
the number of enumeration values |
GIValueInfo * g_enum_info_get_value (GIEnumInfo *info
,gint n
);
Obtain a value for this enumeration.
|
a GIEnumInfo |
|
index of value to fetch |
Returns : |
the enumeration value or NULL if type tag is wrong,
free the struct with g_base_info_unref() when done. [transfer full]
|
GITypeTag g_enum_info_get_storage_type (GIEnumInfo *info
);
Obtain the tag of the type used for the enum in the C ABI. This will will be a signed or unsigned integral type.
Note that in the current implementation the width of the type is computed correctly, but the signed or unsigned nature of the type may not match the sign of the type used by the C compiler.
|
a GIEnumInfo |
Returns : |
the storage type for the enumeration |
glong g_value_info_get_value (GIValueInfo *info
);
Obtain the enumeration value of the GIValueInfo.
|
a GIValueInfo |
Returns : |
the enumeration value |