NeoMutt  2021-10-29-43-g6b8931
Teaching an old dog new tricks
DOXYGEN
lib.h
Go to the documentation of this file.
1 
38 #ifndef MUTT_COLOR_LIB_H
39 #define MUTT_COLOR_LIB_H
40 
41 #include "config.h"
42 #include <stdbool.h>
43 #include <stdint.h>
44 #include "mutt/lib.h"
45 #include "core/lib.h"
46 
47 // IWYU pragma: begin_exports
48 #include "color.h"
49 #include "command2.h"
50 #include "notify2.h"
51 #include "quoted.h"
52 #include "regex4.h"
53 #include "simple2.h"
54 // IWYU pragma: end_exports
55 
56 bool mutt_color_is_header(enum ColorId color_id);
57 int mutt_color_alloc (uint32_t fg, uint32_t bg);
58 int mutt_color_combine(uint32_t fg_attr, uint32_t bg_attr);
59 void mutt_color_free (uint32_t fg, uint32_t bg);
60 
61 void mutt_colors_init(void);
62 void mutt_colors_cleanup(void);
63 
64 void colors_clear(void);
65 
66 #endif /* MUTT_COLOR_LIB_H */
void mutt_colors_cleanup(void)
Cleanup all the colours.
Definition: color.c:163
void mutt_color_free(uint32_t fg, uint32_t bg)
Free a colour.
Definition: color.c:109
bool mutt_color_is_header(enum ColorId color_id)
int mutt_color_combine(uint32_t fg_attr, uint32_t bg_attr)
Combine two colours.
Definition: color.c:281
int mutt_color_alloc(uint32_t fg, uint32_t bg)
Allocate a colour pair.
Definition: color.c:188
void mutt_colors_init(void)
Initialize colours.
Definition: color.c:172
void colors_clear(void)
Reset all the colours.
Definition: color.c:151
Color and attribute parsing.
ColorId
List of all colored objects.
Definition: color.h:35
Parse colour commands.
Convenience wrapper for the core headers.
Convenience wrapper for the library headers.
Colour notifications.
Quoted-Email colours.
Regex Colour.
Simple colour.