NeoMutt  2024-12-12-19-ge4b57e
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
curses2.h
Go to the documentation of this file.
1
23#ifndef MUTT_COLOR_CURSES2_H
24#define MUTT_COLOR_CURSES2_H
25
26#include "config.h"
27#include <stdint.h>
28#include "mutt/lib.h"
29
31typedef int32_t color_t;
32
41{
44 short index;
45 short ref_count;
47};
48TAILQ_HEAD(CursesColorList, CursesColor);
49
50void curses_color_free(struct CursesColor **ptr);
52
53void curses_colors_init(void);
55
56#endif /* MUTT_COLOR_CURSES2_H */
struct CursesColor * curses_color_new(color_t fg, color_t bg)
Create a new CursesColor.
Definition: curses.c:151
void curses_color_free(struct CursesColor **ptr)
Free a CursesColor.
Definition: curses.c:120
int32_t color_t
Type for 24-bit colour value.
Definition: curses2.h:31
void curses_colors_init(void)
Initialise the Curses colours.
Definition: curses.c:44
struct CursesColor * curses_colors_find(color_t fg, color_t bg)
Find a Curses colour by foreground/background.
Definition: curses.c:57
Convenience wrapper for the library headers.
#define TAILQ_HEAD(name, type)
Definition: queue.h:641
Colour in the ncurses palette.
Definition: curses2.h:41
color_t fg
Foreground colour.
Definition: curses2.h:42
TAILQ_ENTRY(CursesColor) entries
Linked list.
color_t bg
Background colour.
Definition: curses2.h:43
short index
Index number.
Definition: curses2.h:44
short ref_count
Number of users.
Definition: curses2.h:45