Import line: | GObject = imports.gi.GObject; |
GIR File: | GObject-2.0.gir |
C documentation: | GEnumValue |
Struct : | EnumValue |
Properties | Defined By | |
---|---|---|
value : gint32
|
GObject.EnumValue | |
value_name : String
|
GObject.EnumValue | |
value_nick : String
|
GObject.EnumValue |
Method / Constructor | Defined By | |
---|---|---|
new GObject.EnumValue
()
Create a new GObject.EnumValue
Create a new GObject.EnumValue
|
None |
Class / Namespace | Method / Signal / Properties |
---|---|
GObject
Method |
This function is meant to be called from the complete_type_info()
function of a GTypePlugin implementation, as in the following example: |[ static void my_enum_complete_type_info (GTypePlugin *plugin, GType g_type, GTypeInfo *info, GTypeValueTable *value_table) { static const GEnumValue values[] = { { MY_ENUM_FOO, "MY_ENUM_FOO", "foo" }, { MY_ENUM_BAR, "MY_ENUM_BAR", "bar" }, { 0, NULL, NULL } }; g_enum_complete_type_info (type, info, values); } ]| |
GObject
Method |
Registers a new static enumeration type with the name name.
|
GObject.TypeModule
Method |
Looks up or registers an enumeration that is implemented with a particular
type plugin. |