Index

Package: Menu_Item

Description

package Gtk.Menu_Item is

The Gtk.Menu_Item.Gtk_Menu_Item widget and the derived widgets are the only valid childs for menus. Their function is to correctly handle highlighting, alignment, events and submenus.

As it derives from Gtk.Bin.Gtk_Bin it can hold any valid child widget, altough only a few are really useful. == GtkMenuItem as GtkBuildable == The GtkMenuItem implementation of the GtkBuildable interface supports adding a submenu by specifying "submenu" as the "type" attribute of a <child> element. == A UI definition fragment with submenus == <object class="GtkMenuItem"> <child type="submenu"> <object class="GtkMenu"/> </child> </object>

Packages

Implements_Gtk_Actionable (new Glib.Types.Implements)

Implements_Gtk_Activatable (new Glib.Types.Implements)

Implements_Gtk_Buildable (new Glib.Types.Implements)

Classes

Gtk_Menu_Item_Record

type Gtk_Menu_Item_Record is new Gtk_Bin_Record with null record;

Ancestors:

Immediate Children:

Primitive operations:

Do_Set_Related_Action
Get_Accel_Path
Get_Action_Name
Get_Action_Target_Value
Get_Related_Action
Get_Reserve_Indicator
Get_Right_Justified
Get_Use_Action_Appearance
Get_Use_Underline
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)
Gtk.Bin.Get_Child (Inherited)
Gtk.Container.Add (Inherited)
Gtk.Container.Check_Resize (Inherited)
Gtk.Container.Child_Get_Property (Inherited)
Gtk.Container.Child_Notify (Inherited)
Gtk.Container.Child_Set_Property (Inherited)
Gtk.Container.Child_Type (Inherited)
Gtk.Container.Forall (Inherited)
Gtk.Container.Foreach (Inherited)
Gtk.Container.Get_Border_Width (Inherited)
Gtk.Container.Get_Children (Inherited)
Gtk.Container.Get_Focus_Child (Inherited)
Gtk.Container.Get_Focus_Hadjustment (Inherited)
Gtk.Container.Get_Focus_Vadjustment (Inherited)
Gtk.Container.Get_Path_For_Child (Inherited)
Gtk.Container.Get_Resize_Mode (Inherited)
Gtk.Container.On_Add (Inherited)
Gtk.Container.On_Add (Inherited)
Gtk.Container.On_Check_Resize (Inherited)
Gtk.Container.On_Check_Resize (Inherited)
Gtk.Container.On_Remove (Inherited)
Gtk.Container.On_Remove (Inherited)
Gtk.Container.On_Set_Focus_Child (Inherited)
Gtk.Container.On_Set_Focus_Child (Inherited)
Gtk.Container.Propagate_Draw (Inherited)
Gtk.Container.Remove (Inherited)
Gtk.Container.Resize_Children (Inherited)
Gtk.Container.Set_Border_Width (Inherited)
Gtk.Container.Set_Focus_Chain (Inherited)
Gtk.Container.Set_Focus_Child (Inherited)
Gtk.Container.Set_Focus_Hadjustment (Inherited)
Gtk.Container.Set_Focus_Vadjustment (Inherited)
Gtk.Container.Set_Reallocate_Redraws (Inherited)
Gtk.Container.Set_Resize_Mode (Inherited)
Gtk.Container.Unset_Focus_Chain (Inherited)
Gtk.Widget.Activate (Inherited)
Gtk.Widget.Add_Accelerator (Inherited)
Gtk.Widget.Add_Device_Events (Inherited)
Gtk.Widget.Add_Events (Inherited)
Gtk.Widget.Add_Mnemonic_Label (Inherited)
Gtk.Widget.Add_Tick_Callback (Inherited)
Gtk.Widget.Can_Activate_Accel (Inherited)
Gtk.Widget.Child_Focus (Inherited)
Gtk.Widget.Child_Notify (Inherited)
Gtk.Widget.Compute_Expand (Inherited)
Gtk.Widget.Create_Pango_Context (Inherited)
Gtk.Widget.Create_Pango_Layout (Inherited)
Gtk.Widget.Destroy (Inherited)
Gtk.Widget.Destroyed (Inherited)
Gtk.Widget.Device_Is_Shadowed (Inherited)
Gtk.Widget.Drag_Check_Threshold (Inherited)
Gtk.Widget.Drag_Dest_Add_Image_Targets (Inherited)
Gtk.Widget.Drag_Dest_Add_Text_Targets (Inherited)
Gtk.Widget.Drag_Dest_Add_Uri_Targets (Inherited)
Gtk.Widget.Drag_Dest_Get_Track_Motion (Inherited)
Gtk.Widget.Drag_Dest_Set_Proxy (Inherited)
Gtk.Widget.Drag_Dest_Set_Track_Motion (Inherited)
Gtk.Widget.Drag_Dest_Unset (Inherited)
Gtk.Widget.Drag_Get_Data (Inherited)
Gtk.Widget.Drag_Highlight (Inherited)
Gtk.Widget.Drag_Source_Add_Image_Targets (Inherited)
Gtk.Widget.Drag_Source_Add_Uri_Targets (Inherited)
Gtk.Widget.Drag_Source_Set_Icon_Pixbuf (Inherited)
Gtk.Widget.Drag_Source_Unset (Inherited)
Gtk.Widget.Drag_Unhighlight (Inherited)
Gtk.Widget.Draw (Inherited)
Gtk.Widget.Ensure_Style (Inherited)
Gtk.Widget.Error_Bell (Inherited)
Gtk.Widget.Event (Inherited)
Gtk.Widget.Freeze_Child_Notify (Inherited)
Gtk.Widget.Get_Allocated_Height (Inherited)
Gtk.Widget.Get_Allocated_Width (Inherited)
Gtk.Widget.Get_Allocation (Inherited)
Gtk.Widget.Get_Ancestor (Inherited)
Gtk.Widget.Get_App_Paintable (Inherited)
Gtk.Widget.Get_Can_Default (Inherited)
Gtk.Widget.Get_Can_Focus (Inherited)
Gtk.Widget.Get_Child_Requisition (Inherited)
Gtk.Widget.Get_Child_Visible (Inherited)
Gtk.Widget.Get_Composite_Name (Inherited)
Gtk.Widget.Get_Device_Enabled (Inherited)
Gtk.Widget.Get_Device_Events (Inherited)
Gtk.Widget.Get_Direction (Inherited)
Gtk.Widget.Get_Display (Inherited)
Gtk.Widget.Get_Double_Buffered (Inherited)
Gtk.Widget.Get_Events (Inherited)
Gtk.Widget.Get_Frame_Clock (Inherited)
Gtk.Widget.Get_Halign (Inherited)
Gtk.Widget.Get_Has_Tooltip (Inherited)
Gtk.Widget.Get_Has_Window (Inherited)
Gtk.Widget.Get_Hexpand (Inherited)
Gtk.Widget.Get_Hexpand_Set (Inherited)
Gtk.Widget.Get_Mapped (Inherited)
Gtk.Widget.Get_Margin_Bottom (Inherited)
Gtk.Widget.Get_Margin_Left (Inherited)
Gtk.Widget.Get_Margin_Right (Inherited)
Gtk.Widget.Get_Margin_Top (Inherited)
Gtk.Widget.Get_Modifier_Mask (Inherited)
Gtk.Widget.Get_Name (Inherited)
Gtk.Widget.Get_No_Show_All (Inherited)
Gtk.Widget.Get_Opacity (Inherited)
Gtk.Widget.Get_Pango_Context (Inherited)
Gtk.Widget.Get_Parent (Inherited)
Gtk.Widget.Get_Parent_Window (Inherited)
Gtk.Widget.Get_Path (Inherited)
Gtk.Widget.Get_Pointer (Inherited)
Gtk.Widget.Get_Preferred_Height (Inherited)
Gtk.Widget.Get_Preferred_Height_For_Width (Inherited)
Gtk.Widget.Get_Preferred_Size (Inherited)
Gtk.Widget.Get_Preferred_Width (Inherited)
Gtk.Widget.Get_Preferred_Width_For_Height (Inherited)
Gtk.Widget.Get_Realized (Inherited)
Gtk.Widget.Get_Receives_Default (Inherited)
Gtk.Widget.Get_Request_Mode (Inherited)
Gtk.Widget.Get_Requisition (Inherited)
Gtk.Widget.Get_Root_Window (Inherited)
Gtk.Widget.Get_Screen (Inherited)
Gtk.Widget.Get_Sensitive (Inherited)
Gtk.Widget.Get_Size_Request (Inherited)
Gtk.Widget.Get_State (Inherited)
Gtk.Widget.Get_State_Flags (Inherited)
Gtk.Widget.Get_Style (Inherited)
Gtk.Widget.Get_Support_Multidevice (Inherited)
Gtk.Widget.Get_Tooltip_Markup (Inherited)
Gtk.Widget.Get_Tooltip_Text (Inherited)
Gtk.Widget.Get_Tooltip_Window (Inherited)
Gtk.Widget.Get_Toplevel (Inherited)
Gtk.Widget.Get_Valign (Inherited)
Gtk.Widget.Get_Vexpand (Inherited)
Gtk.Widget.Get_Vexpand_Set (Inherited)
Gtk.Widget.Get_Visible (Inherited)
Gtk.Widget.Get_Visual (Inherited)
Gtk.Widget.Get_Window (Inherited)
Gtk.Widget.Grab_Add (Inherited)
Gtk.Widget.Grab_Default (Inherited)
Gtk.Widget.Grab_Focus (Inherited)
Gtk.Widget.Grab_Remove (Inherited)
Gtk.Widget.Has_Default (Inherited)
Gtk.Widget.Has_Focus (Inherited)
Gtk.Widget.Has_Grab (Inherited)
Gtk.Widget.Has_Rc_Style (Inherited)
Gtk.Widget.Has_Screen (Inherited)
Gtk.Widget.Has_Visible_Focus (Inherited)
Gtk.Widget.Hide (Inherited)
Gtk.Widget.Hide_On_Delete (Inherited)
Gtk.Widget.In_Destruction (Inherited)
Gtk.Widget.Input_Shape_Combine_Region (Inherited)
Gtk.Widget.Intersect (Inherited)
Gtk.Widget.Is_Ancestor (Inherited)
Gtk.Widget.Is_Composited (Inherited)
Gtk.Widget.Is_Drawable (Inherited)
Gtk.Widget.Is_Focus (Inherited)
Gtk.Widget.Is_Sensitive (Inherited)
Gtk.Widget.Is_Toplevel (Inherited)
Gtk.Widget.Is_Visible (Inherited)
Gtk.Widget.Keynav_Failed (Inherited)
Gtk.Widget.List_Mnemonic_Labels (Inherited)
Gtk.Widget.Map (Inherited)
Gtk.Widget.Mnemonic_Activate (Inherited)
Gtk.Widget.Modify_Base (Inherited)
Gtk.Widget.Modify_Bg (Inherited)
Gtk.Widget.Modify_Cursor (Inherited)
Gtk.Widget.Modify_Fg (Inherited)
Gtk.Widget.Modify_Font (Inherited)
Gtk.Widget.Modify_Text (Inherited)
Gtk.Widget.On_Accel_Closures_Changed (Inherited)
Gtk.Widget.On_Accel_Closures_Changed (Inherited)
Gtk.Widget.On_Button_Press_Event (Inherited)
Gtk.Widget.On_Button_Press_Event (Inherited)
Gtk.Widget.On_Button_Release_Event (Inherited)
Gtk.Widget.On_Button_Release_Event (Inherited)
Gtk.Widget.On_Can_Activate_Accel (Inherited)
Gtk.Widget.On_Can_Activate_Accel (Inherited)
Gtk.Widget.On_Child_Notify (Inherited)
Gtk.Widget.On_Child_Notify (Inherited)
Gtk.Widget.On_Composited_Changed (Inherited)
Gtk.Widget.On_Composited_Changed (Inherited)
Gtk.Widget.On_Configure_Event (Inherited)
Gtk.Widget.On_Configure_Event (Inherited)
Gtk.Widget.On_Damage_Event (Inherited)
Gtk.Widget.On_Damage_Event (Inherited)
Gtk.Widget.On_Delete_Event (Inherited)
Gtk.Widget.On_Delete_Event (Inherited)
Gtk.Widget.On_Destroy (Inherited)
Gtk.Widget.On_Destroy (Inherited)
Gtk.Widget.On_Destroy_Event (Inherited)
Gtk.Widget.On_Destroy_Event (Inherited)
Gtk.Widget.On_Direction_Changed (Inherited)
Gtk.Widget.On_Direction_Changed (Inherited)
Gtk.Widget.On_Drag_Begin (Inherited)
Gtk.Widget.On_Drag_Begin (Inherited)
Gtk.Widget.On_Drag_Data_Delete (Inherited)
Gtk.Widget.On_Drag_Data_Delete (Inherited)
Gtk.Widget.On_Drag_Data_Get (Inherited)
Gtk.Widget.On_Drag_Data_Get (Inherited)
Gtk.Widget.On_Drag_Data_Received (Inherited)
Gtk.Widget.On_Drag_Data_Received (Inherited)
Gtk.Widget.On_Drag_Drop (Inherited)
Gtk.Widget.On_Drag_Drop (Inherited)
Gtk.Widget.On_Drag_End (Inherited)
Gtk.Widget.On_Drag_End (Inherited)
Gtk.Widget.On_Drag_Failed (Inherited)
Gtk.Widget.On_Drag_Failed (Inherited)
Gtk.Widget.On_Drag_Leave (Inherited)
Gtk.Widget.On_Drag_Leave (Inherited)
Gtk.Widget.On_Drag_Motion (Inherited)
Gtk.Widget.On_Drag_Motion (Inherited)
Gtk.Widget.On_Draw (Inherited)
Gtk.Widget.On_Draw (Inherited)
Gtk.Widget.On_Enter_Notify_Event (Inherited)
Gtk.Widget.On_Enter_Notify_Event (Inherited)
Gtk.Widget.On_Event (Inherited)
Gtk.Widget.On_Event (Inherited)
Gtk.Widget.On_Event_After (Inherited)
Gtk.Widget.On_Event_After (Inherited)
Gtk.Widget.On_Focus (Inherited)
Gtk.Widget.On_Focus (Inherited)
Gtk.Widget.On_Focus_In_Event (Inherited)
Gtk.Widget.On_Focus_In_Event (Inherited)
Gtk.Widget.On_Focus_Out_Event (Inherited)
Gtk.Widget.On_Focus_Out_Event (Inherited)
Gtk.Widget.On_Grab_Broken_Event (Inherited)
Gtk.Widget.On_Grab_Broken_Event (Inherited)
Gtk.Widget.On_Grab_Focus (Inherited)
Gtk.Widget.On_Grab_Focus (Inherited)
Gtk.Widget.On_Grab_Notify (Inherited)
Gtk.Widget.On_Grab_Notify (Inherited)
Gtk.Widget.On_Hide (Inherited)
Gtk.Widget.On_Hide (Inherited)
Gtk.Widget.On_Hierarchy_Changed (Inherited)
Gtk.Widget.On_Hierarchy_Changed (Inherited)
Gtk.Widget.On_Key_Press_Event (Inherited)
Gtk.Widget.On_Key_Press_Event (Inherited)
Gtk.Widget.On_Key_Release_Event (Inherited)
Gtk.Widget.On_Key_Release_Event (Inherited)
Gtk.Widget.On_Keynav_Failed (Inherited)
Gtk.Widget.On_Keynav_Failed (Inherited)
Gtk.Widget.On_Leave_Notify_Event (Inherited)
Gtk.Widget.On_Leave_Notify_Event (Inherited)
Gtk.Widget.On_Map (Inherited)
Gtk.Widget.On_Map (Inherited)
Gtk.Widget.On_Map_Event (Inherited)
Gtk.Widget.On_Map_Event (Inherited)
Gtk.Widget.On_Mnemonic_Activate (Inherited)
Gtk.Widget.On_Mnemonic_Activate (Inherited)
Gtk.Widget.On_Motion_Notify_Event (Inherited)
Gtk.Widget.On_Motion_Notify_Event (Inherited)
Gtk.Widget.On_Move_Focus (Inherited)
Gtk.Widget.On_Move_Focus (Inherited)
Gtk.Widget.On_Parent_Set (Inherited)
Gtk.Widget.On_Parent_Set (Inherited)
Gtk.Widget.On_Popup_Menu (Inherited)
Gtk.Widget.On_Popup_Menu (Inherited)
Gtk.Widget.On_Property_Notify_Event (Inherited)
Gtk.Widget.On_Property_Notify_Event (Inherited)
Gtk.Widget.On_Proximity_In_Event (Inherited)
Gtk.Widget.On_Proximity_In_Event (Inherited)
Gtk.Widget.On_Proximity_Out_Event (Inherited)
Gtk.Widget.On_Proximity_Out_Event (Inherited)
Gtk.Widget.On_Query_Tooltip (Inherited)
Gtk.Widget.On_Query_Tooltip (Inherited)
Gtk.Widget.On_Realize (Inherited)
Gtk.Widget.On_Realize (Inherited)
Gtk.Widget.On_Screen_Changed (Inherited)
Gtk.Widget.On_Screen_Changed (Inherited)
Gtk.Widget.On_Scroll_Event (Inherited)
Gtk.Widget.On_Scroll_Event (Inherited)
Gtk.Widget.On_Selection_Clear_Event (Inherited)
Gtk.Widget.On_Selection_Clear_Event (Inherited)
Gtk.Widget.On_Selection_Get (Inherited)
Gtk.Widget.On_Selection_Get (Inherited)
Gtk.Widget.On_Selection_Notify_Event (Inherited)
Gtk.Widget.On_Selection_Notify_Event (Inherited)
Gtk.Widget.On_Selection_Received (Inherited)
Gtk.Widget.On_Selection_Received (Inherited)
Gtk.Widget.On_Selection_Request_Event (Inherited)
Gtk.Widget.On_Selection_Request_Event (Inherited)
Gtk.Widget.On_Show (Inherited)
Gtk.Widget.On_Show (Inherited)
Gtk.Widget.On_Show_Help (Inherited)
Gtk.Widget.On_Show_Help (Inherited)
Gtk.Widget.On_Size_Allocate (Inherited)
Gtk.Widget.On_Size_Allocate (Inherited)
Gtk.Widget.On_State_Changed (Inherited)
Gtk.Widget.On_State_Changed (Inherited)
Gtk.Widget.On_State_Flags_Changed (Inherited)
Gtk.Widget.On_State_Flags_Changed (Inherited)
Gtk.Widget.On_Style_Set (Inherited)
Gtk.Widget.On_Style_Set (Inherited)
Gtk.Widget.On_Style_Updated (Inherited)
Gtk.Widget.On_Style_Updated (Inherited)
Gtk.Widget.On_Touch_Event (Inherited)
Gtk.Widget.On_Touch_Event (Inherited)
Gtk.Widget.On_Unmap (Inherited)
Gtk.Widget.On_Unmap (Inherited)
Gtk.Widget.On_Unmap_Event (Inherited)
Gtk.Widget.On_Unmap_Event (Inherited)
Gtk.Widget.On_Unrealize (Inherited)
Gtk.Widget.On_Unrealize (Inherited)
Gtk.Widget.On_Visibility_Notify_Event (Inherited)
Gtk.Widget.On_Visibility_Notify_Event (Inherited)
Gtk.Widget.On_Window_State_Event (Inherited)
Gtk.Widget.On_Window_State_Event (Inherited)
Gtk.Widget.Override_Background_Color (Inherited)
Gtk.Widget.Override_Color (Inherited)
Gtk.Widget.Override_Cursor (Inherited)
Gtk.Widget.Override_Font (Inherited)
Gtk.Widget.Override_Symbolic_Color (Inherited)
Gtk.Widget.Queue_Compute_Expand (Inherited)
Gtk.Widget.Queue_Draw (Inherited)
Gtk.Widget.Queue_Draw_Area (Inherited)
Gtk.Widget.Queue_Draw_Region (Inherited)
Gtk.Widget.Queue_Resize (Inherited)
Gtk.Widget.Queue_Resize_No_Redraw (Inherited)
Gtk.Widget.Realize (Inherited)
Gtk.Widget.Region_Intersect (Inherited)
Gtk.Widget.Register_Window (Inherited)
Gtk.Widget.Remove_Accelerator (Inherited)
Gtk.Widget.Remove_Mnemonic_Label (Inherited)
Gtk.Widget.Remove_Tick_Callback (Inherited)
Gtk.Widget.Render_Icon (Inherited)
Gtk.Widget.Render_Icon_Pixbuf (Inherited)
Gtk.Widget.Reparent (Inherited)
Gtk.Widget.Reset_Rc_Styles (Inherited)
Gtk.Widget.Reset_Style (Inherited)
Gtk.Widget.Send_Expose (Inherited)
Gtk.Widget.Send_Focus_Change (Inherited)
Gtk.Widget.Set_Accel_Path (Inherited)
Gtk.Widget.Set_Allocation (Inherited)
Gtk.Widget.Set_App_Paintable (Inherited)
Gtk.Widget.Set_Can_Default (Inherited)
Gtk.Widget.Set_Can_Focus (Inherited)
Gtk.Widget.Set_Child_Visible (Inherited)
Gtk.Widget.Set_Composite_Name (Inherited)
Gtk.Widget.Set_Device_Enabled (Inherited)
Gtk.Widget.Set_Device_Events (Inherited)
Gtk.Widget.Set_Direction (Inherited)
Gtk.Widget.Set_Double_Buffered (Inherited)
Gtk.Widget.Set_Events (Inherited)
Gtk.Widget.Set_Halign (Inherited)
Gtk.Widget.Set_Has_Tooltip (Inherited)
Gtk.Widget.Set_Has_Window (Inherited)
Gtk.Widget.Set_Hexpand (Inherited)
Gtk.Widget.Set_Hexpand_Set (Inherited)
Gtk.Widget.Set_Mapped (Inherited)
Gtk.Widget.Set_Margin_Bottom (Inherited)
Gtk.Widget.Set_Margin_Left (Inherited)
Gtk.Widget.Set_Margin_Right (Inherited)
Gtk.Widget.Set_Margin_Top (Inherited)
Gtk.Widget.Set_Name (Inherited)
Gtk.Widget.Set_No_Show_All (Inherited)
Gtk.Widget.Set_Opacity (Inherited)
Gtk.Widget.Set_Parent (Inherited)
Gtk.Widget.Set_Parent_Window (Inherited)
Gtk.Widget.Set_Realized (Inherited)
Gtk.Widget.Set_Receives_Default (Inherited)
Gtk.Widget.Set_Redraw_On_Allocate (Inherited)
Gtk.Widget.Set_Sensitive (Inherited)
Gtk.Widget.Set_Size_Request (Inherited)
Gtk.Widget.Set_State (Inherited)
Gtk.Widget.Set_State_Flags (Inherited)
Gtk.Widget.Set_Style (Inherited)
Gtk.Widget.Set_Support_Multidevice (Inherited)
Gtk.Widget.Set_Tooltip_Markup (Inherited)
Gtk.Widget.Set_Tooltip_Text (Inherited)
Gtk.Widget.Set_Tooltip_Window (Inherited)
Gtk.Widget.Set_Valign (Inherited)
Gtk.Widget.Set_Vexpand (Inherited)
Gtk.Widget.Set_Vexpand_Set (Inherited)
Gtk.Widget.Set_Visible (Inherited)
Gtk.Widget.Set_Visual (Inherited)
Gtk.Widget.Set_Window (Inherited)
Gtk.Widget.Shape_Combine_Region (Inherited)
Gtk.Widget.Show (Inherited)
Gtk.Widget.Show_All (Inherited)
Gtk.Widget.Show_Now (Inherited)
Gtk.Widget.Size_Allocate (Inherited)
Gtk.Widget.Size_Request (Inherited)
Gtk.Widget.Style_Attach (Inherited)
Gtk.Widget.Style_Get_Property (Inherited)
Gtk.Widget.Thaw_Child_Notify (Inherited)
Gtk.Widget.Translate_Coordinates (Inherited)
Gtk.Widget.Trigger_Tooltip_Query (Inherited)
Gtk.Widget.Unmap (Inherited)
Gtk.Widget.Unparent (Inherited)
Gtk.Widget.Unrealize (Inherited)
Gtk.Widget.Unregister_Window (Inherited)
Gtk.Widget.Unset_State_Flags (Inherited)
On_Activate_Item
On_Activate_Item
On_Gtk_Select
On_Gtk_Select
On_Toggle_Size_Allocate
On_Toggle_Size_Allocate
On_Toggle_Size_Request
On_Toggle_Size_Request
Set_Accel_Path
Set_Action_Name
Set_Action_Target_Value
Set_Detailed_Action_Name
Set_Related_Action
Set_Reserve_Indicator
Set_Right_Justified
Set_Use_Action_Appearance
Set_Use_Underline
Sync_Action_Properties
Toggle_Size_Allocate
Toggle_Size_Request

