Index

Package: Foreach_User_Data (generic)

Description

generic
      type User_Data_Type (<>) is private;
      with procedure Destroy (Data : in out User_Data_Type) is null;
   package Foreach_User_Data is

Types

User_Data_Type

type User_Data_Type (<>) is private;

Gtk_Callback

type Gtk_Callback is access procedure
        (Widget : not null access Gtk.Widget.Gtk_Widget_Record'Class;
         Data   : User_Data_Type);
The type of the callback functions used for e.g. iterating over the children of a container, see Gtk.Container.Foreach. "widget": the widget to operate on "data": user-supplied data

Subprograms & Entries

Destroy

procedure Destroy 
(Data: in out User_Data_Type) is null;

Foreach

procedure Foreach 
(Container: not null access Gtk.Container.Gtk_Container_Record'Class;
Callback: Gtk_Callback;
Callback_Data: User_Data_Type);
Invokes Callback on each non-internal child of Container. See Gtk.Container.Forall for details on what constitutes an "internal" child. Most applications should use Gtk.Container.Foreach, rather than Gtk.Container.Forall. "callback": a callback "callback_data": callback user data