GtkMenuShell {RGtk2} | R Documentation |
A base class for menu objects
gtkMenuShellAppend(object, child)
gtkMenuShellPrepend(object, child)
gtkMenuShellInsert(object, child, position)
gtkMenuShellDeactivate(object)
gtkMenuShellSelectItem(object, menu.item)
gtkMenuShellSelectFirst(object, search.sensitive)
gtkMenuShellDeselect(object)
gtkMenuShellActivateItem(object, menu.item, force.deactivate)
gtkMenuShellCancel(object)
gtkMenuShellSetTakeFocus(object, take.focus)
gtkMenuShellGetTakeFocus(object)
GObject +----GInitiallyUnowned +----GtkObject +----GtkWidget +----GtkContainer +----GtkMenuShell +----GtkMenuBar +----GtkMenu
GtkMenuShell implements
GtkBuildable
and AtkImplementorIface.
A GtkMenuShell
is the abstract base class used to derive the
GtkMenu
and GtkMenuBar
subclasses.
A GtkMenuShell
is a container of GtkMenuItem
objects arranged in a
list which can be navigated, selected, and activated by the user to perform
application functions. A GtkMenuItem
can have a submenu associated with it,
allowing for nested hierarchical menus.
GtkMenuShell
GtkMenuShell
struct contains the following fields.
(These fields should be considered read-only. They should never be set by
an application.)
list *children; | The list of GtkMenuItem objects contained by this GtkMenuShell . |
GtkMenuDirectionType
GTK_MENU_DIR_PARENT | To the parent menu shell. |
GTK_MENU_DIR_CHILD | To the submenu, if any, associated with the item. |
GTK_MENU_DIR_NEXT | To the next menu item. |
GTK_MENU_DIR_PREV | To the previous menu item. |
The (menushell, force.hide, user.data)
menushell
GtkMenuShell
] the object which received the signal.force.hide
user.data
The (menushell, user.data)
menushell
GtkMenuShell
] the object which received the signal.user.data
The (menushell, arg1, user.data)
menushell
GtkMenuShell
] the object which received the signal.arg1
GtkDirectionType
] user.data
The (menushell, user.data)
menushell
GtkMenuShell
] the object which received the signal.user.data
The (menushell, direction, user.data)
direction
.
menushell
GtkMenuShell
] the object which received the signal.direction
GtkMenuDirectionType
] the direction to move.user.data
The (menu.shell, distance, user.data)
Since 2.12
menu.shell
GtkMenuShell
] the object on which the signal is emitteddistance
user.data
Returns: [logical] TRUE
to stop the signal emission, FALSE
to continue
The (menushell, user.data)
menushell
GtkMenuShell
] the object which received the signal.user.data
take-focus
[logical : Read / Write]
A boolean that determines whether the menu and its submenus grab the
keyboard focus. See gtkMenuShellSetTakeFocus
and
gtkMenuShellGetTakeFocus
.
Default value: TRUE Since 2.8
Derived by RGtkGen from GTK+ documentation
http://developer.gnome.org/doc/API/2.0/gtk/GtkMenuShell.html