## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Data_Item (generic)

- Goto spec source

# Description

    generic
          type Data_Type (<>) is limited private;
       package Data_Item is

# Types

### Data_Type

- Goto declaration in source

    type Data_Type (<>) is limited private;

### Data_Type_Access

- Goto declaration in source

    type Data_Type_Access is access all Data_Type;

### Gtk_Print_Func

- Goto declaration in source

    type Gtk_Print_Func is access procedure
            (Func_Data : Data_Type_Access;
             Str       : String);

### Gtk_Translate_Func

- Goto declaration in source

    type Gtk_Translate_Func is access function
            (Path      : UTF8_String;  --  const gchar* ???
             Func_Data : Data_Type_Access) return Gtkada.Types.Chars_Ptr;

### Limited_Widget

- Goto declaration in source

    type Limited_Widget is limited private;

### Gtk_Item_Factory_Callback

- Goto declaration in source

    type Gtk_Item_Factory_Callback is access procedure
            (Callback_Data   : Data_Type_Access;
             Callback_Action : Guint;
             Widget          : Limited_Widget);

# Constants & Global variables

### Null_Widget

- Goto declaration in source

(Limited_Widget)

    Null_Widget : constant Limited_Widget;

# Subprograms & Entries

### To_Widget

- Goto spec in source

    function To_Widget (Widget: Limited_Widget) return Gtk.Widget.Gtk_Widget;

### Gtk_New

- Goto spec in source

    function Gtk_New (Path: UTF8_String;Accelerator: String := "";Callback: Gtk_Item_Factory_Callback := null;Item_Type: Item_Type_Enum;Callback_Action: Guint := 0) return Gtk_Item_Factory_Entry;

Create a Gtk_Item_Factory_Entry. It is up to you to call Free at an appropriate point to avoid memory leaks.

### Gtk_New

- Goto spec in source

    function Gtk_New (Path: UTF8_String;Accelerator: String := "";Callback: Gtk_Item_Factory_Callback := null;Item_Type: String := "";Callback_Action: Guint := 0) return Gtk_Item_Factory_Entry;

Create a Gtk_Item_Factory_Entry. It is up to you to call Free at an appropriate point to avoid memory leaks.

### Gtk_New

- Goto spec in source

    function Gtk_New (Path: UTF8_String;Accelerator: String := "";Stock_Id: String;Callback: Gtk_Item_Factory_Callback := null;Callback_Action: Guint := 0) return Gtk_Item_Factory_Entry;

Create a Gtk_Item_Factory_Entry from a stock item. It is up to you to call Free at an appropriate point to avoid memory leaks.

### Gtk_New

- Goto spec in source

    function Gtk_New (Path: UTF8_String;Accelerator: String := "";Callback: Gtk_Item_Factory_Callback := null;Pixbuf: access Guchar_Array;Callback_Action: Guint := 0) return Gtk_Item_Factory_Entry;

Create a Gtk_Item_Factory_Entry from an inline pixbuf image. It is up to you to call Free at an appropriate point to avoid memory leaks.

### Free

- Goto spec in source

    procedure Free (Ientry: in out Gtk_Item_Factory_Entry);

Free all the dynamic data associated with an item factory entry.

### Free

- Goto spec in source

    procedure Free (Ientries: in out Gtk_Item_Factory_Entry_Array);

Free all the dynamic data associated with each item factory entry.

### Create_Item

- Goto spec in source

    procedure Create_Item (Ifactory: access Gtk_Item_Factory_Record'Class;Ientry: Gtk_Item_Factory_Entry;Callback_Data: Data_Type_Access;Callback_Type: Guint);

Callback_Type = 0 -> Gtk_Item_Factory_Callback Callback_Type = 1 -> Gtk_Item_Factory_Callback1

### Create_Items

- Goto spec in source

    procedure Create_Items (Ifactory: access Gtk_Item_Factory_Record'Class;Entries: Gtk_Item_Factory_Entry_Array;Callback_Data: Data_Type_Access);

### Popup_Data

- Goto spec in source

    function Popup_Data (Ifactory: access Gtk_Item_Factory_Record'Class) return Data_Type_Access;

### Popup_Data_From_Widget

- Goto spec in source

    function Popup_Data_From_Widget (Widget: access Gtk.Widget.Gtk_Widget_Record'Class) return Data_Type_Access;

### Popup_With_Data

- Goto spec in source

    procedure Popup_With_Data (Ifactory: access Gtk_Item_Factory_Record'Class;Popup_Data: Data_Type_Access;Destroy: System.Address;--  Gtk_Destroy_Notify ???          X: Guint;Y: Guint;Mouse_Button: Guint;Time: Guint32);

### Set_Translate_Func

- Goto spec in source

    procedure Set_Translate_Func (Ifactory: access Gtk_Item_Factory_Record'Class;Func: Gtk_Translate_Func;Data: Data_Type_Access;Notify: System.Address);