Index

Package: Item_Factory

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)

Classes

Gtk_Item_Factory_Record

type Gtk_Item_Factory_Record is new Object.GObject_Record with private;

Ancestors:

Primitive operations:

Delete_Entries
Delete_Entry
Get_Item_By_Action
Get_Widget_By_Action
Glib.Object.Deallocate (Inherited)
Glib.Object.Get_Type (Inherited)
Glib.Object.Notify (Inherited)
Glib.Object.Ref (Inherited)
Glib.Object.Ref_Sink (Inherited)
Glib.Object.Unref (Inherited)

Types

Gtk_Item_Factory

type Gtk_Item_Factory is access all Gtk_Item_Factory_Record'Class;

Item_Type_Enum

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

type Gtk_Item_Factory_Entry is private;

Gtk_Item_Factory_Entry_Array

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

Subprograms & Entries

Gtk_New

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

Initialize

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

function Get_Type return Gtk_Type;
Return the internal value associated with a Gtk_Item_Factory

Add_Foreign

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

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

Path_From_Widget

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

Get_Item

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

Get_Widget

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

Get_Widget_By_Action

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

Get_Item_By_Action

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

Delete_Item

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

Delete_Entry

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

Delete_Entries

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

Popup

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