NeoMutt  2024-10-02-37-gfa9146
Teaching an old dog new tricks
DOXYGEN
Loading...
Searching...
No Matches
CursesColor Struct Reference

Colour in the ncurses palette. More...

#include "curses2.h"

Public Member Functions

 TAILQ_ENTRY (CursesColor) entries
 Linked list.
 

Data Fields

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

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 40 of file curses2.h.

Member Function Documentation

◆ TAILQ_ENTRY()

CursesColor::TAILQ_ENTRY ( CursesColor  )

Linked list.

Field Documentation

◆ fg

color_t CursesColor::fg

Foreground colour.

Definition at line 42 of file curses2.h.

◆ bg

color_t CursesColor::bg

Background colour.

Definition at line 43 of file curses2.h.

◆ index

short CursesColor::index

Index number.

Definition at line 44 of file curses2.h.

◆ ref_count

short CursesColor::ref_count

Number of users.

Definition at line 45 of file curses2.h.


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