NeoMutt  2025-09-05-55-g97fc89
Teaching an old dog new tricks
DOXYGEN
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
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() -.
struct MsgWinWindowData * msgwin_wdata_new(void)
Create new private data for the Message Window.
#define MSGWIN_MAX_ROWS
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.
struct Buffer * text
Cached display string.
struct MwCharArray chars
Text: Breakdown of bytes and widths.
struct MwChunkArray rows[MSGWIN_MAX_ROWS]
String byte counts for each row.
int row
Cursor row.
int col
Cursor column.
Description of a single character.
const struct AttrColor * ac_color
Colour to use.
unsigned char width
Width in screen cells.
unsigned char bytes
Number of bytes to represent.
A block of characters of one colour.
unsigned short bytes
Number of bytes in the row.
unsigned short width
Width of row in screen cells.
unsigned short offset
Offset into MsgWinWindowData.text.
const struct AttrColor * ac_color
Colour to use.