NeoMutt  2024-11-14-34-g5aaf0d
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
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_cleanup(void);
60
61void mutt_color_observer_add (observer_t callback, void *global_data);
62void mutt_color_observer_remove(observer_t callback, void *global_data);
63
64#endif /* MUTT_COLOR_NOTIFY2_H */
Color and attribute parsing.
ColorId
List of all colored objects.
Definition: color.h:40
Convenience wrapper for the library headers.
void mutt_color_observer_remove(observer_t callback, void *global_data)
Remove an observer.
Definition: notify.c:69
struct Notify * ColorsNotify
Notifications: ColorId, EventColor.
Definition: notify.c:35
void mutt_color_observer_add(observer_t callback, void *global_data)
Add an observer.
Definition: notify.c:59
void color_notify_cleanup(void)
Free the Colour notification.
Definition: notify.c:49
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:40
int(* observer_t)(struct NotifyCallback *nc)
Definition: observer.h:54
A curses colour and its attributes.
Definition: attr.h:66
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:53