NeoMutt  2023-05-17-56-ga67199
Teaching an old dog new tricks
CursesColor Struct Reference

Colour in the ncurses palette. More...

#include "curses2.h"

Public Member Functions

 TAILQ_ENTRY (CursesColor) entries
 Linked list. More...

Data Fields

uint32_t fg
 Foreground colour. More...
uint32_t bg
 Background colour. More...
short index
 Index number. More...
short ref_count
 Number of users. More...

Detailed Description

Colour in the ncurses palette.

Curses stores colours as a foreground/background pair. There can be up to COLOR_PAIRS (65535) of these pairs. To use a colour, it must be initialised using init_pair().

Definition at line 37 of file curses2.h.

Member Function Documentation


CursesColor::TAILQ_ENTRY ( CursesColor  )

Linked list.

Field Documentation

◆ fg

uint32_t CursesColor::fg

Foreground colour.

Definition at line 41 of file curses2.h.

◆ bg

uint32_t CursesColor::bg

Background colour.

Definition at line 42 of file curses2.h.

◆ index

short CursesColor::index

Index number.

Definition at line 43 of file curses2.h.

◆ ref_count

short CursesColor::ref_count

Number of users.

Definition at line 44 of file curses2.h.

The documentation for this struct was generated from the following file: