MapLibre Native Core
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
types.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <cstdint>
4 
5 namespace mbgl {
6 
7 namespace style {
8 
9 // TODO: should be in public source.hpp header
10 enum class SourceType : uint8_t {
11  Vector,
12  Raster,
13  RasterDEM,
14  GeoJSON,
15  Video,
17  Image,
19 };
20 
21 enum class VisibilityType : bool {
22  Visible,
23  None,
24 };
25 
26 enum class LineCapType : uint8_t {
27  Round,
28  Butt,
29  Square,
30 };
31 
32 enum class LineJoinType : uint8_t {
33  Miter,
34  Bevel,
35  Round,
36  // the following two types are for internal use only
37  FakeRound,
38  FlipBevel
39 };
40 
41 enum class RasterResamplingType : bool {
42  Linear,
43  Nearest
44 };
45 
47  Map,
48  Viewport
49 };
50 
51 enum class TranslateAnchorType : bool {
52  Map,
53  Viewport
54 };
55 
56 enum class RotateAnchorType : bool {
57  Map,
58  Viewport,
59 };
60 
61 enum class CirclePitchScaleType : bool {
62  Map,
63  Viewport,
64 };
65 
66 enum class SymbolPlacementType : uint8_t {
67  Point,
68  Line,
70 };
71 
72 enum class SymbolZOrderType : uint8_t {
73  Auto,
74  ViewportY,
75  Source
76 };
77 
78 enum class AlignmentType : uint8_t {
79  Map,
80  Viewport,
81  Auto,
82 };
83 
84 enum class TextJustifyType : uint8_t {
85  Auto,
86  Center,
87  Left,
88  Right
89 };
90 
91 enum class SymbolAnchorType : uint8_t {
92  Center,
93  Left,
94  Right,
95  Top,
96  Bottom,
97  TopLeft,
98  TopRight,
99  BottomLeft,
101 };
102 
104 
105 enum class TextTransformType : uint8_t {
106  None,
107  Uppercase,
108  Lowercase,
109 };
110 
111 enum class IconTextFitType : uint8_t {
112  None,
113  Both,
114  Width,
115  Height
116 };
117 
118 enum class TextWritingModeType : uint8_t {
119  Horizontal,
120  Vertical
121 };
122 
123 enum class LightAnchorType: bool {
124  Map,
125  Viewport
126 };
127 
128 } // namespace style
129 } // namespace mbgl
TranslateAnchorType
Definition: types.hpp:51
TextTransformType
Definition: types.hpp:105
CirclePitchScaleType
Definition: types.hpp:61
TextWritingModeType
Definition: types.hpp:118
HillshadeIlluminationAnchorType
Definition: types.hpp:46
SymbolAnchorType
Definition: types.hpp:91
VisibilityType
Definition: types.hpp:21
RotateAnchorType
Definition: types.hpp:56
RasterResamplingType
Definition: types.hpp:41
SymbolPlacementType
Definition: types.hpp:66
SymbolZOrderType
Definition: types.hpp:72
TextJustifyType
Definition: types.hpp:84
Definition: actor.hpp:15