23#ifndef MUTT_COLOR_ATTR_H
24#define MUTT_COLOR_ATTR_H
struct AttrColor * attr_color_list_find(struct AttrColorList *acl, color_t fg, color_t bg, int attrs)
Find an AttrColor in a list.
void attr_color_overwrite(struct AttrColor *ac_old, struct AttrColor *ac_new)
Update an AttrColor in-place.
void attr_color_clear(struct AttrColor *ac)
Free the contents of an AttrColor.
ColorPrefix
Constants for colour prefixes of named colours.
@ COLOR_PREFIX_NONE
no prefix
@ COLOR_PREFIX_ALERT
"alert" colour prefix
@ COLOR_PREFIX_LIGHT
"light" colour prefix
@ COLOR_PREFIX_BRIGHT
"bright" colour prefix
@ CT_SIMPLE
Simple colour, e.g. "Red".
@ CT_PALETTE
Palette colour, e.g. "color207".
@ CT_RGB
True colour, e.g. "#11AAFF".
bool attr_color_match(struct AttrColor *ac1, struct AttrColor *ac2)
Do the colours match?
struct AttrColor attr_color_copy(const struct AttrColor *ac)
Copy a colour.
struct AttrColor * attr_color_new(void)
Create a new AttrColor.
void attr_color_free(struct AttrColor **ptr)
Free an AttrColor.
void attr_color_list_clear(struct AttrColorList *acl)
Free the contents of an AttrColorList.
bool attr_color_is_set(const struct AttrColor *ac)
Is the object coloured?
int32_t color_t
Type for 24-bit colour value.
Convenience wrapper for the library headers.
#define TAILQ_HEAD(name, type)
A curses colour and its attributes.
struct ColorElement bg
Background colour.
struct ColorElement fg
Foreground colour.
TAILQ_ENTRY(AttrColor) entries
Linked list.
short ref_count
Number of users.
int attrs
Text attributes, e.g. A_BOLD.
struct CursesColor * curses_color
Underlying Curses colour.
enum ColorType type
Type of Colour.
enum ColorPrefix prefix
Optional Colour Modifier.
Colour in the ncurses palette.