Package ch.bailu.gtk.gobject
Class EnumClass
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.type.Record
ch.bailu.gtk.gobject.EnumClass
- All Implemented Interfaces:
PointerInterface
The class of an enumeration type holds information about its
possible values.
possible values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringthe parent class
Private field: direct-typestatic final Stringthe largest possible value.static final Stringthe smallest possible value.static final Stringthe number of possible values.static final Stringan array of #GEnumValue structs describing the
individual values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandlerintthe largest possible value.intthe smallest possible value.intthe number of possible values.an array of #GEnumValue structs describing the
individual values.voidsetFieldMaximum(int maximum) the largest possible value.voidsetFieldMinimum(int minimum) the smallest possible value.voidsetFieldNValues(int n_values) the number of possible values.voidsetFieldValues(EnumValue values) an array of #GEnumValue structs describing the
individual values.Methods inherited from class ch.bailu.gtk.type.Pointer
asCPointer, cast, connectSignal, disconnectSignals, disconnectSignals, equals, hashCode, throwIfNull, throwNullPointerException, toString, unregisterCallbacks, unregisterCallbacksMethods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNullMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface ch.bailu.gtk.type.PointerInterface
asCPointerNotNull, asJnaPointer, asPointer, isNotNull, isNull
-
Field Details
-
G_TYPE_CLASS
the parent class
Private field: direct-type- See Also:
-
MINIMUM
the smallest possible value.- See Also:
-
MAXIMUM
the largest possible value.- See Also:
-
N_VALUES
the number of possible values.- See Also:
-
VALUES
an array of #GEnumValue structs describing the
individual values.- See Also:
-
-
Constructor Details
-
EnumClass
-
EnumClass
public EnumClass()
-
-
Method Details
-
getClassHandler
-
setFieldMinimum
public void setFieldMinimum(int minimum) the smallest possible value. -
getFieldMinimum
public int getFieldMinimum()the smallest possible value. -
setFieldMaximum
public void setFieldMaximum(int maximum) the largest possible value. -
getFieldMaximum
public int getFieldMaximum()the largest possible value. -
setFieldNValues
public void setFieldNValues(int n_values) the number of possible values. -
getFieldNValues
public int getFieldNValues()the number of possible values. -
setFieldValues
an array of #GEnumValue structs describing the
individual values. -
getFieldValues
an array of #GEnumValue structs describing the
individual values.
-