NeoMutt  2025-12-11-872-g385a04
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
render.h
Go to the documentation of this file.
1
23
24#ifndef MUTT_EXPANDO_RENDER_H
25#define MUTT_EXPANDO_RENDER_H
26
27#include <stdint.h>
28
29struct Buffer;
30struct ExpandoNode;
31
45typedef uint8_t MuttFormatFlags;
46
59typedef void (*get_string_t)(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf);
60
73typedef long (*get_number_t)(const struct ExpandoNode *node, void *data, MuttFormatFlags flags);
74
89
90int node_render(const struct ExpandoNode *node, const struct ExpandoRenderCallback *erc,
91 struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags);
92
93#endif /* MUTT_EXPANDO_RENDER_H */
void(* get_string_t)(const struct ExpandoNode *node, void *data, MuttFormatFlags flags, struct Buffer *buf)
Definition render.h:59
long(* get_number_t)(const struct ExpandoNode *node, void *data, MuttFormatFlags flags)
Definition render.h:73
int node_render(const struct ExpandoNode *node, const struct ExpandoRenderCallback *erc, struct Buffer *buf, int max_cols, void *data, MuttFormatFlags flags)
Render a tree of ExpandoNodes into a string.
Definition render.c:45
MuttFormatFlag
Flags for expando_render(), e.g.
Definition render.h:36
@ MUTT_FORMAT_PLAIN
Do not prepend DISP_TO, DISP_CC ...
Definition render.h:43
@ MUTT_FORMAT_INDEX
This is a main index entry.
Definition render.h:42
@ MUTT_FORMAT_ARROWCURSOR
Reserve space for arrow_cursor.
Definition render.h:41
@ MUTT_FORMAT_STAT_FILE
Used by attach_format_str.
Definition render.h:40
@ MUTT_FORMAT_TREE
Draw the thread tree.
Definition render.h:39
@ MUTT_FORMAT_NONE
No flags are set.
Definition render.h:37
@ MUTT_FORMAT_FORCESUBJ
Print the subject even if unchanged.
Definition render.h:38
uint8_t MuttFormatFlags
Definition render.h:45
String manipulation buffer.
Definition buffer.h:36
Basic Expando Node.
Definition node.h:67
int uid
Unique ID, e.g. ExpandoDataAlias.
Definition render.h:84
int did
Domain ID, ExpandoDomain.
Definition render.h:83
get_string_t get_string
Callback function to get a string.
Definition render.h:86
get_number_t get_number
Callback function to get a number.
Definition render.h:87