sf-svg
enums.hpp
Go to the documentation of this file.
1 /* ====================================================== *
2  * nanosvg++ *
3  * This software is a fork of nanosvg (nanosvgrastr.hpp). *
4  * No license-related aspects are affected. *
5  * Kamil Koczurek | koczurekk@gmail.com *
6  * ====================================================== */
11 
12 #ifndef ENUMS_HPP
13 #define ENUMS_HPP
14 
15 namespace nsvg {
16  /*
17  * Enums
18  */
19  enum class PaintType {
20  NONE = 0,
21  COLOR = 1,
22  LINEAR_GRADIENT = 2,
23  RADIAL_GRADIENT = 3,
24  };
25 
26  enum class SpreadType {
27  PAD = 0,
28  REFLECT = 1,
29  REPEAT = 2,
30  };
31 
32  enum class LineJoin {
33  MITER = 0,
34  ROUND = 1,
35  BEVEL = 2,
36  };
37 
38  enum class LineCap {
39  BUTT = 0,
40  ROUND = 1,
41  SQUARE = 2,
42  };
43 
44  enum class FillRule {
45  NONZERO = 0,
46  EVENODD = 1,
47  };
48 
49  enum class Flags {
50  NSVG_FLAGS_VISIBLE = 0x01,
51  INVISIBLE = 0x00
52  };
53 
54  enum class GradientUnits {
55  USER_SPACE = 0,
56  OBJECT_SPACE = 1,
57  };
58 
60  enum class Units {
63  UNITS_USER,
64 
67  UNITS_PX,
68 
71  UNITS_PT,
72 
75  UNITS_PC,
76 
79  UNITS_MM,
80 
83  UNITS_CM,
84 
87  UNITS_IN,
88 
92 
95  UNITS_EM,
96 
99  UNITS_EX,
100  };
101 }
102 
103 #endif // ENUMS_HPP
Used for fonts.
Point (1/72th of an inch).
Nanosvg++ namespace.
Definition: enums.hpp:15
X-height of the element.
Pixels (Relative to the viewing device)
Pica (12 points).
Units
Available units.
Definition: enums.hpp:60