Class ExpressionWatch

java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.ExpressionWatch
All Implemented Interfaces:
Proxy

@Generated("org.javagi.JavaGI") public class ExpressionWatch extends ProxyInstance

An opaque structure representing a watched GtkExpression.

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

  • Constructor Details

    • ExpressionWatch

      public ExpressionWatch(MemorySegment address)
      Create a ExpressionWatch proxy instance for the provided memory address.
      Parameters:
      address - the memory address of the native object
  • Method Details

    • getType

      public static @Nullable Type getType()
      Get the GType of the ExpressionWatch class.
      Returns:
      the GType
    • getMemoryLayout

      public static MemoryLayout getMemoryLayout()
      The memory layout of the native struct.
      Returns:
      the memory layout
    • evaluate

      public boolean evaluate(Value value)

      Evaluates the watched expression and on success stores the result in value.

      This is equivalent to calling Expression.evaluate(GObject, Value) 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 Expression.watch(GObject, ExpressionNotify) for how the watch was established.