Gtk.ClosureExpression

g Gtk.ClosureExpression Gtk.ClosureExpression Gtk.Expression Gtk.Expression Gtk.Expression->Gtk.ClosureExpression

Subclasses:

None

Methods

Inherited:

Gtk.Expression (7)

class

new (value_type, closure, params)

Virtual Methods

None

Fields

None

Class Details

class Gtk.ClosureExpression
Bases:

Gtk.Expression

Abstract:

No

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

classmethod new(value_type, closure, params)[source]
Parameters:
  • value_type (GObject.GType) – 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

  • params ([Gtk.Expression] or None) – expressions for each parameter

Returns:

a new GtkExpression

Return type:

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.