#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 internal::color_type | get_foreground () const FMT_NOEXCEPT |
FMT_CONSTEXPR internal::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, internal::color_type text_color) FMT_NOEXCEPT |
Private Attributes | |
internal::color_type | foreground_color |
internal::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 (internal::color_type foreground) FMT_NOEXCEPT |
FMT_CONSTEXPR_DECL text_style | bg (internal::color_type background) FMT_NOEXCEPT |
FMT_CONSTEXPR text_style | ( | emphasis | em = emphasis() | ) |
|
private |
Definition at line 315 of file color.h.
References bg(), fg(), FMT_CONSTEXPR_DECL, and FMT_NOEXCEPT.
FMT_CONSTEXPR internal::color_type get_background | ( | ) | const |
Definition at line 305 of file color.h.
References FMT_ASSERT.
Referenced by internal::vformat_to().
FMT_CONSTEXPR emphasis get_emphasis | ( | ) | const |
Definition at line 309 of file color.h.
References FMT_ASSERT.
Referenced by internal::vformat_to().
FMT_CONSTEXPR internal::color_type get_foreground | ( | ) | const |
Definition at line 301 of file color.h.
References FMT_ASSERT.
Referenced by internal::vformat_to().
FMT_CONSTEXPR bool has_background | ( | ) | const |
Definition at line 295 of file color.h.
Referenced by internal::vformat_to().
FMT_CONSTEXPR bool has_emphasis | ( | ) | const |
Definition at line 298 of file color.h.
Referenced by internal::vformat_to().
FMT_CONSTEXPR bool has_foreground | ( | ) | const |
Definition at line 292 of file color.h.
Referenced by internal::vformat_to().
FMT_CONSTEXPR text_style& operator&= | ( | const text_style & | rhs | ) |
Definition at line 263 of file color.h.
References background_color, ems, FMT_THROW, foreground_color, color_type::is_rgb, color_type::color_union::rgb_color, set_background_color, set_foreground_color, and color_type::value.
FMT_CONSTEXPR text_style& operator|= | ( | const text_style & | rhs | ) |
Definition at line 234 of file color.h.
References background_color, ems, FMT_THROW, foreground_color, color_type::is_rgb, color_type::color_union::rgb_color, set_background_color, set_foreground_color, and color_type::value.
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
Definition at line 335 of file color.h.
Referenced by operator &=(), and operator|=().
|
private |
Definition at line 338 of file color.h.
Referenced by operator &=(), and operator|=().
|
private |
Definition at line 334 of file color.h.
Referenced by operator &=(), and operator|=().
|
private |
Definition at line 337 of file color.h.
Referenced by operator &=(), and operator|=().
|
private |
Definition at line 336 of file color.h.
Referenced by operator &=(), and operator|=().