GtkMenuItem {RGtk2} | R Documentation |
The widget used for item in menus
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)
GObject +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkItem +----GtkMenuItem +----GtkCheckMenuItem +----GtkImageMenuItem +----GtkSeparatorMenuItem +----GtkTearoffMenuItem
GtkMenuItem implements AtkImplementorIface.
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.
GtkMenuItem
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.
activate(menuitem, user.data)
menuitem
GtkMenuItem
] the object which received the signal.user.data
activate-item(menuitem, user.data)
menuitem
GtkMenuItem
] the object which received the signal.user.data
toggle-size-allocate(menuitem, arg1, user.data)
menuitem
GtkMenuItem
] the object which received the signal.arg1
user.data
toggle-size-request(menuitem, arg1, user.data)
menuitem
GtkMenuItem
] the object which received the signal.arg1
user.data
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
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gtk/GtkMenuItem.html