126 int q_level,
int *rc,
struct Buffer *err)
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.
bool attr_color_is_set(const struct AttrColor *ac)
Is the object coloured?
int buf_printf(struct Buffer *buf, const char *fmt,...)
Format a string overwriting a Buffer.
void get_colorid_name(unsigned int cid, struct Buffer *buf)
Get the name of a color id.
struct Notify * ColorsNotify
Notifications: ColorId, EventColor.
struct AttrColor * simple_color_get(enum ColorId cid)
Get the colour of an object by its ID.
Color and attribute parsing.
ColorId
List of all coloured objects.
@ MT_COLOR_QUOTED
Pager: quoted text.
CommandResult
Error codes for command_t parse functions.
@ MUTT_CMD_SUCCESS
Success: Command worked.
Convenience wrapper for the core headers.
void curses_color_free(struct CursesColor **ptr)
Free a CursesColor.
void curses_color_dump(struct CursesColor *cc, const char *prefix)
Log one Curses colour.
void curses_colors_dump(struct Buffer *buf)
Dump all the Curses colours.
static int color_debug(enum LogLevel level, const char *format,...)
@ LL_DEBUG5
Log at debug level 5.
Convenience wrapper for the library headers.
bool notify_send(struct Notify *notify, enum NotifyType event_type, int event_subtype, void *event_data)
Send out a notification message.
@ NT_COLOR_RESET
Color has been reset/removed.
@ NT_COLOR_SET
Color has been set.
@ NT_COLOR
Colour has changed, NotifyColor, EventColor.
struct Buffer * buf_pool_get(void)
Get a Buffer from the pool.
void buf_pool_release(struct Buffer **ptr)
Return a Buffer to the pool.
enum CommandResult quoted_colors_parse_uncolor(enum ColorId cid, int q_level, struct Buffer *err)
Parse the 'uncolor quoted' command.
struct AttrColor * quoted_colors_get(int q)
Return the color of a quote, cycling through the used quotes.
bool quoted_colors_parse_color(enum ColorId cid, struct AttrColor *ac_val, int q_level, int *rc, struct Buffer *err)
Parse the 'color quoted' command.
int quoted_colors_num_used(void)
Return the number of used quotes.
static int NumQuotedColors
Number of colours for quoted email text.
struct AttrColor QuotedColors[COLOR_QUOTES_MAX]
Array of colours for quoted email text.
void quoted_colors_init(void)
Initialise the Quoted colours.
void quoted_colors_reset(void)
Reset the quoted-email colours.
void quoted_colors_cleanup(void)
Cleanup the quoted-email colours.
static int find_highest_used(void)
Find the highest-numbered quotedN in use.
#define COLOR_QUOTES_MAX
Ten colours, quoted0..quoted9 (quoted and quoted0 are equivalent)
#define COLOR_QUOTED(cid)
A curses colour and its attributes.
struct ColorElement bg
Background colour.
struct ColorElement fg
Foreground colour.
short ref_count
Number of users.
struct CursesColor * curses_color
Underlying Curses colour.
String manipulation buffer.
char * data
Pointer to data.
Colour in the ncurses palette.
short ref_count
Number of users.
An Event that happened to a Colour.
enum ColorId cid
Colour ID that has changed.