Package ch.bailu.gtk.gobject
Klasse TypeInterface
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gobject.TypeInterface
- Alle implementierten Schnittstellen:
PointerInterface
An opaque structure used as the base of all interface types.
-
Feldübersicht
Felder -
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungstatic void
addPrerequisite
(long interface_type, long prerequisite_type) Adds @prerequisite_type to the list of prerequisites of @interface_type.static ClassHandler
long
long
static int
static TypePlugin
getPlugin
(long instance_type, long interface_type) 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.static long
instantiatablePrerequisite
(long interface_type) Returns the most specific instantiatable prerequisite of an
interface type.static Pointer
Returns the #GTypeInterface structure of an interface to which the
passed in class conforms.Returns the corresponding #GTypeInterface structure of the parent type
of the instance type to which @g_iface belongs.Von Klasse geerbte Methoden ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacks
Von Klasse geerbte Methoden ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Von Klasse geerbte Methoden java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Von Schnittstelle geerbte Methoden ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Felddetails
-
G_TYPE
- Siehe auch:
-
G_INSTANCE_TYPE
- Siehe auch:
-
-
Konstruktordetails
-
TypeInterface
-
TypeInterface
public TypeInterface()
-
-
Methodendetails
-
getClassHandler
-
getFieldGType
public long getFieldGType() -
getFieldGInstanceType
public long getFieldGInstanceType() -
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.- Gibt zurück:
- the corresponding #GTypeInterface structure of the parent type of the instance type to which @g_iface belongs, or %NULL if the parent type doesn't conform to the interface
-
addPrerequisite
public static void addPrerequisite(long interface_type, long prerequisite_type) 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.- Parameter:
interface_type
- #GType value of an interface typeprerequisite_type
- #GType value of an interface or instantiatable type
-
getPlugin
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().- Parameter:
instance_type
- #GType of an instantiatable typeinterface_type
- #GType of an interface type- Gibt zurück:
- the #GTypePlugin for the dynamic interface @interface_type of @instance_type
-
instantiatablePrerequisite
public static long instantiatablePrerequisite(long interface_type) Returns the most specific instantiatable prerequisite of an
interface type. If the interface type has no instantiatable
prerequisite, %G_TYPE_INVALID is returned.
See g_type_interface_add_prerequisite() for more information
about prerequisites.- Parameter:
interface_type
- an interface type- Gibt zurück:
- the instantiatable prerequisite type or %G_TYPE_INVALID if none
-
peek
Returns the #GTypeInterface structure of an interface to which the
passed in class conforms.- Parameter:
instance_class
- a #GTypeClass structureiface_type
- an interface ID which this class conforms to- Gibt zurück:
- the #GTypeInterface structure of @iface_type if implemented by @instance_class, %NULL otherwise
-
getInstanceSize
public static int getInstanceSize()
-