Package org.gnome.gtk
Class ExpressionWatch
java.lang.Object
org.javagi.base.ProxyInstance
org.gnome.gtk.ExpressionWatch
- All Implemented Interfaces:
Proxy
An opaque structure representing a watched
GtkExpression.
The contents of GtkExpressionWatch should only be accessed through the
provided API.
-
Constructor Summary
ConstructorsConstructorDescriptionExpressionWatch(MemorySegment address) Create a ExpressionWatch proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionbooleanEvaluates the watched expression and on success stores the result invalue.static @Nullable TypegetType()Get the GType of the ExpressionWatch classref()Acquires a reference on the givenGtkExpressionWatch.voidunref()Releases a reference on the givenGtkExpressionWatch.voidunwatch()Stops watching an expression.Methods inherited from class org.javagi.base.ProxyInstance
equals, handle, hashCode
-
Constructor Details
-
ExpressionWatch
Create a ExpressionWatch proxy instance for the provided memory address.- Parameters:
address- the memory address of the native object
-
-
Method Details
-
getType
Get the GType of the ExpressionWatch class- Returns:
- the GType
-
evaluate
Evaluates the watched expression and on success stores the result invalue.This is equivalent to calling
Expression.evaluate(org.gnome.gobject.GObject, org.gnome.gobject.Value)with the expression and this pointer originally used to createwatch.- Parameters:
value- an emptyGValueto be set- Returns:
TRUEif the expression could be evaluated andvaluewas set
-
ref
Acquires a reference on the givenGtkExpressionWatch.- Returns:
- the
GtkExpressionWatchwith an additional reference
-
unref
public void unref()Releases a reference on the givenGtkExpressionWatch.If the reference was the last, the resources associated to
selfare freed. -
unwatch
public void unwatch()Stops watching an expression.See
Expression.watch(org.gnome.gobject.GObject, org.gnome.gtk.ExpressionNotify)for how the watch was established.
-