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.
Name | Type | Constructor |
---|---|---|
Menu | WT_MENU | menu_window() |
Parent
The Menu Window has many possible parents, e.g.
Children
The Menu Window stores it state info in struct Menu. Users of the Menu Window can store custom data in Menu::mdata.
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() |
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 |