Class PropertyExpression

All Implemented Interfaces:
PointerInterface

public class PropertyExpression extends Expression
A `GObject` property value in a `GtkExpression`.

https://docs.gtk.org/gtk4/class.PropertyExpression.html

  • Constructor Details

    • PropertyExpression

      public PropertyExpression(PointerContainer pointer)
    • 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 type
      expression - Expression to evaluate to get the object to query or `NULL` to query the `this` object
      property_name - name of the property
    • PropertyExpression

      public PropertyExpression(long this_type, @Nullable Expression expression, String 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 type
      expression - Expression to evaluate to get the object to query or `NULL` to query the `this` object
      property_name - name of the property
  • Method Details

    • getClassHandler

      public static ClassHandler 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` object
      pspec - the `GParamSpec` for the property to query
      Returns:
      a new `GtkExpression`
    • getExpression

      public Expression getExpression()
      Gets the expression specifying the object of
      a property expression.
      Returns:
      the object expression
    • getPspec

      public ParamSpec 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

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()