1.160 <GtkPropertyExpression>

Class: <GtkPropertyExpression>

It derives from <GtkExpression>.

A <GObject> property value in a <GtkExpression>.

Procedures

Method: property-expression:get-expression self ⇒ %return
Method: get-expression self ⇒ %return

Gets the expression specifying the object of a property expression.

self

Passed: a <GtkPropertyExpression>.

a property <GtkExpression>

%return

Returned: a <GtkExpression>, or #f.

the object expression

Method: property-expression:get-pspec self ⇒ %return
Method: get-pspec self ⇒ %return

Gets the <GParam> specifying the property of a property expression.

self

Passed: a <GtkPropertyExpression>.

a property <GtkExpression>

%return

Returned: a <GParam>.

the <GParam> for the property

Procedure: property-expression:new this-type expression property-name ⇒ %return

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 NULL.

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.

this-type

Passed: a class, or a GType number.

The type to expect for the this type

expression

Passed: a <GtkExpression>, or #f.

Expression to evaluate to get the object to query or NULL to query the this object

property-name

Passed: a string.

name of the property

%return

Returned: a <GtkPropertyExpression>.

a new <GtkExpression>

Procedure: property-expression:new-for-pspec expression pspec ⇒ %return

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 NULL.

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

expression

Passed: a <GtkExpression>, or #f.

Expression to evaluate to get the object to query or NULL to query the this object

pspec

Passed: a <GParam>.

the <GParam> for the property to query

%return

Returned: a <GtkPropertyExpression>.

a new <GtkExpression>