Class: Gtk::CClosureExpression

Inherits:
Expression show all
Defined in:
(unknown)

Overview

A variant of GtkClosureExpression using a C closure.

Instance Method Summary collapse

Methods inherited from Expression

#bind, #evaluate, #is_static, #ref, #unref, #value_type, #watch

Constructor Details

#initialize(value_type, marshal, n_params, params, callback_func, user_data, user_destroy) ⇒ Gtk::CClosureExpression

Creates a GtkExpression that calls callback_func when it is evaluated.

This function is a variant of [ctorGtk.ClosureExpression.new] that creates a GClosure by calling g_cclosure_new() with the given callback_func, user_data and user_destroy.

Parameters:

  • value_type (GLib::Type)

    the type of the value that this expression evaluates to

  • marshal (GObject::ClosureMarshal)

    marshaller used for creating a closure

  • n_params (Integer)

    the number of params needed for evaluating closure

  • params (Array<Gtk::Expression>)

    expressions for each parameter

  • callback_func (GObject::Callback)

    callback used for creating a closure

  • user_data (GObject)

    user data used for creating a closure

  • user_destroy (GObject::ClosureNotify)

    destroy notify for user_data