Types

Description The GTK+ type system is extensible. Because of that, types have to be managed at runtime.

Constructors

this
this(GtkType* gtkType)

Sets our main struct and passes it to the parent class

Members

Functions

getStruct
void* getStruct()

the main Gtk struct as a void*

getTypesStruct
GtkType* getTypesStruct()
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

clss
void* clss(GtkType type)

Warning gtk_type_class has been deprecated since version 2.14 and should not be used in newly-written code. Use g_type_class_peek() or g_type_class_ref() instead. Returns a pointer pointing to the class of type or NULL if there was any trouble identifying type. Initializes the class if necessary. Returns a pointer pointing to the class of type or NULL if there was any trouble identifying type. Initializes the class if necessary.

enumFindValue
GtkEnumValue* enumFindValue(GtkType enumType, string valueName)

Warning gtk_type_enum_find_value is deprecated and should not be used in newly-written code. Returns a pointer to one of enum_type's GtkEnumValues's whose name (or nickname) matches value_name.

enumGetValues
GtkEnumValue* enumGetValues(GtkType enumType)

Warning gtk_type_enum_get_values is deprecated and should not be used in newly-written code. If enum_type has values, then return a pointer to all of them.

flagsFindValue
GtkFlagValue* flagsFindValue(GtkType flagsType, string valueName)

Warning gtk_type_flags_find_value is deprecated and should not be used in newly-written code. Returns a pointer to one of flag_type's GtkFlagValue's whose name (or nickname) matches value_name.

flagsGetValues
GtkFlagValue* flagsGetValues(GtkType flagsType)

Warning gtk_type_flags_get_values is deprecated and should not be used in newly-written code. If flags_type has values, then return a pointer to all of them.

init
void init(GTypeDebugFlags debugFlags)

Warning gtk_type_init is deprecated and should not be used in newly-written code. Initializes the data structures associated with GTK+ types.

newTypes
void* newTypes(GtkType type)

Warning gtk_type_new is deprecated and should not be used in newly-written code. Creates a new object of a given type, and return a pointer to it. Returns NULL if you give it an invalid type. It allocates the object out of the type's memory chunk if there is a memory chunk. The object has all the proper initializers called.

unique
GtkType unique(GtkType parentType, GtkTypeInfo* gtkinfo)

Warning gtk_type_unique is deprecated and should not be used in newly-written code. Creates a new, unique type.

Variables

gtkType
GtkType* gtkType;

the main Gtk struct

Meta