Back to Seed Clases

GObject


Classes

Interfaces

Structs

Unions

Enums

Struct GObject.EnumValue

Import line: GObject = imports.gi.GObject;
GIR File: GObject-2.0.gir
C documentation: GEnumValue
Struct : EnumValue
A structure which contains a single enum value, its name, and its
nickname.
Properties
Properties Defined By
Methods / Constructors
Method / Constructor Defined By
 
new GObject.EnumValue ()
Create a new GObject.EnumValue
Create a new GObject.EnumValue
 
Events
None
Used by These Methods / Signals / Properties
Class / Namespace Method / Signal / Properties
GObject
Method
GObject.enum_complete_type_info (Number g_enum_type, TypeInfo info, EnumValue const_values) : none
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
GObject.enum_register_static (String name, EnumValue const_static_values) : Number
Registers a new static enumeration type with the name name.
GObject.TypeModule
Method
register_enum (String name, EnumValue const_static_values) : Number
Looks up or registers an enumeration that is implemented with a particular
type plugin.
Documentation generated by Introspection Doc Generator Loosely Based on JsDoc Toolkit on Sat Apr 16 2011 17:10:43 GMT+0800 (HKT)