summaryrefslogtreecommitdiff
path: root/include/mbgl/style/types.hpp
diff options
context:
space:
mode:
authorMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-09 17:51:26 +0300
committerMikhail Pozdnyakov <mikhail.pozdnyakov@mapbox.com>2019-08-12 17:14:32 +0300
commit5a752061fe9d84588d4bd70a37d1c3a861eaa206 (patch)
treed53c56dad0d2c6b216dfd1d98f0c2d3acd9b7c49 /include/mbgl/style/types.hpp
parentbc09cdbf76ffa50ccdd8dc8df7997fdd3a0eb0d6 (diff)
downloadqtlocation-mapboxgl-5a752061fe9d84588d4bd70a37d1c3a861eaa206.tar.gz
[core] Enable two-component text radial offsetupstream/mikhail_two_component_text_radial_offset
Diffstat (limited to 'include/mbgl/style/types.hpp')
-rw-r--r--include/mbgl/style/types.hpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/mbgl/style/types.hpp b/include/mbgl/style/types.hpp
index 13a2e50f01..06e549e37d 100644
--- a/include/mbgl/style/types.hpp
+++ b/include/mbgl/style/types.hpp
@@ -1,6 +1,7 @@
#pragma once
#include <cstdint>
+#include <vector>
namespace mbgl {
@@ -120,5 +121,11 @@ enum class LightAnchorType: bool {
Viewport
};
+class RadialOffsetType: public std::vector<float> {
+public:
+ template <typename... Args>
+ RadialOffsetType(Args&&... args) : std::vector<float>(std::forward<Args>(args)...) {}
+};
+
} // namespace style
} // namespace mbgl