Gtk.Container.Foreach_User_Data

Entities

Generic formal parameters

Access Types

Subprograms

Description

Destroy

procedure Destroy (Data : in out User_Data_Type)
Parameters
Data

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. For all practical purposes, this function should iterate over precisely those child widgets that were added to the container by the application with explicit add calls. It is permissible to remove the child from the Callback handler. Most applications should use Gtk.Container.Foreach, rather than Gtk.Container.Forall.

Parameters
Container
Callback

a callback

Callback_Data

callback user data

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.

Parameters
Widget

the widget to operate on

Data

user-supplied data

User_Data_Type

type User_Data_Type (<>) is private;