## Documentation

Table of Contents
Class Inheritance Tree
Widget Screenshots
Package groups

## Index

Package: Item_Factory

- Goto spec source

# Description

    package Gtk.Item_Factory is

In recent versions of gtk+, this package has been deprecated in favor of Gtk.UIManager. However, the subprograms have not been marked as such in the C files themselves, so are still available in GtkAda as well.

Binding from C File version 2.8.17

<testgtk>create_item_factory.adb</testgtk>

# Packages

### Data_Item (generic)

Full description

# Classes

### Gtk_Item_Factory_Record

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Item_Factory_Record is new Object.GObject_Record with private;

#### Ancestors:

Glib.Object.GObject_Record

#### Primitive operations:

Delete_Entries

- To API doc
- To spec

Delete_Entry

- To API doc
- To spec

Delete_Item

- To API doc
- To spec

Get_Item

- To API doc
- To spec

Get_Item_By_Action

- To API doc
- To spec

Get_Widget

- To API doc
- To spec

Get_Widget_By_Action

- To API doc
- To spec

Glib.Object.Deallocate

- To API doc
- To spec

(Inherited)
Glib.Object.Get_Type

- To API doc
- To spec

(Inherited)
Glib.Object.Notify

- To API doc
- To spec

(Inherited)
Glib.Object.Ref

- To API doc
- To spec

(Inherited)
Glib.Object.Ref_Sink

- To API doc
- To spec

(Inherited)
Glib.Object.Unref

- To API doc
- To spec

(Inherited)
Popup

- To API doc
- To spec

# Types

### Gtk_Item_Factory

- Goto declaration in source

    type Gtk_Item_Factory is access all Gtk_Item_Factory_Record'Class;

### Item_Type_Enum

- Goto declaration in source

    type Item_Type_Enum is
         (Title,
          --  Create a title item

          Item,
          --  Create a simple item

          Image_Item,
          --  Create an item holding an image

          Stock_Item,
          --  Create an item holding a stock image

          Check_Item,
          --  Create a check item

          Toggle_Item,
          --  Create a toggle item

          Radio_Item,
          --  Create a radio item

          Separator,
          --  Create a separator

          Tearoff,
          --  Create a tearoff item

          Branch,
          --  Create an item to hold sub items

          Last_Branch
          --  Create a right justified item to hold sub items
         );

### Gtk_Item_Factory_Entry

- Goto declaration in source
- Goto full declaration in source

    type Gtk_Item_Factory_Entry is private;

### Gtk_Item_Factory_Entry_Array

- Goto declaration in source

    type Gtk_Item_Factory_Entry_Array is array (Gint range <>) of
         Gtk_Item_Factory_Entry;

# Subprograms & Entries

### Gtk_New

- Goto spec in source

    procedure Gtk_New (Ifactory: out Gtk_Item_Factory;Container_Type: Gtk_Type;Path: UTF8_String;Accel_Group: Gtk.Accel_Group.Gtk_Accel_Group);

### Initialize

- Goto spec in source

    procedure Initialize (Ifactory: access Gtk_Item_Factory_Record'Class;Container_Type: Gtk_Type;Path: UTF8_String := "";Accel_Group: Gtk.Accel_Group.Gtk_Accel_Group);

Creates or initializes a new item factory. Possible values of Container_Type are: - Gtk.Option_Menu.Get_Type - Gtk.Menu_Bar.Get_Type - Gtk.Menu.Get_Type

### Get_Type

- Goto spec in source
- Goto body in source

    function Get_Type return Gtk_Type;

Return the internal value associated with a Gtk_Item_Factory

### Add_Foreign

- Goto spec in source

    procedure Add_Foreign (Accel_Widget: access Gtk.Widget.Gtk_Widget_Record'Class;Full_Path: UTF8_String;Accel_Group: Gtk.Accel_Group.Gtk_Accel_Group;Keyval: Guint;Modifiers: Gdk.Types.Gdk_Modifier_Type);

### From_Widget

- Goto spec in source

    function From_Widget (Widget: access Gtk.Widget.Gtk_Widget_Record'Class) return Gtk_Item_Factory;

### Path_From_Widget

- Goto spec in source

    function Path_From_Widget (Widget: access Gtk.Widget.Gtk_Widget_Record'Class) return UTF8_String;

### Get_Item

- Goto spec in source

    function Get_Item (Ifactory: access Gtk_Item_Factory_Record;Path: UTF8_String) return Gtk.Widget.Gtk_Widget;

### Get_Widget

- Goto spec in source

    function Get_Widget (Ifactory: access Gtk_Item_Factory_Record;Path: UTF8_String) return Gtk.Widget.Gtk_Widget;

### Get_Widget_By_Action

- Goto spec in source

    function Get_Widget_By_Action (Ifactory: access Gtk_Item_Factory_Record;Action: Guint) return Gtk.Widget.Gtk_Widget;

### Get_Item_By_Action

- Goto spec in source

    function Get_Item_By_Action (Ifactory: access Gtk_Item_Factory_Record;Action: Guint) return Gtk.Widget.Gtk_Widget;

### Delete_Item

- Goto spec in source

    procedure Delete_Item (Ifactory: access Gtk_Item_Factory_Record;Path: UTF8_String);

### Delete_Entry

- Goto spec in source

    procedure Delete_Entry (Ifactory: access Gtk_Item_Factory_Record;Ientry: Gtk_Item_Factory_Entry);

### Delete_Entries

- Goto spec in source

    procedure Delete_Entries (Ifactory: access Gtk_Item_Factory_Record;Entries: Gtk_Item_Factory_Entry_Array);

### Popup

- Goto spec in source

    procedure Popup (Ifactory: access Gtk_Item_Factory_Record;X: Guint;Y: Guint;Mouse_Button: Guint;Time: Guint32);