class Gtk::PropertyExpression
- Gtk::PropertyExpression
- Gtk::Expression
- Reference
- Object
Overview
A GObject property value in a Gtk::Expression.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/property_expression.crConstructors
-
.new(this_type : UInt64, expression : Gtk::Expression | Nil, property_name : String) : self
Creates an expression that looks up a property.
-
.new
Initialize a new
PropertyExpression. -
.new_for_pspec(expression : Gtk::Expression | Nil, pspec : GObject::ParamSpec) : self
Creates an expression that looks up a property.
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#expression : Gtk::Expression | Nil
Gets the expression specifying the object of a property expression.
-
#hash(hasher)
See
Object#hash(hasher) -
#pspec : GObject::ParamSpec
Gets the
GParamSpecspecifying the property of a property expression.
Instance methods inherited from class Gtk::Expression
==(other : self)
==,
bind(target : GObject::Object, property : String, this_ : GObject::Object | Nil) : Gtk::ExpressionWatch
bind,
evaluate(this_ : GObject::Object | Nil, value : _) : Bool
evaluate,
finalize
finalize,
hash(hasher)
hash,
is_static : Bool
is_static,
to_unsafe : Pointer(Void)
to_unsafe,
value_type : UInt64
value_type,
watch(this_ : GObject::Object | Nil, notify : Gtk::ExpressionNotify) : Gtk::ExpressionWatch
watch
Class methods inherited from class Gtk::Expression
g_type : UInt64
g_type
Constructor Detail
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.
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.
Class Method Detail
Instance Method Detail
Returns true if this reference is the same as other. Invokes same?.
Gets the expression specifying the object of a property expression.
Gets the GParamSpec specifying the property of
a property expression.