termstyle 1.0.0-pre.3
An open-source C++ header file that enables developers to easily define and apply customizable style presets for terminal outputs such as warnings, infos, and errors.
Loading...
Searching...
No Matches
termstyle::Color Struct Reference

Struct for storing different types of colors. More...

#include <termstyle.hpp>

Public Member Functions

 Color (Codes col16)
 Constructs a Color object with the specified 16-color code.
 
 Color (Col256 col256)
 Constructs a Color object with the specified 256-color code.
 
 Color (ColRGB colrgb)
 Constructs a Color object with the specified RGB color.
 

Public Attributes

ColorType type
 
union { 
 
   Codes   col16 
 
   Col256   col256 
 
   ColRGB   colrgb 
 
};  
 

Detailed Description

Struct for storing different types of colors.

Examples
tests/col16.cpp, tests/col256.cpp, tests/colrgb.cpp, and tests/demo.cpp.

Member Data Documentation

◆ col16

Codes termstyle::Color::col16
See also
Codes

◆ col256

Col256 termstyle::Color::col256
See also
Col256

◆ colrgb

ColRGB termstyle::Color::colrgb
See also
ColRGB

◆ type

ColorType termstyle::Color::type

The type of color.

See also
ColorType

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