Defines the donner::svg::TextDecoration bitmask for the text-decoration CSS property. More...
#include <algorithm>#include <cmath>#include <cstdint>#include <limits>#include <ostream>#include "donner/base/Length.h"#include "donner/base/Utils.h"Classes | |
| struct | donner::svg::TextDecorationThickness |
| CSS thickness of decoration lines originating on an element. More... | |
Namespaces | |
| namespace | donner |
| Top-level Donner namespace, which is split into different sub-namespaces such as donner::svg and donner::css. | |
| namespace | donner::svg |
| Donner SVG library, which can load, manipulate and render SVG files. | |
Enumerations | |
| enum class | donner::svg::TextDecoration : uint8_t { donner::svg::None = 0 , donner::svg::Underline = 1 << 0 , donner::svg::Overline = 1 << 1 , donner::svg::LineThrough = 1 << 2 } |
| Bitmask for the text-decoration property line types. More... | |
| enum class | donner::svg::TextDecorationStyle : uint8_t { donner::svg::Solid , donner::svg::Double , donner::svg::Dotted , donner::svg::Dashed , donner::svg::Wavy } |
| The text-decoration-style property: how each decoration line is drawn. More... | |
Functions | |
| std::ostream & | donner::svg::operator<< (std::ostream &os, TextDecorationStyle style) |
| Print a CSS text-decoration-style keyword. | |
| std::ostream & | donner::svg::operator<< (std::ostream &os, const TextDecorationThickness &thickness) |
| Print a CSS decoration thickness value. | |
| bool | donner::svg::IsValidDecorationWidth (double value) |
| Return whether a resolved width can enter renderer geometry. | |
| double | donner::svg::ResolveDecorationThickness (const TextDecorationThickness &thickness, double automatic, double underline, double deviceScale) |
| Resolve a decoration width using the originating declaration and font metrics. | |
| constexpr TextDecoration | donner::svg::operator| (TextDecoration a, TextDecoration b) |
| Bitwise OR for combining TextDecoration values. | |
| constexpr TextDecoration | donner::svg::operator& (TextDecoration a, TextDecoration b) |
| Bitwise AND for testing TextDecoration flags. | |
| constexpr TextDecoration & | donner::svg::operator|= (TextDecoration &a, TextDecoration b) |
| Bitwise OR assignment. | |
| constexpr bool | donner::svg::hasFlag (TextDecoration value, TextDecoration flags) |
Returns true if any of the flags in flags are set in value. | |
| std::ostream & | donner::svg::operator<< (std::ostream &os, TextDecoration value) |
| Ostream output operator for TextDecoration bitmask, outputs CSS values. | |
Defines the donner::svg::TextDecoration bitmask for the text-decoration CSS property.