package Implements_Gtk_Buildable is new Glib.Types.Implements (Gtk.Buildable.Gtk_Buildable, Gtk_Menu_Shell_Record, Gtk_Menu_Shell);
type Gtk_Menu_Shell_Record is new Gtk_Container_Record with null record;
type Gtk_Menu_Shell is access all Gtk_Menu_Shell_Record'Class;
type Cb_Gtk_Menu_Shell_Boolean_Void is not null access procedure (Self : access Gtk_Menu_Shell_Record'Class; Force_Hide : Boolean);
type Cb_GObject_Boolean_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class; Force_Hide : Boolean);
type Cb_Gtk_Menu_Shell_Void is not null access procedure (Self : access Gtk_Menu_Shell_Record'Class);
type Cb_GObject_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class);
type Cb_Gtk_Menu_Shell_Gtk_Direction_Type_Void is not null access procedure (Self : access Gtk_Menu_Shell_Record'Class; Direction : Gtk.Enums.Gtk_Direction_Type);
type Cb_GObject_Gtk_Direction_Type_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class; Direction : Gtk.Enums.Gtk_Direction_Type);
type Cb_Gtk_Menu_Shell_Gtk_Widget_Gint_Void is not null access procedure (Self : access Gtk_Menu_Shell_Record'Class; Child : not null access Gtk.Widget.Gtk_Widget_Record'Class; Position : Gint);
type Cb_GObject_Gtk_Widget_Gint_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class; Child : not null access Gtk.Widget.Gtk_Widget_Record'Class; Position : Gint);
type Cb_Gtk_Menu_Shell_Gtk_Menu_Direction_Type_Void is not null access procedure (Self : access Gtk_Menu_Shell_Record'Class; Direction : Gtk.Enums.Gtk_Menu_Direction_Type);
type Cb_GObject_Gtk_Menu_Direction_Type_Void is not null access procedure (Self : access Glib.Object.GObject_Record'Class; Direction : Gtk.Enums.Gtk_Menu_Direction_Type);
type Cb_Gtk_Menu_Shell_Gint_Boolean is not null access function (Self : access Gtk_Menu_Shell_Record'Class; Distance : Gint) return Boolean;
type Cb_GObject_Gint_Boolean is not null access function (Self : access Glib.Object.GObject_Record'Class; Distance : Gint) return Boolean;
Take_Focus_Property : constant Glib.Properties.Property_Boolean;
Signal_Activate_Current : constant Glib.Signal_Name := "activate-current";
Signal_Cancel : constant Glib.Signal_Name := "cancel";
Signal_Cycle_Focus : constant Glib.Signal_Name := "cycle-focus";
Signal_Deactivate : constant Glib.Signal_Name := "deactivate";
Signal_Insert : constant Glib.Signal_Name := "insert";
Signal_Move_Current : constant Glib.Signal_Name := "move-current";
Signal_Move_Selected : constant Glib.Signal_Name := "move-selected";
Signal_Selection_Done : constant Glib.Signal_Name := "selection-done";
function Get_Type return Glib.GType;
procedure Activate_Item
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record; |
Menu_Item | : not null access Gtk.Widget.Gtk_Widget_Record'Class; | |
Force_Deactivate | : Boolean); |
procedure Append
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record; |
Child | : not null access Gtk.Widget.Gtk_Widget_Record'Class); |
procedure Bind_Model
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record; |
Model | : access Glib.Menu_Model.Gmenu_Model_Record'Class; | |
Action_Namespace | : UTF8_String := ""; | |
With_Separators | : Boolean); |
procedure Cancel
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record); |
procedure Deactivate
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record); |
procedure Deselect
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record); |
function Get_Parent_Shell
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record) return Gtk.Widget.Gtk_Widget; |
function Get_Selected_Item
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record) return Gtk.Widget.Gtk_Widget; |
function Get_Take_Focus
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record) return Boolean; |
procedure Set_Take_Focus
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record; |
Take_Focus | : Boolean); |
procedure Insert
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record; |
Child | : not null access Gtk.Widget.Gtk_Widget_Record'Class; | |
Position | : Gint); |
procedure Prepend
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record; |
Child | : not null access Gtk.Widget.Gtk_Widget_Record'Class); |
procedure Select_First
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record; |
Search_Sensitive | : Boolean); |
procedure Select_Item
( | Menu_Shell | : not null access Gtk_Menu_Shell_Record; |
Menu_Item | : not null access Gtk.Widget.Gtk_Widget_Record'Class); |
procedure On_Activate_Current
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_Gtk_Menu_Shell_Boolean_Void; | |
After | : Boolean := False); |
procedure On_Activate_Current
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_GObject_Boolean_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Cancel
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_Gtk_Menu_Shell_Void; | |
After | : Boolean := False); |
procedure On_Cancel
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Cycle_Focus
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_Gtk_Menu_Shell_Gtk_Direction_Type_Void; | |
After | : Boolean := False); |
procedure On_Cycle_Focus
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_GObject_Gtk_Direction_Type_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Deactivate
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_Gtk_Menu_Shell_Void; | |
After | : Boolean := False); |
procedure On_Deactivate
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Insert
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_Gtk_Menu_Shell_Gtk_Widget_Gint_Void; | |
After | : Boolean := False); |
procedure On_Insert
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_GObject_Gtk_Widget_Gint_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Move_Current
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_Gtk_Menu_Shell_Gtk_Menu_Direction_Type_Void; | |
After | : Boolean := False); |
procedure On_Move_Current
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_GObject_Gtk_Menu_Direction_Type_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Move_Selected
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_Gtk_Menu_Shell_Gint_Boolean; | |
After | : Boolean := False); |
procedure On_Move_Selected
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_GObject_Gint_Boolean; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
procedure On_Selection_Done
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_Gtk_Menu_Shell_Void; | |
After | : Boolean := False); |
procedure On_Selection_Done
( | Self | : not null access Gtk_Menu_Shell_Record; |
Call | : Cb_GObject_Void; | |
Slot | : not null access Glib.Object.GObject_Record'Class; | |
After | : Boolean := False); |
function "+"
( | Widget | : access Gtk_Menu_Shell_Record'Class) return Gtk.Buildable.Gtk_Buildable renames Implements_Gtk_Buildable.To_Interface; |
function "-"
( | Interf | : Gtk.Buildable.Gtk_Buildable) return Gtk_Menu_Shell renames Implements_Gtk_Buildable.To_Object; |
A Gtk.Menu_Shell.Gtk_Menu_Shell is the abstract base class used to derive the Gtk.Menu.Gtk_Menu and Gtk.Menu_Bar.Gtk_Menu_Bar subclasses.
A Gtk.Menu_Shell.Gtk_Menu_Shell is a container of Gtk.Menu_Item.Gtk_Menu_Item objects arranged in a list which can be navigated, selected, and activated by the user to perform application functions. A Gtk.Menu_Item.Gtk_Menu_Item can have a submenu associated with it, allowing for nested hierarchical menus.