Package ch.bailu.gtk.gtk
Class ObjectExpression
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gtk.Expression
ch.bailu.gtk.gtk.ObjectExpression
- All Implemented Interfaces:
PointerInterface
A `GObject` 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
ConstructorDescriptionObjectExpression
(Object object) Creates an expression evaluating to the given `object` with a weak reference.ObjectExpression
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
static int
Gets the object that the expression evaluates to.static long
static TypeSystem.TypeSize
static long
static TypeSystem.TypeSize
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
-
ObjectExpression
-
ObjectExpression
Creates an expression evaluating to the given `object` with a weak reference.
Once the `object` is disposed, it will fail to evaluate.
This expression is meant to break reference cycles.
If you want to keep a reference to `object`, use [ctor@Gtk.ConstantExpression.new].- Parameters:
object
- object to watch
-
-
Method Details
-
getClassHandler
-
getObject
Gets the object that the expression evaluates to.- Returns:
- the object, or `NULL`
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-