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

Struct for storing styled strings. More...

#include <termstyle.hpp>

Public Attributes

std::string text = ""
 
std::vector< Colorprestyles = {}
 
std::vector< Colorpoststyles = {}
 
std::vector< Codesprestyle16 = {}
 
std::vector< Codespoststyle16 = {}
 
std::vector< Col256prestlye256 = {}
 
std::vector< Col256poststyle256 = {}
 

Detailed Description

Struct for storing styled strings.

Member Data Documentation

◆ poststyle16

std::vector<Codes> termstyle::StyleString::poststyle16 = {}

A vector container that stores objects of type Codes, applied after text.

Deprecated
Since v1.0.0-pre.3 Use prestyles instead.
See also
Codes

◆ poststyle256

std::vector<Col256> termstyle::StyleString::poststyle256 = {}

A vector container that stores objects of type Col256, applied after text.

Deprecated
Since v1.0.0-pre.3 Use prestyles instead.
See also
Col256

◆ poststyles

std::vector<Color> termstyle::StyleString::poststyles = {}

A vector container that stores objects of type Color, applied after text.

See also
Color

◆ prestlye256

std::vector<Col256> termstyle::StyleString::prestlye256 = {}

A vector container that stores objects of type Col256, applied before text.

Deprecated
Since v1.0.0-pre.3 Use prestyles instead.
See also
Col256

◆ prestyle16

std::vector<Codes> termstyle::StyleString::prestyle16 = {}

A vector container that stores objects of type Codes, applied before text.

Deprecated
Since v1.0.0-pre.3 Use prestyles instead.
See also
Codes

◆ prestyles

std::vector<Color> termstyle::StyleString::prestyles = {}

A vector container that stores objects of type Color, applied before text.

See also
Color
Examples
tests/col256.cpp, and tests/demo.cpp.

◆ text

std::string termstyle::StyleString::text = ""

The text to be styled.

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

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