Index

Package: Foreach_Alloc_User_Data (generic)

Description

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

Types

User_Data_Type

type User_Data_Type (<>) is private;

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. "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

Subprograms & Entries

Destroy

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

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 "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