NeoMutt  2024-12-12-14-g7b49f7
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
qstyle.h
Go to the documentation of this file.
1
23#ifndef MUTT_COLOR_QSTYLE_H
24#define MUTT_COLOR_QSTYLE_H
25
26#include "config.h"
27#include <stdbool.h>
28#include <stddef.h>
29
56{
57 int quote_n;
59 char *prefix;
60 size_t prefix_len;
61 struct QuoteStyle *prev, *next;
62 struct QuoteStyle *up, *down;
63};
64
65struct QuoteStyle *qstyle_classify (struct QuoteStyle **quote_list, const char *qptr, size_t length, bool *force_redraw, int *q_level);
66void qstyle_free_tree(struct QuoteStyle **quote_list);
67void qstyle_recolor (struct QuoteStyle *quote_list);
68
69#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:66
Style of quoted text.
Definition: qstyle.h:56
struct AttrColor * attr_color
Colour and attribute of the text.
Definition: qstyle.h:58
struct QuoteStyle * next
Different quoting styles at the same level.
Definition: qstyle.h:61
struct QuoteStyle * up
Definition: qstyle.h:62
size_t prefix_len
Length of the prefix string.
Definition: qstyle.h:60
struct QuoteStyle * prev
Definition: qstyle.h:61
char * prefix
Prefix string, e.g. "> ".
Definition: qstyle.h:59
struct QuoteStyle * down
Parent (less quoted) and child (more quoted) levels.
Definition: qstyle.h:62
int quote_n
The quoteN colour index for this level.
Definition: qstyle.h:57