Class ExpressionWatch

All Implemented Interfaces:
PointerInterface

public class ExpressionWatch extends Record
An opaque structure representing a watched `GtkExpression`.

The contents of `GtkExpressionWatch` should only be accessed through the
provided API.

https://docs.gtk.org/gtk4/struct.ExpressionWatch.html

  • Constructor Details

  • Method Details

    • getClassHandler

      public static ClassHandler getClassHandler()
    • evaluate

      public boolean evaluate(@Nonnull Value value)
      Evaluates the watched expression and on success stores the result
      in `value`.

      This is equivalent to calling [method@Gtk.Expression.evaluate] with the
      expression and this pointer originally used to create `watch`.
      Parameters:
      value - an empty `GValue` to be set
      Returns:
      `TRUE` if the expression could be evaluated and `value` was set
    • ref

      public ExpressionWatch ref()
      Acquires a reference on the given `GtkExpressionWatch`.
      Returns:
      the `GtkExpressionWatch` with an additional reference
    • unref

      public void unref()
      Releases a reference on the given `GtkExpressionWatch`.

      If the reference was the last, the resources associated to `self` are
      freed.
    • unwatch

      public void unwatch()
      Stops watching an expression.

      See [method@Gtk.Expression.watch] for how the watch
      was established.
    • 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()