|
libcosmos
Linux C++ System Programming Library
|
Base class for easy colored text application on ostreams. More...
#include <colors.hxx>
Inheritance diagram for cosmos::term::ColoredText:Public Member Functions | |
| ColoredText (const std::string_view &text, const TermColor c, const ColorKind kind, const ColorIntensity intensity) | |
| ColoredText (const FeatureBase &next, const TermColor c, const ColorKind kind, const ColorIntensity intensity) | |
Public Member Functions inherited from cosmos::term::FeatureBase | |
| ANSICode | getOnCode () const |
| ANSICode | getOffCode () const |
| bool | hasText () const |
| const std::string_view & | getText () const |
| bool | hasNextFeature () const |
| const FeatureBase & | getNextFeature () const |
Protected Member Functions | |
| ANSICode | getOffCode (const ColorKind kind) const |
Protected Member Functions inherited from cosmos::term::FeatureBase | |
| FeatureBase (const std::string_view &text, const ANSICode on_code, const ANSICode off_code) | |
| FeatureBase (const FeatureBase &next, const ANSICode on_code, const ANSICode off_code) | |
Additional Inherited Members | |
Protected Attributes inherited from cosmos::term::FeatureBase | |
| std::variant< const std::string_view *, const FeatureBase * > | m_info |
| either a terminal string or a pointer to the next feature to apply. | |
| const ANSICode | m_on_code |
| const ANSICode | m_off_code |
Base class for easy colored text application on ostreams.
Definition at line 230 of file colors.hxx.
|
inlineexplicit |
Definition at line 231 of file colors.hxx.
|
inlineexplicit |
Definition at line 239 of file colors.hxx.
Definition at line 249 of file colors.hxx.