Photon 1.0.0
|
#include <color.h>
Public Member Functions | |
FMT_CONSTEXPR | text_style (emphasis em=emphasis()) noexcept |
FMT_CONSTEXPR text_style & | operator|= (const text_style &rhs) |
FMT_CONSTEXPR bool | has_foreground () const noexcept |
FMT_CONSTEXPR bool | has_background () const noexcept |
FMT_CONSTEXPR bool | has_emphasis () const noexcept |
FMT_CONSTEXPR detail::color_type | get_foreground () const noexcept |
FMT_CONSTEXPR detail::color_type | get_background () const noexcept |
FMT_CONSTEXPR emphasis | get_emphasis () const noexcept |
Private Member Functions | |
FMT_CONSTEXPR | text_style (bool is_foreground, detail::color_type text_color) 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 | fg (detail::color_type foreground) noexcept |
FMT_CONSTEXPR text_style | bg (detail::color_type background) noexcept |
A text style consisting of foreground and background colors and emphasis.
|
inlinenoexcept |
|
inlineprivatenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
|
friend |
Creates a text style from the background color.
|
friend |
Creates a text style from the foreground (text) color.
|
friend |
|
private |
|
private |
|
private |
|
private |
|
private |