GUI selectable list of items. More...
#include "mutt_menu.h"
Public Member Functions | |
ARRAY_HEAD (, char *) dialog | |
Dialog lines themselves. More... | |
Data Fields | |
const char * | title |
Title of this menu. More... | |
void * | mdata |
Extra data for the current menu. More... | |
int | current |
Current entry. More... | |
int | max |
Number of entries in the menu. More... | |
MuttRedrawFlags | redraw |
When to redraw the screen. More... | |
enum MenuType | type |
Menu definition for keymap entries. More... | |
int | pagelen |
Number of entries per screen. More... | |
bool | tagprefix: 1 |
bool | is_mailbox_list: 1 |
struct MuttWindow * | win_index |
struct MuttWindow * | win_ibar |
char * | prompt |
Prompt for user, similar to mutt_multi_choice. More... | |
char * | keys |
Keys used in the prompt. More... | |
int | top |
Entry that is the top of the current page. More... | |
int | oldcurrent |
For driver use only. More... | |
int | search_dir |
Direction of search. More... | |
int | tagged |
Number of tagged entries. More... | |
bool | custom_search: 1 |
The menu implements its own non-Menusearch()-compatible search, trickle OP_SEARCH*. More... | |
void(* | make_entry )(char *buf, size_t buflen, struct Menu *menu, int line) |
Format a item for a menu. More... | |
int(* | search )(struct Menu *menu, regex_t *rx, int line) |
Search a menu for a item matching a regex. More... | |
int(* | tag )(struct Menu *menu, int sel, int act) |
Tag some menu items. More... | |
int(* | color )(int line) |
Calculate the colour for a line of the menu. More... | |
void(* | custom_redraw )(struct Menu *menu) |
Redraw the menu. More... | |
void * | redraw_data |
GUI selectable list of items.
Definition at line 52 of file mutt_menu.h.
Menu::ARRAY_HEAD | ( | char * | ) |
Dialog lines themselves.
const char* Menu::title |
Title of this menu.
Definition at line 54 of file mutt_menu.h.
void* Menu::mdata |
Extra data for the current menu.
Definition at line 55 of file mutt_menu.h.
int Menu::current |
Current entry.
Definition at line 56 of file mutt_menu.h.
int Menu::max |
Number of entries in the menu.
Definition at line 57 of file mutt_menu.h.
MuttRedrawFlags Menu::redraw |
When to redraw the screen.
Definition at line 58 of file mutt_menu.h.
enum MenuType Menu::type |
Menu definition for keymap entries.
Definition at line 59 of file mutt_menu.h.
int Menu::pagelen |
Number of entries per screen.
Definition at line 60 of file mutt_menu.h.
bool Menu::tagprefix |
Definition at line 61 of file mutt_menu.h.
bool Menu::is_mailbox_list |
Definition at line 62 of file mutt_menu.h.
struct MuttWindow* Menu::win_index |
Definition at line 63 of file mutt_menu.h.
struct MuttWindow* Menu::win_ibar |
Definition at line 64 of file mutt_menu.h.
char* Menu::prompt |
Prompt for user, similar to mutt_multi_choice.
Definition at line 71 of file mutt_menu.h.
char* Menu::keys |
Keys used in the prompt.
Definition at line 72 of file mutt_menu.h.
int Menu::top |
Entry that is the top of the current page.
Definition at line 75 of file mutt_menu.h.
int Menu::oldcurrent |
For driver use only.
Definition at line 76 of file mutt_menu.h.
int Menu::search_dir |
Direction of search.
Definition at line 77 of file mutt_menu.h.
int Menu::tagged |
Number of tagged entries.
Definition at line 78 of file mutt_menu.h.
bool Menu::custom_search |
The menu implements its own non-Menusearch()-compatible search, trickle OP_SEARCH*.
Definition at line 79 of file mutt_menu.h.
void(* Menu::make_entry) (char *buf, size_t buflen, struct Menu *menu, int line) |
int(* Menu::search) (struct Menu *menu, regex_t *rx, int line) |
Search a menu for a item matching a regex.
0 | Success |
>0 | Error, e.g. REG_NOMATCH |
Definition at line 98 of file mutt_menu.h.
int(* Menu::tag) (struct Menu *menu, int sel, int act) |
Tag some menu items.
menu | Menu to tag |
sel | Current selection |
act | Action: 0 untag, 1 tag, -1 toggle |
num | Net change in number of tagged attachments |
Definition at line 107 of file mutt_menu.h.
int(* Menu::color) (int line) |
Calculate the colour for a line of the menu.
line | Menu line number |
>0 | Colour pair in an integer |
0 | No colour |
Definition at line 115 of file mutt_menu.h.
void(* Menu::custom_redraw) (struct Menu *menu) |
void* Menu::redraw_data |
Definition at line 123 of file mutt_menu.h.