NeoMutt
2025-12-11-1009-ga75d9e
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
msgwin_wdata.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_GUI_MSGWIN_WDATA_H
24
#define MUTT_GUI_MSGWIN_WDATA_H
25
26
#include "
mutt/lib.h
"
27
28
struct
MuttWindow
;
29
31
#define MSGWIN_MAX_ROWS 3
32
39
struct
MwChar
40
{
41
unsigned
char
width
;
42
unsigned
char
bytes
;
43
const
struct
AttrColor
*
ac_color
;
44
};
45
ARRAY_HEAD
(MwCharArray,
struct
MwChar
);
46
54
struct
MwChunk
55
{
56
unsigned
short
offset
;
57
unsigned
short
bytes
;
58
unsigned
short
width
;
59
const
struct
AttrColor
*
ac_color
;
60
};
61
ARRAY_HEAD
(MwChunkArray,
struct
MwChunk
);
62
66
struct
MsgWinWindowData
67
{
68
struct
Buffer
*
text
;
69
struct
MwCharArray
chars
;
70
struct
MwChunkArray
rows
[
MSGWIN_MAX_ROWS
];
71
int
row
;
72
int
col
;
73
};
74
75
void
msgwin_wdata_free
(
struct
MuttWindow
*win,
void
**ptr);
76
struct
MsgWinWindowData
*
msgwin_wdata_new
(
void
);
77
78
#endif
/* MUTT_GUI_MSGWIN_WDATA_H */
ARRAY_HEAD
#define ARRAY_HEAD(name, T)
Define a named struct for arrays of elements of a certain type.
Definition
array.h:47
msgwin_wdata_free
void msgwin_wdata_free(struct MuttWindow *win, void **ptr)
Free the private data - Implements MuttWindow::wdata_free() -.
Definition
msgwin_wdata.c:37
msgwin_wdata_new
struct MsgWinWindowData * msgwin_wdata_new(void)
Create new private data for the Message Window.
Definition
msgwin_wdata.c:60
MSGWIN_MAX_ROWS
#define MSGWIN_MAX_ROWS
Maximum number of rows to show in the message window.
Definition
msgwin_wdata.h:31
lib.h
Convenience wrapper for the library headers.
AttrColor
A curses colour and its attributes.
Definition
attr.h:65
Buffer
String manipulation buffer.
Definition
buffer.h:36
MsgWinWindowData
Message Window private Window data.
Definition
msgwin_wdata.h:67
MsgWinWindowData::text
struct Buffer * text
Cached display string.
Definition
msgwin_wdata.h:68
MsgWinWindowData::chars
struct MwCharArray chars
Text: Breakdown of bytes and widths.
Definition
msgwin_wdata.h:69
MsgWinWindowData::rows
struct MwChunkArray rows[MSGWIN_MAX_ROWS]
String byte counts for each row.
Definition
msgwin_wdata.h:70
MsgWinWindowData::row
int row
Cursor row.
Definition
msgwin_wdata.h:71
MsgWinWindowData::col
int col
Cursor column.
Definition
msgwin_wdata.h:72
MuttWindow
Definition
mutt_window.h:129
MwChar
Description of a single character.
Definition
msgwin_wdata.h:40
MwChar::ac_color
const struct AttrColor * ac_color
Colour to use.
Definition
msgwin_wdata.h:43
MwChar::width
unsigned char width
Width in screen cells.
Definition
msgwin_wdata.h:41
MwChar::bytes
unsigned char bytes
Number of bytes to represent.
Definition
msgwin_wdata.h:42
MwChunk
A block of characters of one colour.
Definition
msgwin_wdata.h:55
MwChunk::bytes
unsigned short bytes
Number of bytes in the row.
Definition
msgwin_wdata.h:57
MwChunk::width
unsigned short width
Width of row in screen cells.
Definition
msgwin_wdata.h:58
MwChunk::offset
unsigned short offset
Offset into MsgWinWindowData.text.
Definition
msgwin_wdata.h:56
MwChunk::ac_color
const struct AttrColor * ac_color
Colour to use.
Definition
msgwin_wdata.h:59