C-Menu 0.2.9
A User Interface Toolkit
Loading...
Searching...
No Matches
ColorPair Struct Reference

#include <cm.h>

Collaboration diagram for ColorPair:
[legend]

Data Fields

int fg
int bg
int pair_id

Detailed Description

Note
The ColorPair structure is a simple structure that holds information about a color pair, including the foreground color index, background color index, and the color pair index. This structure can be used to manage and apply color pairs in the ncurses library, allowing for easy customization of the terminal's appearance. By using this structure, you can easily keep track of the different color pairs you have defined and apply them to various elements in your terminal interface.

Definition at line 302 of file cm.h.

Field Documentation

◆ bg

int ColorPair::bg

background color index

Definition at line 304 of file cm.h.

◆ fg

int ColorPair::fg

foreground color index

Definition at line 303 of file cm.h.

◆ pair_id

int ColorPair::pair_id

color pair index

Definition at line 305 of file cm.h.


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