Enums

Undocumented in source.

Members

Static functions

completeTypeInfo
void completeTypeInfo(GType gEnumType, GTypeInfo info, GEnumValue* constValues)

This function is meant to be called from the complete_type_info function of a #GTypePlugin implementation, as in the following

getValue
GEnumValue* getValue(GEnumClass* enumClass, int value)

Returns the #GEnumValue for a value.

getValueByName
GEnumValue* getValueByName(GEnumClass* enumClass, string name)

Looks up a #GEnumValue by name.

getValueByNick
GEnumValue* getValueByNick(GEnumClass* enumClass, string nick)

Looks up a #GEnumValue by nickname.

registerStatic
GType registerStatic(string name, GEnumValue* constStaticValues)

Registers a new static enumeration type with the name @name.

Meta