Learn R Programming

RGtk2 (version 2.12.17)

GtkMenuItem: GtkMenuItem

Description

The widget used for item in menus

Arguments

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 AtkImplementorIface and GtkBuildable.

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.

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.

References

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