NeoMutt
2025-12-11-1039-g550ac6
Teaching an old dog new tricks
DOXYGEN
Toggle main menu visibility
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
29
struct
Notify
;
30
38
enum
NotifyColor
39
{
40
NT_COLOR_SET
= 1,
41
NT_COLOR_RESET
,
42
};
43
51
struct
EventColor
52
{
53
enum
ColorId
cid
;
54
struct
AttrColor
*
attr_color
;
55
};
56
57
void
color_notify_init
(
struct
Notify
**colors_notify,
struct
Notify
*parent);
58
void
color_notify_cleanup
(
struct
Notify
**colors_notify);
59
60
void
mutt_color_observer_add
(
observer_t
callback,
void
*global_data);
61
void
mutt_color_observer_remove
(
observer_t
callback,
void
*global_data);
62
63
#endif
/* MUTT_COLOR_NOTIFY2_H */
color.h
Color and attribute parsing.
ColorId
ColorId
List of all coloured objects.
Definition
color.h:35
lib.h
Convenience wrapper for the library headers.
mutt_color_observer_remove
void mutt_color_observer_remove(observer_t callback, void *global_data)
Remove an observer.
Definition
notify.c:73
mutt_color_observer_add
void mutt_color_observer_add(observer_t callback, void *global_data)
Add an observer.
Definition
notify.c:62
color_notify_init
void color_notify_init(struct Notify **colors_notify, struct Notify *parent)
Initialise the Colour notification.
Definition
notify.c:42
NotifyColor
NotifyColor
Types of Color Event.
Definition
notify2.h:39
NT_COLOR_RESET
@ NT_COLOR_RESET
Color has been reset/removed.
Definition
notify2.h:41
NT_COLOR_SET
@ NT_COLOR_SET
Color has been set.
Definition
notify2.h:40
color_notify_cleanup
void color_notify_cleanup(struct Notify **colors_notify)
Free the Colour notification.
Definition
notify.c:52
observer_t
int(* observer_t)(struct NotifyCallback *nc)
Definition
observer.h:54
AttrColor
A curses colour and its attributes.
Definition
attr.h:65
EventColor
An Event that happened to a Colour.
Definition
notify2.h:52
EventColor::attr_color
struct AttrColor * attr_color
Colour object that has changed.
Definition
notify2.h:54
EventColor::cid
enum ColorId cid
Colour ID that has changed.
Definition
notify2.h:53
Notify
Notification API.
Definition
notify.c:53