Package org.gnome.gtk
Class ExpressionWatch
java.lang.Object
io.github.jwharm.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
ConstructorDescriptionExpressionWatch
(MemorySegment address) Create a ExpressionWatch proxy instance for the provided memory address. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Evaluates the watched expression and on success stores the result invalue
.static Type
getType()
Get the GType of the ExpressionWatch classref()
Acquires a reference on the givenGtkExpressionWatch
.void
unref()
Releases a reference on the givenGtkExpressionWatch
.void
unwatch()
Stops watching an expression.Methods inherited from class io.github.jwharm.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
-
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 emptyGValue
to be set- Returns:
TRUE
if the expression could be evaluated andvalue
was set
-
ref
Acquires a reference on the givenGtkExpressionWatch
.- Returns:
- the
GtkExpressionWatch
with an additional reference
-
unref
public void unref()Releases a reference on the givenGtkExpressionWatch
.If the reference was the last, the resources associated to
self
are 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.
-