NeoMutt  2025-12-11-694-ga89709
Teaching an old dog new tricks
DOXYGEN
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
55{
56 int quote_n;
58 char *prefix;
59 size_t prefix_len;
60 struct QuoteStyle *prev, *next;
61 struct QuoteStyle *up, *down;
62};
63
64struct QuoteStyle *qstyle_classify (struct QuoteStyle **quote_list, const char *qptr, size_t length, bool *force_redraw, int *q_level);
65void qstyle_free_tree(struct QuoteStyle **quote_list);
66void qstyle_recolor (struct QuoteStyle *quote_list);
67
68#endif /* MUTT_COLOR_QSTYLE_H */
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
void qstyle_recolor(struct QuoteStyle *quote_list)
Recolour quotes after colour changes.
Definition qstyle.c:464
void qstyle_free_tree(struct QuoteStyle **quote_list)
Free an entire tree of QuoteStyle.
Definition qstyle.c:58
A curses colour and its attributes.
Definition attr.h:65
Style of quoted text.
Definition qstyle.h:55
struct AttrColor * attr_color
Colour and attribute of the text.
Definition qstyle.h:57
struct QuoteStyle * next
Different quoting styles at the same level.
Definition qstyle.h:60
struct QuoteStyle * up
Definition qstyle.h:61
size_t prefix_len
Length of the prefix string.
Definition qstyle.h:59
struct QuoteStyle * prev
Definition qstyle.h:60
char * prefix
Prefix string, e.g. "> ".
Definition qstyle.h:58
struct QuoteStyle * down
Parent (less quoted) and child (more quoted) levels.
Definition qstyle.h:61
int quote_n
The quoteN colour index for this level.
Definition qstyle.h:56