GtkMenuItem {RGtk2}R Documentation

GtkMenuItem

Description

The widget used for item in menus

Methods and Functions

gtkMenuItemNew(show = TRUE)
gtkMenuItemNewWithLabel(label, show = TRUE)
gtkMenuItemNewWithMnemonic(label, show = TRUE)
gtkMenuItemSetRightJustified(object, right.justified)
gtkMenuItemSetSubmenu(object, submenu)
gtkMenuItemSetAccelPath(object, accel.path)
gtkMenuItemRemoveSubmenu(object)
gtkMenuItemSelect(object)
gtkMenuItemDeselect(object)
gtkMenuItemActivate(object)
gtkMenuItemToggleSizeRequest(object, requisition)
gtkMenuItemToggleSizeAllocate(object, allocation)
gtkMenuItemGetRightJustified(object)
gtkMenuItemGetSubmenu(object)
gtkMenuItem(label, show = TRUE)

Hierarchy

  GObject
   +----GInitiallyUnowned
         +----GtkObject
               +----GtkWidget
                     +----GtkContainer
                           +----GtkBin
                                 +----GtkItem
                                       +----GtkMenuItem
                                             +----GtkCheckMenuItem
                                             +----GtkImageMenuItem
                                             +----GtkSeparatorMenuItem
                                             +----GtkTearoffMenuItem

Interfaces

GtkMenuItem implements GtkBuildable and AtkImplementorIface.

Detailed Description

The GtkMenuItem 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 GtkBin it can hold any valid child widget, altough only a few are really useful.

Structures

GtkMenuItem
undocumented

Convenient Construction

gtkMenuItem is the result of collapsing the constructors of GtkMenuItem (gtkMenuItemNew, gtkMenuItemNewWithLabel, gtkMenuItemNewWithMnemonic) and accepts a subset of its arguments matching the required arguments of one of its delegate constructors.

Signals

The (menuitem, user.data)
Emitted when the item is activated.

menuitem
[GtkMenuItem] the object which received the signal.
user.data
[R object] user data set when the signal handler was connected.

The (menuitem, user.data)
Emitted when the item is activated, but also if the menu item has a submenu. For normal applications, the relevant signal is "activate".

menuitem
[GtkMenuItem] the object which received the signal.
user.data
[R object] user data set when the signal handler was connected.

The (menuitem, arg1, user.data)
undocumented

menuitem
[GtkMenuItem] the object which received the signal.
arg1
[integer]
user.data
[R object] user data set when the signal handler was connected.

The (menuitem, arg1, user.data)
undocumented

menuitem
[GtkMenuItem] the object which received the signal.
arg1
[R object]
user.data
[R object] user data set when the signal handler was connected.

Properties

submenu [GtkMenu : Read / Write]

The submenu attached to the menu item, or NULL if it has none.

Since 2.12

Style Properties

arrow-spacing [integer : Read]

Space between label and arrow. Allowed values: >= 0 Default value: 10

horizontal-padding [integer : Read]

Padding to left and right of the menu item. Allowed values: >= 0 Default value: 3

selected-shadow-type [GtkShadowType : Read]

Shadow type when item is selected. Default value: GTK_SHADOW_NONE

toggle-spacing [integer : Read]

Space between icon and label. Allowed values: >= 0 Default value: 5

Author(s)

Derived by RGtkGen from GTK+ documentation

References

http://developer.gnome.org/doc/API/2.0/gtk/GtkMenuItem.html


[Package RGtk2 version 2.12.5-3 Index]