class Gtk::CClosureExpression
- Gtk::CClosureExpression
- Gtk::Expression
- Reference
- Object
Overview
A variant of Gtk::ClosureExpression using a C closure.
Defined in:
lib/gi-crystal/src/auto/gtk-4.0/c_closure_expression.crConstructors
-
.new(value_type : UInt64, marshal : GObject::ClosureMarshal | Nil, params : Enumerable(Gtk::Expression), callback_func : GObject::Callback, user_data : Pointer(Void) | Nil, user_destroy : GObject::ClosureNotify | Nil) : self
Creates a
Gtk::Expressionthat callscallback_funcwhen it is evaluated. -
.new
Initialize a new
CClosureExpression.
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. -
#hash(hasher)
See
Object#hash(hasher)
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
def self.new(value_type : UInt64, marshal : GObject::ClosureMarshal | Nil, params : Enumerable(Gtk::Expression), callback_func : GObject::Callback, user_data : Pointer(Void) | Nil, user_destroy : GObject::ClosureNotify | Nil) : self
#
Creates a Gtk::Expression that calls callback_func when it is evaluated.
This function is a variant of Gtk::ClosureExpression.new that
creates a GClosure by calling g_cclosure_new() with the given
callback_func, user_data and user_destroy.
Class Method Detail
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.