NeoMutt  2024-12-12-19-ge4b57e
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
30struct Notify;
31
32extern struct Notify *ColorsNotify;
33
42{
45};
46
55{
56 enum ColorId cid;
58};
59
60void color_notify_init(struct Notify *parent);
61void color_notify_cleanup(void);
62
63void mutt_color_observer_add (observer_t callback, void *global_data);
64void mutt_color_observer_remove(observer_t callback, void *global_data);
65
66#endif /* MUTT_COLOR_NOTIFY2_H */
Color and attribute parsing.
ColorId
List of all coloured objects.
Definition: color.h:36
Convenience wrapper for the library headers.
void mutt_color_observer_remove(observer_t callback, void *global_data)
Remove an observer.
Definition: notify.c:71
struct Notify * ColorsNotify
Notifications: ColorId, EventColor.
Definition: notify.c:36
void color_notify_init(struct Notify *parent)
Initialise the Colour notification.
Definition: notify.c:42
void mutt_color_observer_add(observer_t callback, void *global_data)
Add an observer.
Definition: notify.c:61
void color_notify_cleanup(void)
Free the Colour notification.
Definition: notify.c:51
NotifyColor
Types of Color Event.
Definition: notify2.h:42
@ NT_COLOR_RESET
Color has been reset/removed.
Definition: notify2.h:44
@ NT_COLOR_SET
Color has been set.
Definition: notify2.h:43
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:55
struct AttrColor * attr_color
Colour object that has changed.
Definition: notify2.h:57
enum ColorId cid
Colour ID that has changed.
Definition: notify2.h:56
Notification API.
Definition: notify.c:53