NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
DOXYGEN
Window wrapper around a Menu

The Menu Window is an interactive window that allows a user to work with a list of items.

The Menu can be configured to allow single or multiple selections and it can handle arbitrary data, sorting, custom colouring and searching.

Windows

Name Type Constructor
Menu WT_MENU menu_window()

Parent

The Menu Window has many possible parents, e.g.

Children

  • None

Data

The Menu Window stores it state info in struct Menu. Users of the Menu Window can store custom data in Menu::mdata.

Events

Once constructed, it is controlled by the following events:

Event Type Handler
NT_COLOR menu_color_observer()
NT_CONFIG menu_config_observer()
NT_WINDOW menu_window_observer()
MuttWindow::recalc() menu_recalc()
MuttWindow::repaint() menu_repaint()

Data

Data Description Links
Menus Menu name lookup table

Functions

Function Description Links
menu_recalc() Recalculate the Window data MuttWindow::recalc(), window_recalc
menu_repaint() Repaint the Window MuttWindow::repaint(), window_repaint
menu_wdata_free() Destroy a Menu Window MuttWindow::wdata_free(), window_wdata_free
menu_window_new() Create a new Menu Window