class Gtk::ClosureExpression
- Gtk::ClosureExpression
- Gtk::Expression
- Reference
- Object
Overview
An expression using a custom GClosure
to compute the value from
its parameters.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/closure_expression.crConstructors
-
.new(value_type : UInt64, closure : GObject::Closure, params : Enumerable(Gtk::Expression)?) : self
Creates a
Gtk::Expression
that callsclosure
when it is evaluated. -
.new
Initialize a new
ClosureExpression
.
Class Method Summary
-
.g_type : UInt64
Returns the type id (GType) registered in GLib type system.
Instance methods inherited from class Gtk::Expression
bind(target : GObject::Object, property : String, this_ : GObject::Object?) : Gtk::ExpressionWatch
bind,
evaluate(this_ : GObject::Object?, value : _) : Bool
evaluate,
finalize
finalize,
is_static : Bool
is_static,
to_unsafe : Pointer(Void)
to_unsafe,
value_type : UInt64
value_type,
watch(this_ : GObject::Object?, notify : Gtk::ExpressionNotify) : Gtk::ExpressionWatch
watch
Class methods inherited from class Gtk::Expression
g_type : UInt64
g_type
Constructor Detail
def self.new(value_type : UInt64, closure : GObject::Closure, params : Enumerable(Gtk::Expression)?) : self
#
Creates a Gtk::Expression
that calls closure
when it is evaluated.
closure
is called with the this
object and the results of evaluating
the params
expressions.