Gnome::Gtk4::N-ExpressionWatch
#------------------------------------------------------------------------------- #--[Class Description]---------------------------------------------------------- #-------------------------------------------------------------------------------
=begin rakudoc
Description
An opaque structure representing a watched Gnome::Gtk4::Expression.
The contents of Gnome::Gtk4::N-ExpressionWatch should only be accessed through the provided API.
=end rakudoc
#------------------------------------------------------------------------------- #--[Class Initialization]------------------------------------------------------- #-------------------------------------------------------------------------------
=begin rakudoc
Class initialization
new
:native-object
Create an object using a native object from an object of the same type found elsewhere. See also Gnome::N::TopLevelSupportClass.
multi method new ( N-Object() :$native-object! )
=end rakudoc
#------------------------------------------------------------------------------- #--[Methods]-------------------------------------------------------------------- #-------------------------------------------------------------------------------
=begin rakudoc
Methods =end rakudoc
#------------------------------------------------------------------------------- =begin rakudoc
evaluate
Evaluates the watched expression and on success stores the result in value.
This is equivalent to calling .evaluate() in class Expression with the expression and this pointer originally used to create watch.
method evaluate ( N-Object $value --> Bool )
$value; an empty Gnome::GObject::N-Value to be set
Return value; True if the expression could be evaluated and value was set.
=end rakudoc
#------------------------------------------------------------------------------- =begin rakudoc
ref
Acquires a reference on the given Gnome::Gtk4::N-ExpressionWatch.
method ref (--> N-Object )
Return value; the Gnome::Gtk4::N-ExpressionWatch with an additional reference.
=end rakudoc
#------------------------------------------------------------------------------- =begin rakudoc
unref
Releases a reference on the given Gnome::Gtk4::N-ExpressionWatch.
If the reference was the last, the resources associated to self are freed.
method unref ( )
=end rakudoc
#------------------------------------------------------------------------------- =begin rakudoc
unwatch
Stops watching an expression.
See .watch() in class Expression for how the watch was established.
method unwatch ( )
=end rakudoc