G-Golf Enum Info low level API.
GIEnumInfo — Structs representing an enumeration and its values.
GIBaseInfo
+— GIRegisteredTypeInfo
+— GIEnumInfo
GIEnumInfo
represents an argument. An argument is always part of a
GICallableInfo
.
Note: in this section, unless otherwise specified, the info
argument is [must be] a pointer to a GIEumInfo
.
Returns a <gi-enum>
instance.
Obtains the values this enumeration contains, then makes and returns a
<gi-enum>
instance.
Returns an alist.
Obtains and returns the list pairs (symbol . id)
the enum GI
definition pointed by info contains. If you think the name is
strange, compare it with, for example gi-struct-field-types: just
like a GIStructInfo
holds a list of pointers to
GIFieldInfo
from which we get the (field) type,
aGIEnumInfo
holds a list of pointers to GIValueInfo
from
which we get the (enum) value - which in the GI world is a name (a
string) that we transform, in the scheme world, to a symbol.
Returns the number of values.
Obtains the number of values this enumeration contains.
Returns a pointer to a GIValueInfo
or #f if type tag is wrong.
Obtains a value for this enumeration. The GIValueInfo
must be
free’d using g-base-info-unref
when done.
index is a 0-based offset into info for a value.
Returns the number of methods.
Obtains the number of methods this enumeration has.
Returns a pointer to a GIFunctionInfo
or #f if type tag is wrong.
Obtains a method for this enumeration. The GIFunctionInfo
must be
free’d using g-base-info-unref
when done.
index is a 0-based offset into info for a method.
Returns the enumeration value.
Obtains a value of the GIValueInfo
.
info is [must be] a pointer to a GIValueInfo
.