NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
qstyle.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_COLOR_QSTYLE_H
24
#define MUTT_COLOR_QSTYLE_H
25
26
#include <stdbool.h>
27
#include <stddef.h>
28
54
struct
QuoteStyle
55
{
56
int
quote_n
;
57
struct
AttrColor
*
attr_color
;
58
char
*
prefix
;
59
size_t
prefix_len
;
60
struct
QuoteStyle
*
prev
, *
next
;
61
struct
QuoteStyle
*
up
, *
down
;
62
};
63
64
struct
QuoteStyle
*
qstyle_classify
(
struct
QuoteStyle
**quote_list,
const
char
*qptr,
size_t
length,
bool
*force_redraw,
int
*q_level);
65
void
qstyle_free_tree
(
struct
QuoteStyle
**quote_list);
66
void
qstyle_recolor
(
struct
QuoteStyle
*quote_list);
67
68
#endif
/* MUTT_COLOR_QSTYLE_H */
qstyle_classify
struct QuoteStyle * qstyle_classify(struct QuoteStyle **quote_list, const char *qptr, size_t length, bool *force_redraw, int *q_level)
Find a style for a string.
Definition
qstyle.c:136
qstyle_recolor
void qstyle_recolor(struct QuoteStyle *quote_list)
Recolour quotes after colour changes.
Definition
qstyle.c:468
qstyle_free_tree
void qstyle_free_tree(struct QuoteStyle **quote_list)
Free an entire tree of QuoteStyle.
Definition
qstyle.c:58
AttrColor
A curses colour and its attributes.
Definition
attr.h:65
QuoteStyle
Style of quoted text.
Definition
qstyle.h:55
QuoteStyle::attr_color
struct AttrColor * attr_color
Colour and attribute of the text.
Definition
qstyle.h:57
QuoteStyle::next
struct QuoteStyle * next
Different quoting styles at the same level.
Definition
qstyle.h:60
QuoteStyle::up
struct QuoteStyle * up
Definition
qstyle.h:61
QuoteStyle::prefix_len
size_t prefix_len
Length of the prefix string.
Definition
qstyle.h:59
QuoteStyle::prev
struct QuoteStyle * prev
Definition
qstyle.h:60
QuoteStyle::prefix
char * prefix
Prefix string, e.g. "> ".
Definition
qstyle.h:58
QuoteStyle::down
struct QuoteStyle * down
Parent (less quoted) and child (more quoted) levels.
Definition
qstyle.h:61
QuoteStyle::quote_n
int quote_n
The quoteN colour index for this level.
Definition
qstyle.h:56