Package ch.bailu.gtk.gtk
Class ConstantExpression
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gtk.Expression
ch.bailu.gtk.gtk.ConstantExpression
- All Implemented Interfaces:
PointerInterface
A constant value in a `GtkExpression`.
-
Nested Class Summary
Nested classes/interfaces inherited from class ch.bailu.gtk.gtk.Expression
Expression.OnDestroyNotify, Expression.OnExpressionNotify
-
Field Summary
-
Constructor Summary
ConstructorDescriptionConstantExpression
(long value_type, Object... _elipse) Creates a `GtkExpression` that evaluates to the
object given by the arguments.ConstantExpression
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
static int
static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
getValue()
Gets the value that a constant expression evaluates to.static ConstantExpression
Creates an expression that always evaluates to the given `value`.Methods inherited from class ch.bailu.gtk.gtk.Expression
bind, bind, evaluate, getValueType, isStatic, ref, unref, watch
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
-
Constructor Details
-
ConstantExpression
-
ConstantExpression
Creates a `GtkExpression` that evaluates to the
object given by the arguments.- Parameters:
value_type
- The type of the object_elipse
- arguments to create the object from
-
-
Method Details
-
getClassHandler
-
newForValueConstantExpression
Creates an expression that always evaluates to the given `value`.- Parameters:
value
- a `GValue`- Returns:
- a new `GtkExpression`
-
getValue
Gets the value that a constant expression evaluates to.- Returns:
- the value
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-