GUI present the user with a selectable list. More...
#include "config.h"
#include <stdbool.h>
#include <stdint.h>
#include "mutt/lib.h"
#include "type.h"
Go to the source code of this file.
Data Structures | |
struct | Menu |
Macros | |
#define | MENU_REDRAW_NO_FLAGS 0 |
No flags are set. | |
#define | MENU_REDRAW_INDEX (1 << 0) |
Redraw the index. | |
#define | MENU_REDRAW_MOTION (1 << 1) |
Redraw after moving the menu list. | |
#define | MENU_REDRAW_CURRENT (1 << 2) |
Redraw the current line of the menu. | |
#define | MENU_REDRAW_FULL (1 << 3) |
Redraw everything. | |
Typedefs | |
typedef uint8_t | MenuRedrawFlags |
Flags, e.g. MENU_REDRAW_INDEX. | |
Enumerations | |
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) |
Move the focus to the first entry in the menu. | |
MenuRedrawFlags | menu_half_down (struct Menu *menu) |
Move the focus down half a page in the menu. | |
MenuRedrawFlags | menu_half_up (struct Menu *menu) |
Move the focus up half a page in the menu. | |
MenuRedrawFlags | menu_last_entry (struct Menu *menu) |
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) |
Move the focus to the next item in the menu. | |
MenuRedrawFlags | menu_next_line (struct Menu *menu) |
Move the view down one line, keeping the selection the same. | |
MenuRedrawFlags | menu_next_page (struct Menu *menu) |
Move the focus to the next page in the menu. | |
MenuRedrawFlags | menu_prev_entry (struct Menu *menu) |
Move the focus to the previous item in the menu. | |
MenuRedrawFlags | menu_prev_line (struct Menu *menu) |
Move the view up one line, keeping the selection the same. | |
MenuRedrawFlags | menu_prev_page (struct Menu *menu) |
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. | |
void | menu_add_dialog_row (struct Menu *menu, const char *row) |
void | menu_cleanup (void) |
Free the saved Menu searches. | |
enum MenuType | menu_get_current_type (void) |
Get the type of the current Window. | |
void | menu_init (void) |
Initialise all the Menus. | |
struct MuttWindow * | menu_window_new (enum MenuType type, 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, int op) |
Perform a Menu function - Implements function_dispatcher_t -. | |
int | menu_tagging_dispatcher (struct MuttWindow *win, int op) |
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.
#define MENU_REDRAW_MOTION (1 << 1) |
#define MENU_REDRAW_CURRENT (1 << 2) |
typedef uint8_t MenuRedrawFlags |
Flags, e.g. MENU_REDRAW_INDEX.
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 363 of file move.c.
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 484 of file move.c.
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 464 of file move.c.
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 443 of file move.c.
MenuRedrawFlags menu_first_entry | ( | struct Menu * | menu | ) |
Move the focus to the first entry in the menu.
menu | Current Menu |
enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 410 of file move.c.
MenuRedrawFlags menu_half_down | ( | struct Menu * | menu | ) |
Move the focus down half a page in the menu.
menu | Current Menu |
enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 516 of file move.c.
MenuRedrawFlags menu_half_up | ( | struct Menu * | menu | ) |
Move the focus up half a page in the menu.
menu | Current Menu |
enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 506 of file move.c.
MenuRedrawFlags menu_last_entry | ( | struct Menu * | menu | ) |
Move the focus to the last entry in the menu.
menu | Current Menu |
enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 426 of file move.c.
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 343 of file move.c.
MenuRedrawFlags menu_next_entry | ( | struct Menu * | menu | ) |
Move the focus to the next item in the menu.
menu | Current Menu |
enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 396 of file move.c.
MenuRedrawFlags menu_next_line | ( | struct Menu * | menu | ) |
Move the view down one line, keeping the selection the same.
menu | Current Menu |
enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 539 of file move.c.
MenuRedrawFlags menu_next_page | ( | struct Menu * | menu | ) |
Move the focus to the next page in the menu.
menu | Current Menu |
enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 562 of file move.c.
MenuRedrawFlags menu_prev_entry | ( | struct Menu * | menu | ) |
Move the focus to the previous item in the menu.
menu | Current Menu |
enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 382 of file move.c.
MenuRedrawFlags menu_prev_line | ( | struct Menu * | menu | ) |
Move the view up one line, keeping the selection the same.
menu | Current Menu |
enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 526 of file move.c.
MenuRedrawFlags menu_prev_page | ( | struct Menu * | menu | ) |
Move the focus to the previous page in the menu.
menu | Current Menu |
enum | MenuRedrawFlags, e.g. MENU_REDRAW_CURRENT |
Definition at line 552 of file move.c.
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 333 of file move.c.
void menu_redraw_current | ( | struct Menu * | menu | ) |
Redraw the current menu.
menu | Current Menu |
Definition at line 445 of file draw.c.
void menu_redraw_full | ( | struct Menu * | menu | ) |
Force the redraw of the Menu.
menu | Current Menu |
Definition at line 309 of file draw.c.
void menu_redraw_index | ( | struct Menu * | menu | ) |
Force the redraw of the index.
menu | Current Menu |
Definition at line 323 of file draw.c.
void menu_redraw_motion | ( | struct Menu * | menu | ) |
Force the redraw of the list part of the menu.
menu | Current Menu |
Definition at line 387 of file draw.c.
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 480 of file draw.c.
void menu_add_dialog_row | ( | struct Menu * | menu, |
const char * | row | ||
) |
void menu_cleanup | ( | void | ) |
enum MenuType menu_get_current_type | ( | void | ) |
Get the type of the current Window.
enum | Menu Type, e.g. MENU_PAGER |
Definition at line 89 of file menu.c.
void menu_init | ( | void | ) |
struct MuttWindow * menu_window_new | ( | enum MenuType | type, |
struct ConfigSubset * | sub | ||
) |
Create a new Menu Window.
type | Menu type, e.g. MENU_PAGER |
sub | Config items |
ptr | New MuttWindow wrapping a Menu |
Definition at line 140 of file window.c.
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 174 of file menu.c.
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.
void menu_queue_redraw | ( | struct Menu * | menu, |
MenuRedrawFlags | redraw | ||
) |
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 254 of file move.c.
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.
void menu_adjust | ( | struct Menu * | menu | ) |
Reapply the config to the Menu.
menu | Menu |
Definition at line 319 of file move.c.