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::ColRGB Struct Reference

Struct for storing RGB color codes. More...

#include <termstyle.hpp>

Public Member Functions

 ColRGB (ColorMode mode, int r, int g, int b)
 Constructs a ColRGB object with the specified color mode and RGB values.
 

Public Attributes

ColorMode mode
 
int r
 
int g
 
int b
 

Detailed Description

Struct for storing RGB color codes.

Examples
tests/colrgb.cpp.

Constructor & Destructor Documentation

◆ ColRGB()

termstyle::ColRGB::ColRGB ( ColorMode mode,
int r,
int g,
int b )
inlineexplicit

Constructs a ColRGB object with the specified color mode and RGB values.

Parameters
modeThe color mode of the ColRGB object.
rThe red component of the RGB color.
gThe green component of the RGB color.
bThe blue component of the RGB color.

Member Data Documentation

◆ mode

ColorMode termstyle::ColRGB::mode

The color mode (foreground or background).

See also
ColorMode

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