NeoMutt  2021-02-05-666-ge300cd
Teaching an old dog new tricks

Redraw the menu. More...

+ Collaboration diagram for custom_redraw():


static void index_custom_redraw (struct Menu *menu)
 Redraw the index - Implements Menu::custom_redraw() -. More...

Detailed Description

Redraw the menu.

menuMenu to redraw

Function Documentation

◆ index_custom_redraw()

static void index_custom_redraw ( struct Menu menu)

Redraw the index - Implements Menu::custom_redraw() -.

Definition at line 1001 of file dlg_index.c.

1002 {
1003  if (menu->redraw & MENU_REDRAW_FULL)
1004  menu_redraw_full(menu);
1006  struct IndexPrivateData *priv = menu->mdata;
1007  struct IndexSharedData *shared = priv->shared;
1008  struct Mailbox *m = shared->mailbox;
1009  const int index = menu_get_index(menu);
1010  if (m && m->emails && (index < m->vcount))
1011  {
1012  if (menu->redraw & MENU_REDRAW_INDEX)
1013  {
1014  menu_redraw_index(menu);
1015  }
1016  else if (menu->redraw & MENU_REDRAW_MOTION)
1017  menu_redraw_motion(menu);
1018  else if (menu->redraw & MENU_REDRAW_CURRENT)
1019  menu_redraw_current(menu);
1020  }
1022  menu->redraw = MENU_REDRAW_NO_FLAGS;
1023  mutt_debug(LL_DEBUG5, "repaint done\n");
1024 }
struct Email ** emails
Array of Emails.
Definition: mailbox.h:99
struct IndexSharedData * shared
Shared Index data.
Definition: private_data.h:43
Private state data for the Index.
Definition: private_data.h:34
void menu_redraw_motion(struct Menu *menu)
Force the redraw of the list part of the menu.
Definition: draw.c:427
MenuRedrawFlags redraw
When to redraw the screen.
Definition: lib.h:72
Data shared between Index, Pager and Sidebar.
Definition: shared_data.h:36
int vcount
The number of virtual messages.
Definition: mailbox.h:102
void * mdata
Private data.
Definition: lib.h:155
A mailbox.
Definition: mailbox.h:81
#define mutt_debug(LEVEL,...)
Definition: logging.h:85
void menu_redraw_index(struct Menu *menu)
Force the redraw of the index.
Definition: draw.c:371
void menu_redraw_full(struct Menu *menu)
Force the redraw of the Menu.
Definition: draw.c:337
void menu_redraw_current(struct Menu *menu)
Redraw the current menu.
Definition: draw.c:490
struct Mailbox * mailbox
Current Mailbox.
Definition: shared_data.h:41
Log at debug level 5.
Definition: logging.h:44
+ Here is the call graph for this function:
+ Here is the caller graph for this function: