package
Version:
v0.2.1
Opens a new window with list of versions in this module.
Published: Nov 29, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
Package menu provides the menu window widget.
func Add(name string, a ...interface{})
Add menu items as label, acceleration key and callback function and
the number of arguments `a' must be a multiple of three.
Config the keymap function for a menu.
Menu is a list box to execute for a acceleration key.
New creates a new menu based on filer widget sizes.
func (w *Menu) Disconnect()
Disconnect implements widget.Widget.
Exec executes a menu item on the cursor and exits the menu.
Input to the list box or execute a menu item with the acceleration key.
Next implements widget.Widget.
func (w *Menu) Resize(x, y, width, height int)
Resize the menu window.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.