NeoMutt  2022-04-29-215-gc12b98
Teaching an old dog new tricks
DOXYGEN
notify2.h
Go to the documentation of this file.
1
23#ifndef MUTT_COLOR_NOTIFY2_H
24#define MUTT_COLOR_NOTIFY2_H
25
26#include "config.h"
27#include "mutt/lib.h"
28#include "color.h"
29
30extern struct Notify *ColorsNotify;
31
40{
43};
44
53{
54 enum ColorId cid;
56};
57
58void color_notify_init(void);
59void color_notify_free(void);
60
63
64#endif /* MUTT_COLOR_NOTIFY2_H */
Color and attribute parsing.
ColorId
List of all colored objects.
Definition: color.h:35
Convenience wrapper for the library headers.
void color_notify_free(void)
Free the Colour notification.
Definition: notify.c:48
void mutt_color_observer_remove(observer_t callback, void *global_data)
Remove an observer.
Definition: notify.c:68
struct Notify * ColorsNotify
Notifications: ColorId, EventColor.
Definition: notify.c:34
void mutt_color_observer_add(observer_t callback, void *global_data)
Add an observer.
Definition: notify.c:58
NotifyColor
Types of Color Event.
Definition: notify2.h:40
@ NT_COLOR_RESET
Color has been reset/removed.
Definition: notify2.h:42
@ NT_COLOR_SET
Color has been set.
Definition: notify2.h:41
void color_notify_init(void)
Initialise the Colour notification.
Definition: notify.c:39
int(* observer_t)(struct NotifyCallback *nc)
Definition: observer.h:55
static void * global_data
Original opaque data in fallback implementation.
Definition: qsort_r.c:49
A curses colour and its attributes.
Definition: attr.h:35
An Event that happened to a Colour.
Definition: notify2.h:53
struct AttrColor * attr_color
Colour object that has changed.
Definition: notify2.h:55
enum ColorId cid
Colour ID that has changed.
Definition: notify2.h:54
Notification API.
Definition: notify.c:51