Index

Package: Forall_User_Data (generic)

Description

generic
      type User_Data_Type (<>) is private;
      with procedure Destroy (Data : in out User_Data_Type) is null;
   package Forall_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;

Forall

procedure Forall 
(Container: not null access Gtk.Container.Gtk_Container_Record'Class;
Callback: Gtk_Callback;
Callback_Data: User_Data_Type);
Invokes Callback on each child of Container, including children that are considered "internal" (implementation details of the container). "Internal" children generally weren't added by the user of the container, but were added by the container implementation itself. Most applications should use Gtk.Container.Foreach, rather than Gtk.Container.Forall. "callback": a callback "callback_data": callback user data