Types

Gtk_Menu_Item

type Gtk_Menu_Item is access all Gtk_Menu_Item_Record'Class;

Cb_Gtk_Menu_Item_Void

type Cb_Gtk_Menu_Item_Void is not null access procedure (Self : access Gtk_Menu_Item_Record'Class);

Cb_GObject_Void

type Cb_GObject_Void is not null access procedure
     (Self : access Glib.Object.GObject_Record'Class);

Cb_Gtk_Menu_Item_Gint_Void

type Cb_Gtk_Menu_Item_Gint_Void is not null access procedure
     (Self   : access Gtk_Menu_Item_Record'Class;
      Object : Gint);

Cb_GObject_Gint_Void

type Cb_GObject_Gint_Void is not null access procedure
     (Self   : access Glib.Object.GObject_Record'Class;
      Object : Gint);

Cb_Gtk_Menu_Item_Address_Void

type Cb_Gtk_Menu_Item_Address_Void is not null access procedure
     (Self   : access Gtk_Menu_Item_Record'Class;
      Object : System.Address);

Cb_GObject_Address_Void

type Cb_GObject_Address_Void is not null access procedure
     (Self   : access Glib.Object.GObject_Record'Class;
      Object : System.Address);

Constants & Global variables

Accel_Path_Property (Glib.Properties.Property_String)

Accel_Path_Property : constant Glib.Properties.Property_String;
Sets the accelerator path of the menu item, through which runtime changes of the menu item's accelerator caused by the user can be identified and saved to persistant storage.

Label_Property (Glib.Properties.Property_String)

Label_Property : constant Glib.Properties.Property_String;
The text for the child label.

Right_Justified_Property (Glib.Properties.Property_Boolean)

Right_Justified_Property : constant Glib.Properties.Property_Boolean;
Sets whether the menu item appears justified at the right side of a menu bar.

Submenu_Property (Glib.Properties.Property_Object)

Submenu_Property : constant Glib.Properties.Property_Object;
Type: Gtk.Menu.Gtk_Menu The submenu attached to the menu item, or null if it has none.

Use_Underline_Property (Glib.Properties.Property_Boolean)

Use_Underline_Property : constant Glib.Properties.Property_Boolean;
True if underlines in the text indicate mnemonics.

Signal_Activate (Glib.Signal_Name)

Signal_Activate : constant Glib.Signal_Name := "activate";

Signal_Activate_Item (Glib.Signal_Name)

Signal_Activate_Item : constant Glib.Signal_Name := "activate-item";

Signal_Deselect (Glib.Signal_Name)

Signal_Deselect : constant Glib.Signal_Name := "deselect";

Signal_Gtk_Select (Glib.Signal_Name)

Signal_Gtk_Select : constant Glib.Signal_Name := "select";

Signal_Toggle_Size_Allocate (Glib.Signal_Name)

Signal_Toggle_Size_Allocate : constant Glib.Signal_Name := "toggle-size-allocate";

Signal_Toggle_Size_Request (Glib.Signal_Name)

Signal_Toggle_Size_Request : constant Glib.Signal_Name := "toggle-size-request";

Subprograms & Entries

Gtk_New

procedure Gtk_New 
(Menu_Item: out Gtk_Menu_Item);

Initialize

procedure Initialize 
(Menu_Item: not null access Gtk_Menu_Item_Record'Class);

Gtk_Menu_Item_New

function Gtk_Menu_Item_New return Gtk_Menu_Item;

Gtk_New_With_Label

procedure Gtk_New_With_Label 
(Menu_Item: out Gtk_Menu_Item;
Label: UTF8_String);

Initialize_With_Label

procedure Initialize_With_Label 
(Menu_Item: not null access Gtk_Menu_Item_Record'Class;
Label: UTF8_String);
Creates a new Gtk.Menu_Item.Gtk_Menu_Item whose child is a Gtk.Label.Gtk_Label. "label": the text for the label

Gtk_Menu_Item_New_With_Label

function Gtk_Menu_Item_New_With_Label 
(Label: UTF8_String) return Gtk_Menu_Item;
Creates a new Gtk.Menu_Item.Gtk_Menu_Item whose child is a Gtk.Label.Gtk_Label. "label": the text for the label

Gtk_New_With_Mnemonic

procedure Gtk_New_With_Mnemonic 
(Menu_Item: out Gtk_Menu_Item;
Label: UTF8_String);

Initialize_With_Mnemonic

procedure Initialize_With_Mnemonic 
(Menu_Item: not null access Gtk_Menu_Item_Record'Class;
Label: UTF8_String);
Creates a new Gtk.Menu_Item.Gtk_Menu_Item containing a label. The label will be created using Gtk.Label.Gtk_New_With_Mnemonic, so underscores in Label indicate the mnemonic for the menu item. "label": The text of the button, with an underscore in front of the mnemonic character

Gtk_Menu_Item_New_With_Mnemonic

function Gtk_Menu_Item_New_With_Mnemonic 
(Label: UTF8_String) return Gtk_Menu_Item;
Creates a new Gtk.Menu_Item.Gtk_Menu_Item containing a label. The label will be created using Gtk.Label.Gtk_New_With_Mnemonic, so underscores in Label indicate the mnemonic for the menu item. "label": The text of the button, with an underscore in front of the mnemonic character

Get_Type

function Get_Type return Glib.GType;

Activate

procedure Activate 
(Menu_Item: not null access Gtk_Menu_Item_Record);
Emits the Gtk.Menu_Item.Gtk_Menu_Item::activate signal on the given item

Deselect

procedure Deselect 
(Menu_Item: not null access Gtk_Menu_Item_Record);
Emits the Gtk.Menu_Item.Gtk_Menu_Item::deselect signal on the given item. Behaves exactly like gtk_item_deselect.

Get_Accel_Path

function Get_Accel_Path 
(Menu_Item: not null access Gtk_Menu_Item_Record) return UTF8_String;
Retrieve the accelerator path that was previously set on Menu_Item. See Gtk.Menu_Item.Set_Accel_Path for details. Since: gtk+ 2.14

Set_Accel_Path

procedure Set_Accel_Path 
(Menu_Item: not null access Gtk_Menu_Item_Record;
Accel_Path: UTF8_String := "");
Set the accelerator path on Menu_Item, through which runtime changes of the menu item's accelerator caused by the user can be identified and saved to persistent storage (see Gtk.Accel_Map.Save on this). To set up a default accelerator for this menu item, call Gtk.Accel_Map.Add_Entry with the same Accel_Path. See also Gtk.Accel_Map.Add_Entry on the specifics of accelerator paths, and Gtk.Menu.Set_Accel_Path for a more convenient variant of this function. This function is basically a convenience wrapper that handles calling Gtk.Widget.Set_Accel_Path with the appropriate accelerator group for the menu item. Note that you do need to set an accelerator on the parent menu with Gtk.Menu.Set_Accel_Group for this to work. Note that Accel_Path string will be stored in a Glib.GQuark. Therefore, if you pass a static string, you can save some memory by interning it first with g_intern_static_string. "accel_path": accelerator path, corresponding to this menu item's functionality, or null to unset the current path.

Get_Label

function Get_Label 
(Menu_Item: not null access Gtk_Menu_Item_Record) return UTF8_String;
Sets Text on the Menu_Item label Since: gtk+ 2.16

Set_Label

procedure Set_Label 
(Menu_Item: not null access Gtk_Menu_Item_Record;
Label: UTF8_String);
Sets Text on the Menu_Item label Since: gtk+ 2.16 "label": the text you want to set

Get_Reserve_Indicator

function Get_Reserve_Indicator 
(Menu_Item: not null access Gtk_Menu_Item_Record) return Boolean;
Returns whether the Menu_Item reserves space for the submenu indicator, regardless if it has a submenu or not. Since: gtk+ 3.0

Set_Reserve_Indicator

procedure Set_Reserve_Indicator 
(Menu_Item: not null access Gtk_Menu_Item_Record;
Reserve: Boolean);
Sets whether the Menu_Item should reserve space for the submenu indicator, regardless if it actually has a submenu or not. There should be little need for applications to call this functions. Since: gtk+ 3.0 "reserve": the new value

Get_Right_Justified

function Get_Right_Justified 
(Menu_Item: not null access Gtk_Menu_Item_Record) return Boolean;

Set_Right_Justified

procedure Set_Right_Justified 
(Menu_Item: not null access Gtk_Menu_Item_Record;
Right_Justified: Boolean := True);

Get_Submenu

function Get_Submenu 
(Menu_Item: not null access Gtk_Menu_Item_Record) return Gtk.Widget.Gtk_Widget;
Gets the submenu underneath this menu item, if any. See Gtk.Menu_Item.Set_Submenu.

Set_Submenu

procedure Set_Submenu 
(Menu_Item: not null access Gtk_Menu_Item_Record;
Submenu: access Gtk.Widget.Gtk_Widget_Record'Class);
Sets or replaces the menu item's submenu, or removes it when a null submenu is passed. "submenu": the submenu, or null

Get_Use_Underline

function Get_Use_Underline 
(Menu_Item: not null access Gtk_Menu_Item_Record) return Boolean;
Checks if an underline in the text indicates the next character should be used for the mnemonic accelerator key. Since: gtk+ 2.16

Set_Use_Underline

procedure Set_Use_Underline 
(Menu_Item: not null access Gtk_Menu_Item_Record;
Setting: Boolean);
If true, an underline in the text indicates the next character should be used for the mnemonic accelerator key. Since: gtk+ 2.16 "setting": True if underlines in the text indicate mnemonics

Gtk_Select

procedure Gtk_Select 
(Menu_Item: not null access Gtk_Menu_Item_Record);
Emits the Gtk.Menu_Item.Gtk_Menu_Item::select signal on the given item. Behaves exactly like gtk_item_select.

Toggle_Size_Allocate

procedure Toggle_Size_Allocate 
(Menu_Item: not null access Gtk_Menu_Item_Record;
Allocation: Gint);
Emits the Gtk.Menu_Item.Gtk_Menu_Item::toggle-size-allocate signal on the given item. "allocation": the allocation to use as signal data.

Toggle_Size_Request

procedure Toggle_Size_Request 
(Menu_Item: not null access Gtk_Menu_Item_Record;
Requisition: in out Gint);
Emits the Gtk.Menu_Item.Gtk_Menu_Item::toggle-size-request signal on the given item. "requisition": the requisition to use as signal data.

Gtk_New

procedure Gtk_New 
(Menu_Item: out Gtk_Menu_Item;
Label: UTF8_String) renames Gtk_New_With_Label;

Initialize

procedure Initialize 
(Menu_Item: access Gtk_Menu_Item_Record'Class;
Label: UTF8_String) renames Initialize_With_Label;
For backwards compatibility.

Get_Action_Name

function Get_Action_Name 
(Self: not null access Gtk_Menu_Item_Record) return UTF8_String;

Set_Action_Name

procedure Set_Action_Name 
(Self: not null access Gtk_Menu_Item_Record;
Action_Name: UTF8_String);

Get_Action_Target_Value

function Get_Action_Target_Value 
(Self: not null access Gtk_Menu_Item_Record) return Glib.Variant.Gvariant;

Set_Action_Target_Value

procedure Set_Action_Target_Value 
(Self: not null access Gtk_Menu_Item_Record;
Target_Value: Glib.Variant.Gvariant);

Set_Detailed_Action_Name

procedure Set_Detailed_Action_Name 
(Self: not null access Gtk_Menu_Item_Record;
Detailed_Action_Name: UTF8_String);

Do_Set_Related_Action

procedure Do_Set_Related_Action 
(Self: not null access Gtk_Menu_Item_Record;
Action: not null access Gtk.Action.Gtk_Action_Record'Class);

Get_Related_Action

function Get_Related_Action 
(Self: not null access Gtk_Menu_Item_Record) return Gtk.Action.Gtk_Action;

Set_Related_Action

procedure Set_Related_Action 
(Self: not null access Gtk_Menu_Item_Record;
Action: not null access Gtk.Action.Gtk_Action_Record'Class);

Get_Use_Action_Appearance

function Get_Use_Action_Appearance 
(Self: not null access Gtk_Menu_Item_Record) return Boolean;

Set_Use_Action_Appearance

procedure Set_Use_Action_Appearance 
(Self: not null access Gtk_Menu_Item_Record;
Use_Appearance: Boolean);

Sync_Action_Properties

procedure Sync_Action_Properties 
(Self: not null access Gtk_Menu_Item_Record;
Action: access Gtk.Action.Gtk_Action_Record'Class);

On_Activate

procedure On_Activate 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_Gtk_Menu_Item_Void;
After: Boolean := False);

On_Activate

procedure On_Activate 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_GObject_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
Emitted when the item is activated.

On_Activate_Item

procedure On_Activate_Item 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_Gtk_Menu_Item_Void;
After: Boolean := False);

On_Activate_Item

procedure On_Activate_Item 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_GObject_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);
Emitted when the item is activated, but also if the menu item has a submenu. For normal applications, the relevant signal is Gtk.Menu_Item.Gtk_Menu_Item::activate.

On_Deselect

procedure On_Deselect 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_Gtk_Menu_Item_Void;
After: Boolean := False);

On_Deselect

procedure On_Deselect 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_GObject_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);

On_Gtk_Select

procedure On_Gtk_Select 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_Gtk_Menu_Item_Void;
After: Boolean := False);

On_Gtk_Select

procedure On_Gtk_Select 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_GObject_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);

On_Toggle_Size_Allocate

procedure On_Toggle_Size_Allocate 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_Gtk_Menu_Item_Gint_Void;
After: Boolean := False);

On_Toggle_Size_Allocate

procedure On_Toggle_Size_Allocate 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_GObject_Gint_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);

On_Toggle_Size_Request

procedure On_Toggle_Size_Request 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_Gtk_Menu_Item_Address_Void;
After: Boolean := False);

On_Toggle_Size_Request

procedure On_Toggle_Size_Request 
(Self: not null access Gtk_Menu_Item_Record;
Call: Cb_GObject_Address_Void;
Slot: not null access Glib.Object.GObject_Record'Class;
After: Boolean := False);