Iros
 
Loading...
Searching...
No Matches
di::format::style::Style Class Reference

#include <di/format/style.h>

Public Member Functions

constexpr Style ()=default
 
constexpr Style (Color foreground)
 
constexpr Style (BackgroundColor background)
 
constexpr Style (Effect effect)
 
constexpr Style (Color foreground, BackgroundColor background, Effect effect)
 
constexpr auto foreground () const -> Color
 
constexpr auto background () const -> Color
 
constexpr auto effect () const -> Effect
 
template<concepts::Encoding Enc>
constexpr auto render_to_ansi_escapes () const
 

Constructor & Destructor Documentation

◆ Style() [1/5]

di::format::style::Style::Style ( )
constexprdefault

◆ Style() [2/5]

di::format::style::Style::Style ( Color foreground)
inlineconstexpr

◆ Style() [3/5]

di::format::style::Style::Style ( BackgroundColor background)
inlineconstexpr

◆ Style() [4/5]

di::format::style::Style::Style ( Effect effect)
inlineconstexpr

◆ Style() [5/5]

di::format::style::Style::Style ( Color foreground,
BackgroundColor background,
Effect effect )
inlineexplicitconstexpr

Member Function Documentation

◆ background()

auto di::format::style::Style::background ( ) const -> Color
inlineconstexpr

◆ effect()

auto di::format::style::Style::effect ( ) const -> Effect
inlineconstexpr

◆ foreground()

auto di::format::style::Style::foreground ( ) const -> Color
inlineconstexpr

◆ render_to_ansi_escapes()

template<concepts::Encoding Enc>
auto di::format::style::Style::render_to_ansi_escapes ( ) const
inlineconstexpr

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