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

uint bg
uint fg
uint pair_id

Detailed Description

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 456 of file cm.h.

Field Documentation

◆ bg

uint ColorPair::bg

background color index

Definition at line 458 of file cm.h.

◆ fg

uint ColorPair::fg

foreground color index

Definition at line 457 of file cm.h.

◆ pair_id

uint ColorPair::pair_id

color pair index

Definition at line 459 of file cm.h.


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