Donner 0.5.0
Embeddable browser-grade SVG2 engine
Loading...
Searching...
No Matches
TextDecoration.h File Reference

Defines the donner::svg::TextDecoration bitmask for the text-decoration CSS property. More...

#include <cstdint>
#include <ostream>
#include "donner/base/Utils.h"
Include dependency graph for TextDecoration.h:
This graph shows which files directly or indirectly include this file:

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...

Functions

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 TextDecorationdonner::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.

Detailed Description

Defines the donner::svg::TextDecoration bitmask for the text-decoration CSS property.