Gtk.Cell_Area.Foreach_Alloc_User_Data

Entities

Generic formal parameters

Access Types

Subprograms

Description

Destroy

procedure Destroy (Data : in out User_Data_Type)
Parameters
Data

Foreach_Alloc

procedure Foreach_Alloc
   (Self            : not null access Gtk.Cell_Area.Gtk_Cell_Area_Record'Class;
    Context         : not null access Gtk.Cell_Area_Context.Gtk_Cell_Area_Context_Record'Class;
    Widget          : not null access Gtk.Widget.Gtk_Widget_Record'Class;
    Cell_Area       : Gdk.Rectangle.Gdk_Rectangle;
    Background_Area : Gdk.Rectangle.Gdk_Rectangle;
    Callback        : Gtk_Cell_Alloc_Callback;
    Callback_Data   : User_Data_Type)

Calls Callback for every Gtk.Cell_Renderer.Gtk_Cell_Renderer in Area with the allocated rectangle inside Cell_Area. Since: gtk+ 3.0

Parameters
Self
Context

the Gtk.Cell_Area_Context.Gtk_Cell_Area_Context for this row of data.

Widget

the Gtk.Widget.Gtk_Widget that Area is rendering to

Cell_Area

the Widget relative coordinates and size for Area

Background_Area

the Widget relative coordinates of the background area

Callback

the Gtk_Cell_Alloc_Callback to call

Callback_Data

user provided data pointer

Gtk_Cell_Alloc_Callback

type Gtk_Cell_Alloc_Callback is access function
  (Renderer        : not null access Gtk.Cell_Renderer.Gtk_Cell_Renderer_Record'Class;
   Cell_Area       : Gdk.Rectangle.Gdk_Rectangle;
   Cell_Background : Gdk.Rectangle.Gdk_Rectangle;
   Data            : User_Data_Type) return Boolean;

The type of the callback functions used for iterating over the cell renderers and their allocated areas inside a Gtk.Cell_Area.Gtk_Cell_Area, see Gtk.Cell_Area.Foreach_Alloc.

Parameters
Renderer

the cell renderer to operate on

Cell_Area

the area allocated to Renderer inside the rectangle provided to Gtk.Cell_Area.Foreach_Alloc.

Cell_Background

the background area for Renderer inside the background area provided to Gtk.Cell_Area.Foreach_Alloc.

Data

user-supplied data

Return Value

True to stop iterating over cells.

User_Data_Type

type User_Data_Type (<>) is private;