Swiftray  1.0
svgpp-defs.h
Go to the documentation of this file.
1 #pragma once
2 
3 #include <parser/svgpp-common.h>
4 #include <layer.h>
5 #include <shape/path-shape.h>
6 #include <shape/shape.h>
8 
9 namespace Parser {
10 
11  typedef boost::variant<tag::value::none, tag::value::currentColor, color_t>
13  typedef boost::iterator_range<const char *> RangedChar;
14 
15  struct IRIPaint {
16  IRIPaint(std::string const &fragment,
17  boost::optional<SolidPaint> const &fallback =
18  boost::optional<SolidPaint>()) {
19  fragment_ = fragment;
20  fallback_ = fallback;
21  }
22 
23  std::string fragment_;
24  boost::optional<SolidPaint> fallback_;
25  };
26 
27  typedef boost::variant<SolidPaint, IRIPaint> SVGPPPaint;
28 
30 
31 }
Definition: svg-style-selector.h:24
Definition: base-context.h:8
boost::variant< SolidPaint, IRIPaint > SVGPPPaint
Definition: svgpp-defs.h:27
boost::iterator_range< const char * > RangedChar
Definition: svgpp-defs.h:13
SVGStyleSelector * svgpp_style_selector
Definition: svgpp-impl.cpp:218
boost::variant< tag::value::none, tag::value::currentColor, color_t > SolidPaint
Definition: svgpp-defs.h:12