NeoMutt  2025-12-11-872-g385a04
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
notify2.h
Go to the documentation of this file.
1
22
23#ifndef MUTT_COLOR_NOTIFY2_H
24#define MUTT_COLOR_NOTIFY2_H
25
26#include "mutt/lib.h"
27#include "color.h"
28
29struct Notify;
30
43
52{
53 enum ColorId cid;
55};
56
57void color_notify_init(struct Notify **colors_notify, struct Notify *parent);
58void color_notify_cleanup(struct Notify **colors_notify);
59
60void mutt_color_observer_add (observer_t callback, void *global_data);
61void mutt_color_observer_remove(observer_t callback, void *global_data);
62
63#endif /* MUTT_COLOR_NOTIFY2_H */
Color and attribute parsing.
ColorId
List of all coloured objects.
Definition color.h:35
Convenience wrapper for the library headers.
void mutt_color_observer_remove(observer_t callback, void *global_data)
Remove an observer.
Definition notify.c:73
void mutt_color_observer_add(observer_t callback, void *global_data)
Add an observer.
Definition notify.c:62
void color_notify_init(struct Notify **colors_notify, struct Notify *parent)
Initialise the Colour notification.
Definition notify.c:42
NotifyColor
Types of Color Event.
Definition notify2.h:39
@ NT_COLOR_RESET
Color has been reset/removed.
Definition notify2.h:41
@ NT_COLOR_SET
Color has been set.
Definition notify2.h:40
void color_notify_cleanup(struct Notify **colors_notify)
Free the Colour notification.
Definition notify.c:52
int(* observer_t)(struct NotifyCallback *nc)
Definition observer.h:54
A curses colour and its attributes.
Definition attr.h:65
An Event that happened to a Colour.
Definition notify2.h:52
struct AttrColor * attr_color
Colour object that has changed.
Definition notify2.h:54
enum ColorId cid
Colour ID that has changed.
Definition notify2.h:53
Notification API.
Definition notify.c:53