Class: Gtk::ClosureExpression

Inherits:
Expression show all
Defined in:
(unknown)

Overview

An expression using a custom GClosure to compute the value from its parameters.

Instance Method Summary collapse

Methods inherited from Expression

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

Constructor Details

#initialize(value_type, closure, n_params, params) ⇒ Gtk::ClosureExpression

Creates a GtkExpression that calls closure when it is evaluated.

closure is called with the this object and the results of evaluating the params expressions.

Parameters:

  • value_type (GLib::Type)

    the type of the value that this expression evaluates to

  • closure (GObject::Closure)

    closure to call when evaluating this expression. If closure is floating, it is adopted

  • n_params (Integer)

    the number of params needed for evaluating closure

  • params (Array<Gtk::Expression>)

    expressions for each parameter