#include "config.h"
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
#include <wchar.h>
#include "mutt/lib.h"
#include "config/lib.h"
#include "email/lib.h"
#include "gui/lib.h"
#include "lib.h"
#include "color/lib.h"
#include "index/lib.h"
#include "pattern/lib.h"
#include "mutt_thread.h"
#include "mview.h"
Go to the source code of this file.
Functions | |
static const struct AttrColor * | get_color (int index, unsigned char *s) |
Choose a colour for a line of the index. | |
static void | print_enriched_string (struct MuttWindow *win, int index, const struct AttrColor *ac_def, struct AttrColor *ac_ind, struct Buffer *buf, struct ConfigSubset *sub) |
Display a string with embedded colours and graphics. | |
static void | menu_pad_string (struct Menu *menu, struct Buffer *buf) |
Pad a string with spaces for display in the 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. | |
void | menu_redraw_current (struct Menu *menu) |
Redraw the current menu. | |
int | menu_redraw (struct Menu *menu) |
Redraw the parts of the screen that have been flagged to be redrawn. | |
Paint the Menu.
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 draw.c.
|
static |
Choose a colour for a line of the index.
index | Index number |
s | String of embedded colour codes |
num | Colour pair in an integer |
Text is coloured by inserting special characters into the string, e.g. MT_COLOR_INDEX_AUTHOR
Definition at line 55 of file draw.c.
|
static |
Display a string with embedded colours and graphics.
win | Window |
index | Index number |
ac_def | Default colour for the line |
ac_ind | Indicator colour for the line |
buf | String of embedded colour codes |
sub | Config items |
Definition at line 109 of file draw.c.
Pad a string with spaces for display in the Menu.
Definition at line 287 of file draw.c.
void menu_redraw_full | ( | struct Menu * | menu | ) |
Force the redraw of the Menu.
menu | Current Menu |
Definition at line 308 of file draw.c.
void menu_redraw_index | ( | struct Menu * | menu | ) |
Force the redraw of the index.
menu | Current Menu |
Definition at line 322 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 386 of file draw.c.
void menu_redraw_current | ( | struct Menu * | menu | ) |
Redraw the current menu.
menu | Current Menu |
Definition at line 444 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 479 of file draw.c.