About all my projects
Gnome::Gtk4::N-ExpressionWatch

Gnome::Gtk4::N-ExpressionWatch

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.

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! )

Methods

evaluate

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

This is equivalent to calling .evaluate() in class Gnome::Gtk4::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.

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.

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 ( )

unwatch

Stops watching an expression.

See .watch() in class Gnome::Gtk4::Expression for how the watch was established.

method unwatch ( )