NeoMutt  2025-01-09-41-g086358
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
simple2.h
Go to the documentation of this file.
1
23#ifndef MUTT_COLOR_SIMPLE2_H
24#define MUTT_COLOR_SIMPLE2_H
25
26#include "config.h"
27#include <stdbool.h>
28#include "color.h"
29
30struct AttrColor;
31
32#define COLOR_COMPOSE(cid) (((cid) >= MT_COLOR_COMPOSE_HEADER) && ((cid) <= MT_COLOR_COMPOSE_SECURITY_SIGN))
33
34void simple_colors_init (void);
35void simple_colors_reset (void);
36void simple_colors_cleanup(void);
37
38struct AttrColor *simple_color_get (enum ColorId cid);
39bool simple_color_is_set (enum ColorId cid);
40void simple_color_reset (enum ColorId cid);
41struct AttrColor *simple_color_set (enum ColorId cid, struct AttrColor *ac_val);
42
43#endif /* MUTT_COLOR_SIMPLE2_H */
Color and attribute parsing.
ColorId
List of all coloured objects.
Definition: color.h:36
void simple_colors_init(void)
Initialise the simple colour definitions.
Definition: simple.c:47
struct AttrColor * simple_color_set(enum ColorId cid, struct AttrColor *ac_val)
Set the colour of a simple object.
Definition: simple.c:127
void simple_colors_cleanup(void)
Cleanup the simple colour definitions.
Definition: simple.c:83
void simple_colors_reset(void)
Reset the simple colour definitions.
Definition: simple.c:70
void simple_color_reset(enum ColorId cid)
Clear the colour of a simple object.
Definition: simple.c:150
bool simple_color_is_set(enum ColorId cid)
Is the object coloured?
Definition: simple.c:116
struct AttrColor * simple_color_get(enum ColorId cid)
Get the colour of an object by its ID.
Definition: simple.c:95
A curses colour and its attributes.
Definition: attr.h:66