Basics
Guides
API Reference
Basics
Guides
API Reference
[12:7] extends: object
A variant of GtkClosureExpression using a C closure.
GtkCClosureExpression (value_type = null, marshal = null, n_params = null, params = null, callback_func = null, user_data = null, user_destroy = null)
Creates a
GtkExpressionthat callscallback_funcwhen it is evaluated. This function is a variant of [ctor@Gtk.ClosureExpression.new] that creates aGClosureby calling g_cclosure_new() with the givencallback_func,user_dataanduser_destroy.
value_type is the type of the value that this expression evaluates to.marshal is marshaller used for creating a closure.n_params is the number of params needed for evaluating @closure.params is expressions for each parameter.callback_func is callback used for creating a closure.user_data is user data used for creating a closure.user_destroy is destroy notify for @user_data.toNativeHandle (Source)
Normalizes a constructor argument into a raw pointer carrier. Accepts a raw NativeHandle, a raw NativeBuffer returned from
fn.call(...), another generated wrapper exposinghandle(), or null. Returns null when the argument carries no pointer.
Source is the raw handle, raw buffer, wrapper, or null.A raw pointer carrier or null when no pointer is present.getLib ()
Returns the opened native library for this generated wrapper.
The opened native library.handle ()
Returns the wrapped NativeHandle.
The wrapped NativeHandle.isNull ()
Returns true when the wrapped handle is null.
A bool.describe ()
Returns a small string for debugging generated wrappers.
A string.asExpression ()
Wraps this handle as
GtkExpression.
A GtkExpression object.
Aussom
Write once. Embed everywhere.
Copyright 2026 Austin Lehman. All rights reserved.