NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
msgwin.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_GUI_MSGWIN_H
24
#define MUTT_GUI_MSGWIN_H
25
26
#include <stdbool.h>
27
#include "
color/lib.h
"
28
29
struct
MuttWindow
;
30
31
void
msgwin_clear_text
(
struct
MuttWindow
*win);
32
bool
msgwin_has_text
(
void
);
33
struct
MuttWindow
*
msgwin_new
(
bool
interactive);
34
void
msgwin_add_text
(
struct
MuttWindow
*win,
const
char
*text,
const
struct
AttrColor
*ac_color);
35
void
msgwin_add_text_n
(
struct
MuttWindow
*win,
const
char
*text,
int
bytes,
const
struct
AttrColor
*ac_color);
36
const
char
*
msgwin_get_text
(
struct
MuttWindow
*win);
37
struct
MuttWindow
*
msgwin_get_window
(
void
);
38
void
msgwin_set_rows
(
struct
MuttWindow
*win,
short
rows);
39
void
msgwin_set_text
(
struct
MuttWindow
*win,
const
char
*text,
enum
ColorId
color);
40
41
#endif
/* MUTT_GUI_MSGWIN_H */
lib.h
Color and attribute parsing.
ColorId
ColorId
List of all coloured objects.
Definition
color.h:35
msgwin_has_text
bool msgwin_has_text(void)
Does the Message Window currently hold any text?
Definition
msgwin.c:611
msgwin_new
struct MuttWindow * msgwin_new(bool interactive)
Create the Message Window.
Definition
msgwin.c:381
msgwin_clear_text
void msgwin_clear_text(struct MuttWindow *win)
Clear the text in the Message Window.
Definition
msgwin.c:556
msgwin_add_text
void msgwin_add_text(struct MuttWindow *win, const char *text, const struct AttrColor *ac_color)
Add text to the Message Window.
Definition
msgwin.c:431
msgwin_get_window
struct MuttWindow * msgwin_get_window(void)
Get the Message Window pointer.
Definition
msgwin.c:599
msgwin_add_text_n
void msgwin_add_text_n(struct MuttWindow *win, const char *text, int bytes, const struct AttrColor *ac_color)
Add some text to the Message Window.
Definition
msgwin.c:462
msgwin_set_text
void msgwin_set_text(struct MuttWindow *win, const char *text, enum ColorId color)
Set the text for the Message Window.
Definition
msgwin.c:502
msgwin_get_text
const char * msgwin_get_text(struct MuttWindow *win)
Get the text from the Message Window.
Definition
msgwin.c:413
msgwin_set_rows
void msgwin_set_rows(struct MuttWindow *win, short rows)
Resize the Message Window.
Definition
msgwin.c:310
AttrColor
A curses colour and its attributes.
Definition
attr.h:65
MuttWindow
Definition
mutt_window.h:129