Class ObjectExpression

All Implemented Interfaces:
PointerInterface

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

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

  • Constructor Details

    • ObjectExpression

      public ObjectExpression(PointerContainer pointer)
    • ObjectExpression

      public ObjectExpression(@Nonnull Object object)
      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

      public static ClassHandler getClassHandler()
    • getObject

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

      public static TypeSystem.TypeSize getTypeSize()
    • getParentTypeSize

      public static TypeSystem.TypeSize getParentTypeSize()
    • getInstanceSize

      public static int getInstanceSize()