class Gtk::CClosureExpression

Overview

A variant of GtkClosureExpression using a C closure.

Defined in:

auto/gtk-4.0/c_closure_expression.cr

Constructors

Class Method Summary

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, ref : Gtk::Expression ref, ref_count ref_count, to_unsafe : Pointer(Void) to_unsafe, unref : Nil unref, value_type : UInt64 value_type, watch(this_ : GObject::Object?, notify : Gtk::ExpressionNotify) : Gtk::ExpressionWatch watch

Constructor methods inherited from class Gtk::Expression

cast(obj : GObject::Object) : self cast, cast?(obj : GObject::Object) : self? cast?, new new

Class methods inherited from class Gtk::Expression

g_type : UInt64 g_type

Constructor Detail

def self.new(value_type : UInt64, marshal : GObject::ClosureMarshal?, params : Enumerable(Gtk::Expression), callback_func : GObject::Callback, user_data : Pointer(Void)?, user_destroy : GObject::ClosureNotify?) #

Creates a GtkExpression 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.


def self.new #

Initialize a new CClosureExpression.


Class Method Detail

def self.g_type : UInt64 #

Returns the type id (GType) registered in GLib type system.