120 uint32_t bg,
int attrs)
135 if ((cc->
fg ==
fg) && (cc->
bg ==
bg))
void attr_color_clear(struct AttrColor *ac)
Free the contents of an AttrColor.
struct AttrColor * attr_color_list_find(struct AttrColorList *acl, uint32_t fg, uint32_t bg, int attrs)
Find an AttrColor in a list.
bool attr_color_is_set(struct AttrColor *ac)
Is the object coloured?
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.
void curses_color_free(struct CursesColor **ptr)
Free a CursesColor.
int color_debug(enum LogLevel level, const char *format,...)
Write to the log file.
@ LL_DEBUG5
Log at debug level 5.
void * mutt_mem_calloc(size_t nmemb, size_t size)
Allocate zeroed memory on the heap.
Convenience wrapper for the library headers.
#define TAILQ_FOREACH(var, head, field)
#define TAILQ_FOREACH_SAFE(var, head, field, tvar)
#define TAILQ_REMOVE(head, elm, field)
A curses colour and its attributes.
short ref_count
Number of users.
int attrs
Text attributes, e.g. A_BOLD.
struct CursesColor * curses_color
Underlying Curses colour.
Colour in the ncurses palette.
uint32_t fg
Foreground colour.
uint32_t bg
Background colour.