GUI present the user with a selectable list. More...
Include dependency graph for lib.h:Go to the source code of this file.
Data Structures | |
| struct | Menu |
Typedefs | |
| typedef uint8_t | MenuRedrawFlags |
Enumerations | |
| enum | MenuRedrawFlag { MENU_REDRAW_NONE = 0 , MENU_REDRAW_INDEX = 1U << 0 , MENU_REDRAW_MOTION = 1U << 1 , MENU_REDRAW_CURRENT = 1U << 2 , MENU_REDRAW_FULL = 1U << 3 } |
| Flags, e.g. More... | |
| enum | ExpandoDataMenu { ED_MEN_PERCENTAGE } |
| Expando UIDs for Menus. More... | |
Functions | |
| MenuRedrawFlags | menu_bottom_page (struct Menu *menu) |
| Move the focus to the bottom of the page. | |
| MenuRedrawFlags | menu_current_bottom (struct Menu *menu) |
| Move the current selection to the bottom of the window. | |
| MenuRedrawFlags | menu_current_middle (struct Menu *menu) |
| Move the current selection to the centre of the window. | |
| MenuRedrawFlags | menu_current_top (struct Menu *menu) |
| Move the current selection to the top of the window. | |
| MenuRedrawFlags | menu_first_entry (struct Menu *menu, int count) |
| Move the focus to the first entry in the menu. | |
| MenuRedrawFlags | menu_half_down (struct Menu *menu, int count) |
| Move the focus down half a page in the menu. | |
| MenuRedrawFlags | menu_half_up (struct Menu *menu, int count) |
| Move the focus up half a page in the menu. | |
| MenuRedrawFlags | menu_last_entry (struct Menu *menu, int count) |
| Move the focus to the last entry in the menu. | |
| MenuRedrawFlags | menu_middle_page (struct Menu *menu) |
| Move the focus to the centre of the page. | |
| MenuRedrawFlags | menu_next_entry (struct Menu *menu, int count) |
| Move the focus to the next item in the menu. | |
| MenuRedrawFlags | menu_next_line (struct Menu *menu, int count) |
| Move the view down one line, keeping the selection the same. | |
| MenuRedrawFlags | menu_next_page (struct Menu *menu, int count) |
| Move the focus to the next page in the menu. | |
| MenuRedrawFlags | menu_prev_entry (struct Menu *menu, int count) |
| Move the focus to the previous item in the menu. | |
| MenuRedrawFlags | menu_prev_line (struct Menu *menu, int count) |
| Move the view up one line, keeping the selection the same. | |
| MenuRedrawFlags | menu_prev_page (struct Menu *menu, int count) |
| Move the focus to the previous page in the menu. | |
| MenuRedrawFlags | menu_top_page (struct Menu *menu) |
| Move the focus to the top of the page. | |
| void | menu_redraw_current (struct Menu *menu) |
| Redraw the current menu. | |
| void | menu_redraw_full (struct Menu *menu) |
| Force the redraw of the Menu. | |
| void | menu_redraw_index (struct Menu *menu) |
| Force the redraw of the index. | |
| void | menu_redraw_motion (struct Menu *menu) |
| Force the redraw of the list part of the menu. | |
| int | menu_redraw (struct Menu *menu) |
| Redraw the parts of the screen that have been flagged to be redrawn. | |
| enum MenuType | menu_get_current_type (void) |
| Get the type of the current Window. | |
| void | menu_init2 (char **search_buffers) |
| Initialise all the Menus. | |
| struct MuttWindow * | menu_window_new (const struct MenuDefinition *md, struct ConfigSubset *sub) |
| Create a new Menu Window. | |
| int | menu_get_index (struct Menu *menu) |
| Get the current selection in the Menu. | |
| MenuRedrawFlags | menu_set_index (struct Menu *menu, int index) |
| Set the current selection in the Menu. | |
| MenuRedrawFlags | menu_move_selection (struct Menu *menu, int index) |
| Move the selection, keeping within between [0, menu->max]. | |
| void | menu_queue_redraw (struct Menu *menu, MenuRedrawFlags redraw) |
| Queue a request for a redraw. | |
| MenuRedrawFlags | menu_move_view_relative (struct Menu *menu, int relative) |
| Move the view relatively. | |
| MenuRedrawFlags | menu_set_and_notify (struct Menu *menu, int top, int index) |
| Set the Menu selection/view and notify others. | |
| void | menu_adjust (struct Menu *menu) |
| Reapply the config to the Menu. | |
| int | menu_function_dispatcher (struct MuttWindow *win, const struct KeyEvent *event) |
| Perform a Menu function - Implements function_dispatcher_t -. | |
| int | menu_tagging_dispatcher (struct MuttWindow *win, const struct KeyEvent *event) |
| Perform tagging operations on the Menu - Implements function_dispatcher_t -. | |
GUI present the user with a selectable list.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file lib.h.
| typedef uint8_t MenuRedrawFlags |
| enum MenuRedrawFlag |
Flags, e.g.
Definition at line 58 of file lib.h.
| enum ExpandoDataMenu |
| MenuRedrawFlags menu_bottom_page | ( | struct Menu * | menu | ) |
Move the focus to the bottom of the page.
| menu | Current Menu |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 369 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_current_bottom | ( | struct Menu * | menu | ) |
Move the current selection to the bottom of the window.
| menu | Current Menu |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 506 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_current_middle | ( | struct Menu * | menu | ) |
Move the current selection to the centre of the window.
| menu | Current Menu |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 486 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_current_top | ( | struct Menu * | menu | ) |
Move the current selection to the top of the window.
| menu | Current Menu |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 465 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_first_entry | ( | struct Menu * | menu, |
| int | count ) |
Move the focus to the first entry in the menu.
| menu | Current Menu |
| count | Jump to line N (1-based) if >0, otherwise go to first entry |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 425 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_half_down | ( | struct Menu * | menu, |
| int | count ) |
Move the focus down half a page in the menu.
| menu | Current Menu |
| count | Number of half-pages to move (0 = move by 1) |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 540 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_half_up | ( | struct Menu * | menu, |
| int | count ) |
Move the focus up half a page in the menu.
| menu | Current Menu |
| count | Number of half-pages to move (0 = move by 1) |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 529 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_last_entry | ( | struct Menu * | menu, |
| int | count ) |
Move the focus to the last entry in the menu.
| menu | Current Menu |
| count | Jump to line N (1-based) if >0, otherwise go to last entry |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 445 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_middle_page | ( | struct Menu * | menu | ) |
Move the focus to the centre of the page.
| menu | Current Menu |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 349 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_next_entry | ( | struct Menu * | menu, |
| int | count ) |
Move the focus to the next item in the menu.
| menu | Current Menu |
| count | Number of entries to move (0 = move by 1, show warning at boundary) |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 407 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_next_line | ( | struct Menu * | menu, |
| int | count ) |
Move the view down one line, keeping the selection the same.
| menu | Current Menu |
| count | Number of lines to scroll (0 = scroll by 1, show warning at boundary) |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 565 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_next_page | ( | struct Menu * | menu, |
| int | count ) |
Move the focus to the next page in the menu.
| menu | Current Menu |
| count | Number of pages to move (0 = move by 1) |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 590 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_prev_entry | ( | struct Menu * | menu, |
| int | count ) |
Move the focus to the previous item in the menu.
| menu | Current Menu |
| count | Number of entries to move (0 = move by 1, show warning at boundary) |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 389 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_prev_line | ( | struct Menu * | menu, |
| int | count ) |
Move the view up one line, keeping the selection the same.
| menu | Current Menu |
| count | Number of lines to scroll (0 = scroll by 1, show warning at boundary) |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 551 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_prev_page | ( | struct Menu * | menu, |
| int | count ) |
Move the focus to the previous page in the menu.
| menu | Current Menu |
| count | Number of pages to move (0 = move by 1) |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 579 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_top_page | ( | struct Menu * | menu | ) |
Move the focus to the top of the page.
| menu | Current Menu |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 339 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void menu_redraw_current | ( | struct Menu * | menu | ) |
Redraw the current menu.
| menu | Current Menu |
Definition at line 464 of file draw.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void menu_redraw_full | ( | struct Menu * | menu | ) |
Force the redraw of the Menu.
| menu | Current Menu |
Definition at line 327 of file draw.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void menu_redraw_index | ( | struct Menu * | menu | ) |
Force the redraw of the index.
| menu | Current Menu |
Definition at line 341 of file draw.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void menu_redraw_motion | ( | struct Menu * | menu | ) |
Force the redraw of the list part of the menu.
| menu | Current Menu |
Definition at line 405 of file draw.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int menu_redraw | ( | struct Menu * | menu | ) |
Redraw the parts of the screen that have been flagged to be redrawn.
| menu | Menu to redraw |
| OP_NULL | Menu was redrawn |
| OP_REDRAW | Full redraw required |
Definition at line 499 of file draw.c.
Here is the call graph for this function:
Here is the caller graph for this function:| enum MenuType menu_get_current_type | ( | void | ) |
Get the type of the current Window.
| enum | Menu Type, e.g. MENU_PAGER |
Definition at line 82 of file menu.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void menu_init2 | ( | char ** | search_buffers | ) |
| struct MuttWindow * menu_window_new | ( | const struct MenuDefinition * | md, |
| struct ConfigSubset * | sub ) |
Create a new Menu Window.
| md | Menu Definition |
| sub | Config items |
| ptr | New MuttWindow wrapping a Menu |
Definition at line 140 of file window.c.
Here is the call graph for this function:
Here is the caller graph for this function:| int menu_get_index | ( | struct Menu * | menu | ) |
| MenuRedrawFlags menu_set_index | ( | struct Menu * | menu, |
| int | index ) |
Set the current selection in the Menu.
| menu | Menu |
| index | Item to select |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_INDEX |
Definition at line 169 of file menu.c.
Here is the call graph for this function:| MenuRedrawFlags menu_move_selection | ( | struct Menu * | menu, |
| int | index ) |
Move the selection, keeping within between [0, menu->max].
| menu | Menu |
| index | New selection |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 236 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void menu_queue_redraw | ( | struct Menu * | menu, |
| MenuRedrawFlags | redraw ) |
Queue a request for a redraw.
| menu | Menu |
| redraw | Item to redraw, e.g. MENU_REDRAW_CURRENT |
Definition at line 179 of file menu.c.
| MenuRedrawFlags menu_move_view_relative | ( | struct Menu * | menu, |
| int | relative ) |
Move the view relatively.
| menu | Menu |
| relative | Relative number of lines to move |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 257 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| MenuRedrawFlags menu_set_and_notify | ( | struct Menu * | menu, |
| int | top, | ||
| int | index ) |
Set the Menu selection/view and notify others.
| menu | Menu |
| top | Index of item at the top of the view |
| index | Selected item |
| enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 66 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void menu_adjust | ( | struct Menu * | menu | ) |
Reapply the config to the Menu.
| menu | Menu |
Definition at line 325 of file move.c.
Here is the call graph for this function:
Here is the caller graph for this function: