SoPlex Documentation
Loading...
Searching...
No Matches

#include <color.h>

Public Member Functions

FMT_CONSTEXPR text_style (emphasis em=emphasis()) FMT_NOEXCEPT
 
FMT_CONSTEXPR text_styleoperator|= (const text_style &rhs)
 
FMT_CONSTEXPR text_styleoperator&= (const text_style &rhs)
 
FMT_CONSTEXPR bool has_foreground () const FMT_NOEXCEPT
 
FMT_CONSTEXPR bool has_background () const FMT_NOEXCEPT
 
FMT_CONSTEXPR bool has_emphasis () const FMT_NOEXCEPT
 
FMT_CONSTEXPR detail::color_type get_foreground () const FMT_NOEXCEPT
 
FMT_CONSTEXPR detail::color_type get_background () const FMT_NOEXCEPT
 
FMT_CONSTEXPR emphasis get_emphasis () const FMT_NOEXCEPT
 

Private Member Functions

FMT_CONSTEXPR text_style (bool is_foreground, detail::color_type text_color) FMT_NOEXCEPT
 

Private Attributes

detail::color_type foreground_color
 
detail::color_type background_color
 
bool set_foreground_color
 
bool set_background_color
 
emphasis ems
 

Friends

FMT_CONSTEXPR text_style operator| (text_style lhs, const text_style &rhs)
 
FMT_CONSTEXPR text_style operator& (text_style lhs, const text_style &rhs)
 
FMT_CONSTEXPR_DECL text_style fg (detail::color_type foreground)
 
FMT_CONSTEXPR_DECL text_style bg (detail::color_type background)
 

Detailed Description

Definition at line 227 of file color.h.

Constructor & Destructor Documentation

◆ text_style() [1/2]

Definition at line 229 of file color.h.

◆ text_style() [2/2]

FMT_CONSTEXPR text_style ( bool is_foreground,
detail::color_type text_color )
private

Member Function Documentation

◆ get_background()

FMT_CONSTEXPR detail::color_type get_background ( ) const

Definition at line 305 of file color.h.

References background_color, FMT_ASSERT, and has_background().

Referenced by detail::vformat_to().

◆ get_emphasis()

FMT_CONSTEXPR emphasis get_emphasis ( ) const

Definition at line 309 of file color.h.

References ems, FMT_ASSERT, and has_emphasis().

Referenced by detail::vformat_to().

◆ get_foreground()

FMT_CONSTEXPR detail::color_type get_foreground ( ) const

Definition at line 301 of file color.h.

References FMT_ASSERT, foreground_color, and has_foreground().

Referenced by detail::vformat_to().

◆ has_background()

FMT_CONSTEXPR bool has_background ( ) const

Definition at line 295 of file color.h.

References set_background_color.

Referenced by get_background(), and detail::vformat_to().

◆ has_emphasis()

FMT_CONSTEXPR bool has_emphasis ( ) const

Definition at line 298 of file color.h.

References ems.

Referenced by get_emphasis(), and detail::vformat_to().

◆ has_foreground()

FMT_CONSTEXPR bool has_foreground ( ) const

Definition at line 292 of file color.h.

References set_foreground_color.

Referenced by get_foreground(), and detail::vformat_to().

◆ operator&=()

◆ operator|=()

Friends And Related Symbol Documentation

◆ bg

Definition at line 345 of file color.h.

◆ fg

Definition at line 341 of file color.h.

◆ operator&

FMT_CONSTEXPR text_style operator& ( text_style lhs,
const text_style & rhs )
friend

Definition at line 287 of file color.h.

◆ operator|

FMT_CONSTEXPR text_style operator| ( text_style lhs,
const text_style & rhs )
friend

Definition at line 258 of file color.h.

Member Data Documentation

◆ background_color

detail::color_type background_color
private

Definition at line 335 of file color.h.

Referenced by get_background(), operator&=(), operator|=(), and text_style().

◆ ems

emphasis ems
private

Definition at line 338 of file color.h.

Referenced by get_emphasis(), has_emphasis(), operator&=(), and operator|=().

◆ foreground_color

detail::color_type foreground_color
private

Definition at line 334 of file color.h.

Referenced by get_foreground(), operator&=(), operator|=(), and text_style().

◆ set_background_color

bool set_background_color
private

Definition at line 337 of file color.h.

Referenced by has_background(), operator&=(), operator|=(), and text_style().

◆ set_foreground_color

bool set_foreground_color
private

Definition at line 336 of file color.h.

Referenced by has_foreground(), operator&=(), operator|=(), and text_style().