:right-sidebar: True CClosureExpression =================================================================== .. currentmodule:: gi.repository.Gtk .. class:: CClosureExpression(*args, **kwargs) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Expression` A variant of ``GtkClosureExpression`` using a C closure. Constructors ------------ .. rst-class:: interim-class .. class:: CClosureExpression :no-index: .. classmethod:: new(value_type: type, marshal: ~typing.Callable[[~typing.Callable[[...], ~typing.Any], ~typing.Any | None, ~typing.Sequence[~typing.Any], None, None], None] | None, params: ~typing.Sequence[~gi.repository.Gtk.Expression], callback_func: ~typing.Callable[[...], None], *user_data: ~typing.Any) -> ~gi.repository.Gtk.CClosureExpression Creates a ``GtkExpression`` that calls ``callback_func`` when it is evaluated. This function is a variant of :obj:`~gi.repository.Gtk.ClosureExpression.new` that creates a ``GClosure`` by calling :func:`~gi.repository.GObject.CClosure.new` with the given ``callback_func``, ``user_data`` and ``user_destroy``. :param value_type: the type of the value that this expression evaluates to :param marshal: marshaller used for creating a closure :param params: expressions for each parameter :param callback_func: callback used for creating a closure :param user_data: user data used for creating a closure