HIPO  4.3.0
High Performance Output data format for experimental physics
ascii::Background Class Reference

ANSI background color escape sequence generator. More...

#include <color.h>

Static Public Member Functions

template<typename T >
static Background From (T color)
 Create a Background color from a color value. More...
 

Friends

std::ostream & operator<< (std::ostream &os, const Background &val)
 Output the background color escape sequence to an output stream. More...
 

Detailed Description

ANSI background color escape sequence generator.

Generates ANSI escape sequences for background colors supporting standard colors, 256-color mode, and true color (RGB).

Definition at line 210 of file color.h.

Member Function Documentation

◆ From()

template<typename T >
static Background ascii::Background::From ( color)
inlinestatic

Create a Background color from a color value.

Supports Color, Color256, and RGB types through template specialization.

Template Parameters
Tthe color type (Color, Color256, or RGB)
Parameters
colorthe color value
Returns
a Background object configured with the given color

Definition at line 220 of file color.h.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Background val 
)
friend

Output the background color escape sequence to an output stream.

Parameters
osthe output stream
valthe background color to output
Returns
the output stream

Definition at line 228 of file color.h.


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