About all my projects
Gnome::Gtk4::PropertyExpression

Gnome::Gtk4::PropertyExpression

Description

A Gnome::GObject::Object property value in a Gnome::Gtk4::Expression.

Uml Diagram

No caption

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

new-propertyexpression

Creates an expression that looks up a property.

The object to use is found by evaluating the expression, or using the this argument when expression is undefined.

If the resulting object conforms to this_type, its property named property_name will be queried. Otherwise, this expression's evaluation will fail.

The given this_type must have a property with property_name.

method new-propertyexpression ( GType $this-type, N-Object() $expression, Str $property-name --> Gnome::Gtk4::PropertyExpression )
  • $this-type; The type to expect for the this type.

  • $expression; (transfer ownership: full) Expression to evaluate to get the object to query or undefined to query the this object.

  • $property-name; name of the property.

new-for-pspec

Creates an expression that looks up a property.

The object to use is found by evaluating the expression, or using the this argument when expression is undefined.

If the resulting object conforms to this_type, its property specified by pspec will be queried. Otherwise, this expression's evaluation will fail.

method new-for-pspec ( N-Object() $expression, N-Object() $pspec --> Gnome::Gtk4::PropertyExpression )
  • $expression; (transfer ownership: full) Expression to evaluate to get the object to query or undefined to query the this object.

  • $pspec; the Gnome::GObject::ParamSpec for the property to query.

Methods

get-expression

Gets the expression specifying the object of a property expression.

method get-expression (--> N-Object )

Return value; the object expression.

get-pspec

Gets the Gnome::GObject::ParamSpec specifying the property of a property expression.

method get-pspec (--> N-Object )

Return value; the Gnome::GObject::ParamSpec for the property.