TypeInterface

An opaque structure used as the base of all interface types.

Constructors

this
this(GTypeInterface* gTypeInterface, bool ownedRef)

Sets our main struct and passes it to the parent class.

Members

Functions

getStruct
void* getStruct()

the main Gtk struct as a void*

getTypeInterfaceStruct
GTypeInterface* getTypeInterfaceStruct(bool transferOwnership)

Get the main Gtk struct

peekParent
TypeInterface peekParent()

Returns the corresponding #GTypeInterface structure of the parent type of the instance type to which @g_iface belongs. This is useful when deriving the implementation of an interface from the parent type and then possibly overriding some methods.

Static functions

addPrerequisite
void addPrerequisite(GType interfaceType, GType prerequisiteType)

Adds @prerequisite_type to the list of prerequisites of @interface_type. This means that any type implementing @interface_type must also implement @prerequisite_type. Prerequisites can be thought of as an alternative to interface derivation (which GType doesn't support). An interface can have at most one instantiatable prerequisite type.

getPlugin
TypePluginIF getPlugin(GType instanceType, GType interfaceType)

Returns the #GTypePlugin structure for the dynamic interface @interface_type which has been added to @instance_type, or %NULL if @interface_type has not been added to @instance_type or does not have a #GTypePlugin structure. See g_type_add_interface_dynamic().

peek
TypeInterface peek(TypeClass instanceClass, GType ifaceType)

Returns the #GTypeInterface structure of an interface to which the passed in class conforms.

prerequisites
GType[] prerequisites(GType interfaceType)

Returns the prerequisites of an interfaces type.

Variables

gTypeInterface
GTypeInterface* gTypeInterface;

the main Gtk struct

ownedRef
bool ownedRef;
Undocumented in source.

Meta