Package: gtk
Class gtk:menu-shell
Superclassesgtk:container, gtk:widget, gtk:buildable, gobject:object, common-lisp:standard-object, common-lisp:t Documented SubclassesDirect SlotsDetails The gtk:menu-shell class is the abstract base class used to derive the gtk:menu and gtk:menu-bar subclasses. The gtk:menu-shell widget is a container of gtk:menu-item widgets arranged in a list which can be navigated, selected, and activated by the user to perform application functions. A gtk:menu-item widget can have a submenu associated with it, allowing for nested hierarchical menus. TerminologyA menu item can be "selected", this means that it is displayed in the prelight state, and if it has a submenu, that submenu will be popped up.A menu is "active" when it is visible onscreen and the user is selecting from it. A menubar is not active until the user clicks on one of its menuitems. When a menu is active, passing the mouse over a submenu will pop it up. There is also a concept of the current menu and a current menu item. The current menu item is the selected menu item that is furthest down in the hierarchy. Every active menu shell does not necessarily contain a selected menu item, but if it does, then the parent menu shell must also contain a selected menu item. The current menu is the menu that contains the current menu item. It will always have a GTK grab and receive all key presses. Signal DetailsThe "activate-current" signallambda (menushell force-hide) :actionAn action signal that activates the current menu item within the menu shell.
The "cancel" signallambda (menushell) :actionAn action signal which cancels the selection within the menu shell. Causes the "selection-done" signal to be emitted.
The "cycle-focus" signallambda (menushell direction) :actionA keybinding signal which moves the focus in the given direction.
The "deactivate" signallambda (menushell) :run-firstThe signal is emitted when a menu shell is deactivated.
The "insert" signallambda (menushell child position) :run-firstThe signal is emitted when a new menu item is added to a gtk:menu-shell widget. A separate signal is used instead of the "GtkContainer::add" signal because of the need for an additional position parameter. The inverse of this signal is the "GtkContainer::removed" signal.
The "move-current" signallambda (menushell direction) :actionAn keybinding signal which moves the current menu item in the direction specified by direction.
The "move-selected" signallambda (menushell distance) :run-lastThe signal is emitted to move the selection to another item.
The "selection-done" signallambda (menushell) :run-firstThe signal is emitted when a selection has been completed within a menu shell.
| Slot Access FunctionsInherited Slot Access FunctionsSee also |
#2023-3-21