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