NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
Loading...
Searching...
No Matches
simple2.h
Go to the documentation of this file.
1
22
23
#ifndef MUTT_COLOR_SIMPLE2_H
24
#define MUTT_COLOR_SIMPLE2_H
25
26
#include <stdbool.h>
27
#include "
color.h
"
28
29
struct
AttrColor
;
30
31
#define COLOR_COMPOSE(cid) (((cid) >= MT_COLOR_COMPOSE_HEADER) && ((cid) <= MT_COLOR_COMPOSE_SECURITY_SIGN))
32
33
void
simple_colors_init
(
struct
AttrColor
*simple_colors);
34
void
simple_colors_reset
(
struct
AttrColor
*simple_colors);
35
void
simple_colors_cleanup
(
struct
AttrColor
*simple_colors);
36
37
struct
AttrColor
*
simple_color_get
(
enum
ColorId
cid);
38
bool
simple_color_is_set
(
enum
ColorId
cid);
39
void
simple_color_reset
(
enum
ColorId
cid);
40
struct
AttrColor
*
simple_color_set
(
enum
ColorId
cid,
struct
AttrColor
*ac_val);
41
42
#endif
/* MUTT_COLOR_SIMPLE2_H */
color.h
Color and attribute parsing.
ColorId
ColorId
List of all coloured objects.
Definition
color.h:35
simple_colors_init
void simple_colors_init(struct AttrColor *simple_colors)
Initialise the simple colour definitions.
Definition
simple.c:48
simple_color_set
struct AttrColor * simple_color_set(enum ColorId cid, struct AttrColor *ac_val)
Set the colour of a simple object.
Definition
simple.c:131
simple_colors_cleanup
void simple_colors_cleanup(struct AttrColor *simple_colors)
Cleanup the simple colour definitions.
Definition
simple.c:86
simple_color_reset
void simple_color_reset(enum ColorId cid)
Clear the colour of a simple object.
Definition
simple.c:155
simple_color_is_set
bool simple_color_is_set(enum ColorId cid)
Is the object coloured?
Definition
simple.c:120
simple_colors_reset
void simple_colors_reset(struct AttrColor *simple_colors)
Reset the simple colour definitions.
Definition
simple.c:72
simple_color_get
struct AttrColor * simple_color_get(enum ColorId cid)
Get the colour of an object by its ID.
Definition
simple.c:98
AttrColor
A curses colour and its attributes.
Definition
attr.h:65