Rosetta
|
#include <color.h>
Public Member Functions | |
FMT_CONSTEXPR | text_style (emphasis em=emphasis()) FMT_NOEXCEPT |
FMT_CONSTEXPR text_style & | operator|= (const text_style &rhs) |
FMT_CONSTEXPR text_style & | operator&= (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_NOEXCEPT |
FMT_CONSTEXPR_DECL text_style | bg (detail::color_type background) FMT_NOEXCEPT |
|
inline |
|
inlineprivate |
References background_color, foreground_color, set_background_color, and set_foreground_color.
|
inline |
References background_color, FMT_ASSERT, and has_background().
Referenced by detail::vformat_to().
|
inline |
References ems, FMT_ASSERT, and has_emphasis().
Referenced by detail::vformat_to().
|
inline |
References FMT_ASSERT, foreground_color, and has_foreground().
Referenced by detail::vformat_to().
|
inline |
References set_background_color.
Referenced by get_background(), and detail::vformat_to().
|
inline |
References ems.
Referenced by get_emphasis(), and detail::vformat_to().
|
inline |
References set_foreground_color.
Referenced by get_foreground(), and detail::vformat_to().
|
inline |
|
inline |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Referenced by get_background(), operator&=(), operator|=(), and text_style().
|
private |
Referenced by get_emphasis(), has_emphasis(), operator&=(), and operator|=().
|
private |
Referenced by get_foreground(), operator&=(), operator|=(), and text_style().
|
private |
Referenced by has_background(), operator&=(), operator|=(), and text_style().
|
private |
Referenced by has_foreground(), operator&=(), operator|=(), and text_style().