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)
gtkMenuItemGetRightJustified(object)
gtkMenuItemGetLabel(object)
gtkMenuItemSetLabel(object, label)
gtkMenuItemGetUseUnderline(object)
gtkMenuItemSetUseUnderline(object, setting)
gtkMenuItemSetSubmenu(object, submenu)
gtkMenuItemGetSubmenu(object)
gtkMenuItemRemoveSubmenu(object)
gtkMenuItemSetAccelPath(object, accel.path)
gtkMenuItemGetAccelPath(object)
gtkMenuItemSelect(object)
gtkMenuItemDeselect(object)
gtkMenuItemActivate(object)
gtkMenuItemToggleSizeRequest(object, requisition)
gtkMenuItemToggleSizeAllocate(object, allocation)
gtkMenuItem(label, show = TRUE)
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkBin +----GtkItem +----GtkMenuItem +----GtkCheckMenuItem +----GtkImageMenuItem +----GtkSeparatorMenuItem +----GtkTearoffMenuItem
GtkMenuItem implements
AtkImplementorIface, GtkBuildable
and GtkActivatable
.
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.
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>
GtkMenuItem
undocumented
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.
Derived by RGtkGen from GTK+ documentation
http://library.gnome.org/devel//gtk/GtkMenuItem.html