: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: ~gobject.GType, marshal: ~typing.Callable[[~gi.repository.GObject.Closure, ~gi.repository.GObject.Value | None, list[~gi.repository.GObject.Value], ~typing.Any, ~typing.Any], None] | None, params: list[~gi.repository.Gtk.Expression], callback_func: ~typing.Callable[[], None], user_data: ~typing.Any = None) -> ~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