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
Modifier and TypeFieldDescriptionstatic final String
the parent class
Private field: direct-typestatic final String
the largest possible value.static final String
the smallest possible value.static final String
the number of possible values.static final String
an array of #GEnumValue structs describing the
individual values. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
int
the largest possible value.int
the smallest possible value.int
the number of possible values.an array of #GEnumValue structs describing the
individual values.void
setFieldMaximum
(int maximum) the largest possible value.void
setFieldMinimum
(int minimum) the smallest possible value.void
setFieldNValues
(int n_values) the number of possible values.void
setFieldValues
(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, unregisterCallbacks
Methods inherited from class ch.bailu.gtk.type.Type
asCPointer, asCPointer, asCPointerNotNull, asJnaPointer, asJnaPointer, asPointer, asPointer, cast, cast, throwIfNull
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods 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.
-