Compilation Units
Tagged Types
A variant of GtkClosureExpression using a C closure.
type C_Marshaller is access procedure
(Closure : System.Address;
Return_Value : Glib.Values.GValue
N_Params : Glib.Guint
Params : Glib.Values.C_GValues;
Invocation_Hint : System.Address;
Marsh_Data : System.Address);
Will contain returned value
Number of entries in Params
function Create
(Object : not null access System.Address)
return Gtk_Cclosure_Expression_Record
type Gcallback is access procedure;
type GClosureNotify is access procedure
(Data : System.Address;
Closure : System.Address);
function Get_Type return Glib.GType
type Gtk_Cclosure_Expression is access all Gtk_Cclosure_Expression_Record'Class;
type Gtk_Cclosure_Expression_Record is new Gtk_Expression_Record with null record;
procedure Gtk_New
(Self : out Gtk_Cclosure_Expression;
Value_Type : GType;
Marshal : C_Marshaller;
Params : Gtk.Expression.Gtk_Expression_Array;
Callback_Func : Gcallback;
User_Data : System.Address;
User_Destroy : GClosureNotify)
Creates a GtkExpression that calls callback_func when it is evaluated. This function is a variant of [ctorGtk.ClosureExpression.new] that creates a GClosure by calling g_cclosure_new with the given callback_func, user_data and user_destroy. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the type of the value that this expression evaluates to
marshaller used for creating a closure
expressions for each parameter
callback used for creating a closure
user data used for creating a closure
destroy notify for User_Data
procedure Initialize
(Self : not null access Gtk_Cclosure_Expression_Record'Class;
Value_Type : GType;
Marshal : C_Marshaller;
Params : Gtk.Expression.Gtk_Expression_Array;
Callback_Func : Gcallback;
User_Data : System.Address;
User_Destroy : GClosureNotify)
Creates a GtkExpression that calls callback_func when it is evaluated. This function is a variant of [ctorGtk.ClosureExpression.new] that creates a GClosure by calling g_cclosure_new with the given callback_func, user_data and user_destroy. Initialize does nothing if the object was already created with another call to Initialize* or G_New.
the type of the value that this expression evaluates to
marshaller used for creating a closure
expressions for each parameter
callback used for creating a closure
user data used for creating a closure
destroy notify for User_Data