Donner
C++20 SVG rendering library
Loading...
Searching...
No Matches
ElementType.h File Reference
#include <ostream>
Include dependency graph for ElementType.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::ElementType {
  donner::svg::Circle ,
  donner::svg::ClipPath ,
  donner::svg::Defs ,
  donner::svg::Ellipse ,
  donner::svg::FeGaussianBlur ,
  donner::svg::Filter ,
  donner::svg::G ,
  donner::svg::Image ,
  donner::svg::Line ,
  donner::svg::LinearGradient ,
  donner::svg::Marker ,
  donner::svg::Mask ,
  donner::svg::Path ,
  donner::svg::Pattern ,
  donner::svg::Polygon ,
  donner::svg::Polyline ,
  donner::svg::RadialGradient ,
  donner::svg::Rect ,
  donner::svg::Stop ,
  donner::svg::Style ,
  donner::svg::SVG ,
  donner::svg::Unknown ,
  donner::svg::Use
}
 SVG element types, corresponds to each XML element name, such as "<circle>", "<svg>", "<rect>", etc. More...
 

Functions

std::ostream & donner::svg::operator<< (std::ostream &os, ElementType type)
 Ostream output operator for ElementType, outputs the element name.
 
template<typename ReturnType , typename FnT >
ReturnType donner::svg::ToConstexpr (ElementType type, FnT fn)
 Converts a ElementType runtime value to a compile-time value, allowing conditional behavior for different element types with constexpr.