di 0.1.0
Loading...
Searching...
No Matches
di::fmt::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::fmt::style::Style::Style ( )
constexprdefault

◆ Style() [2/5]

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

◆ Style() [3/5]

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

◆ Style() [4/5]

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

◆ Style() [5/5]

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

Member Function Documentation

◆ background()

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

◆ effect()

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

◆ foreground()

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

◆ render_to_ansi_escapes()

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

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