Package ch.bailu.gtk.gtk
Class PropertyExpression
java.lang.Object
ch.bailu.gtk.type.Type
ch.bailu.gtk.type.Pointer
ch.bailu.gtk.gtk.Expression
ch.bailu.gtk.gtk.PropertyExpression
- All Implemented Interfaces:
PointerInterface
A `GObject` property 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
ConstructorDescriptionPropertyExpression
(long this_type, Expression expression, Str property_name) Creates an expression that looks up a property.PropertyExpression
(long this_type, Expression expression, String property_name) Creates an expression that looks up a property.PropertyExpression
(PointerContainer pointer) -
Method Summary
Modifier and TypeMethodDescriptionstatic ClassHandler
Gets the expression specifying the object of
a property expression.static int
static long
static TypeSystem.TypeSize
getPspec()
Gets the `GParamSpec` specifying the property of
a property expression.static long
static TypeSystem.TypeSize
static PropertyExpression
newForPspecPropertyExpression
(Expression expression, ParamSpec pspec) Creates an expression that looks up a property.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
-
PropertyExpression
-
PropertyExpression
public PropertyExpression(long this_type, @Nullable Expression expression, @Nonnull Str property_name) Creates an expression that looks up a property.
The object to use is found by evaluating the `expression`,
or using the `this` argument when `expression` is `NULL`.
If the resulting object conforms to `this_type`, its property named
`property_name` will be queried. Otherwise, this expression's
evaluation will fail.
The given `this_type` must have a property with `property_name`.- Parameters:
this_type
- The type to expect for the this typeexpression
- Expression to evaluate to get the object to query or `NULL` to query the `this` objectproperty_name
- name of the property
-
PropertyExpression
Creates an expression that looks up a property.
The object to use is found by evaluating the `expression`,
or using the `this` argument when `expression` is `NULL`.
If the resulting object conforms to `this_type`, its property named
`property_name` will be queried. Otherwise, this expression's
evaluation will fail.
The given `this_type` must have a property with `property_name`.- Parameters:
this_type
- The type to expect for the this typeexpression
- Expression to evaluate to get the object to query or `NULL` to query the `this` objectproperty_name
- name of the property
-
-
Method Details
-
getClassHandler
-
newForPspecPropertyExpression
public static PropertyExpression newForPspecPropertyExpression(@Nullable Expression expression, @Nonnull ParamSpec pspec) Creates an expression that looks up a property.
The object to use is found by evaluating the `expression`,
or using the `this` argument when `expression` is `NULL`.
If the resulting object conforms to `this_type`, its
property specified by `pspec` will be queried.
Otherwise, this expression's evaluation will fail.- Parameters:
expression
- Expression to evaluate to get the object to query or `NULL` to query the `this` objectpspec
- the `GParamSpec` for the property to query- Returns:
- a new `GtkExpression`
-
getExpression
Gets the expression specifying the object of
a property expression.- Returns:
- the object expression
-
getPspec
Gets the `GParamSpec` specifying the property of
a property expression.- Returns:
- the `GParamSpec` for the property
-
getTypeID
public static long getTypeID() -
getParentTypeID
public static long getParentTypeID() -
getTypeSize
-
getParentTypeSize
-
getInstanceSize
public static int getInstanceSize()
-