|
Porytiles
|
#include <cstdint>#include <functional>#include <sstream>#include <string>#include <type_traits>#include <utility>#include <vector>Go to the source code of this file.
Classes | |
| class | porytiles2::FormatParam |
| A text parameter with associated styling for formatted output. More... | |
| class | porytiles2::TextFormatter |
| Abstract base class for applying text styling with context-aware formatting. More... | |
Namespaces | |
| namespace | porytiles2 |
Typedefs | |
| using | porytiles2::FormattedMessageBuilder = std::function< std::vector< std::string >(const TextFormatter &)> |
| Function type for building formatted messages with TextFormatter access. | |
Enumerations | |
| enum class | porytiles2::Style : std::uint32_t { porytiles2::none = 0 , porytiles2::bold = 1 << 0 , porytiles2::italic = 1 << 1 , porytiles2::red = 1 << 2 , porytiles2::green = 1 << 3 , porytiles2::blue = 1 << 4 , porytiles2::yellow = 1 << 5 , porytiles2::cyan = 1 << 6 , porytiles2::magenta = 1 << 7 } |
| Bitmask flags for text styling options. More... | |
Functions | |
| constexpr Style | porytiles2::operator| (Style lhs, Style rhs) |
| Combines two Style flags using bitwise OR. | |
| constexpr Style | porytiles2::operator& (Style lhs, Style rhs) |
| Masks Style flags using bitwise AND. | |
| constexpr Style & | porytiles2::operator|= (Style &lhs, Style rhs) |
| Adds Style flags to an existing Style value using bitwise OR. | |
| constexpr Style & | porytiles2::operator&= (Style &lhs, Style rhs) |
| Masks an existing Style value using bitwise AND. | |
| constexpr bool | porytiles2::has_style (Style styles, Style flag) |
| Checks if a specific style flag is set in a Style value. | |