NeoMutt
2025-12-11-1009-ga75d9e
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
node_padding.h
Go to the documentation of this file.
1
23
24
#ifndef MUTT_EXPANDO_NODE_PADDING_H
25
#define MUTT_EXPANDO_NODE_PADDING_H
26
27
#include "
definition.h
"
28
29
struct
ExpandoFormat
;
30
struct
ExpandoNode
;
31
struct
ExpandoParseError
;
32
43
enum
ExpandoPadType
44
{
45
EPT_FILL_EOL
,
46
EPT_HARD_FILL
,
47
EPT_SOFT_FILL
,
48
};
49
55
enum
ENPad
56
{
57
ENP_LEFT
,
58
ENP_RIGHT
,
59
};
60
64
struct
NodePaddingPrivate
65
{
66
enum
ExpandoPadType
pad_type
;
67
};
68
69
struct
ExpandoNode
*
node_padding_parse
(
const
char
*str,
struct
ExpandoFormat
*fmt,
int
did
,
int
uid
,
ExpandoParserFlags
flags,
const
char
**parsed_until,
struct
ExpandoParseError
*err);
70
71
void
node_padding_repad
(
struct
ExpandoNode
**parent);
72
73
#endif
/* MUTT_EXPANDO_NODE_PADDING_H */
definition.h
Define an Expando format string.
ExpandoParserFlags
uint8_t ExpandoParserFlags
Definition
definition.h:41
node_padding_parse
struct ExpandoNode * node_padding_parse(const char *str, struct ExpandoFormat *fmt, int did, int uid, ExpandoParserFlags flags, const char **parsed_until, struct ExpandoParseError *err)
Parse a Padding Expando - Implements ExpandoDefinition::parse() -.
Definition
node_padding.c:234
node_padding_repad
void node_padding_repad(struct ExpandoNode **parent)
Rearrange Padding in a tree of ExpandoNodes.
Definition
node_padding.c:295
ENPad
ENPad
Names for the Padding's children.
Definition
node_padding.h:56
ENP_LEFT
@ ENP_LEFT
Index of Left-Hand Nodes.
Definition
node_padding.h:57
ENP_RIGHT
@ ENP_RIGHT
Index of Right-Hand Nodes.
Definition
node_padding.h:58
ExpandoPadType
ExpandoPadType
Padding type.
Definition
node_padding.h:44
EPT_FILL_EOL
@ EPT_FILL_EOL
Fill to the end-of-line.
Definition
node_padding.h:45
EPT_SOFT_FILL
@ EPT_SOFT_FILL
Soft-fill: right-hand-side will be truncated.
Definition
node_padding.h:47
EPT_HARD_FILL
@ EPT_HARD_FILL
Hard-fill: left-hand-side will be truncated.
Definition
node_padding.h:46
ExpandoFormat
Formatting information for an Expando.
Definition
node.h:53
ExpandoNode
Basic Expando Node.
Definition
node.h:67
ExpandoNode::uid
int uid
Unique ID, e.g. ED_EMA_SIZE.
Definition
node.h:70
ExpandoNode::did
int did
Domain ID, e.g. ED_EMAIL.
Definition
node.h:69
ExpandoParseError
Buffer for parsing errors.
Definition
parse.h:37
NodePaddingPrivate
Private data for a Padding Node -.
Definition
node_padding.h:65
NodePaddingPrivate::pad_type
enum ExpandoPadType pad_type
Padding type.
Definition
node_padding.h:66