NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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()

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() Free the Menu MuttWindow::wdata_free(), window_wdata_free
menu_window_new() Create a new Menu Window