summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Shalamov <alexander.shalamov@mapbox.com>2019-06-14 13:55:51 +0300
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2019-08-13 13:32:56 +0300
commit075d458403ba2c7367f06e5fc66c2a00c788634a (patch)
tree4be32175b3d9bb7475214012a534818f585dfac3 /include
parentfc94852b284708407d8ad00b516dc5d30c6c561b (diff)
downloadqtlocation-mapboxgl-075d458403ba2c7367f06e5fc66c2a00c788634a.tar.gz
[core] Add style bindings for "text-writing-mode" layout property
Diffstat (limited to 'include')
-rw-r--r--include/mbgl/style/layers/symbol_layer.hpp4
-rw-r--r--include/mbgl/style/types.hpp5
2 files changed, 9 insertions, 0 deletions
diff --git a/include/mbgl/style/layers/symbol_layer.hpp b/include/mbgl/style/layers/symbol_layer.hpp
index 2493df6046..853c0b282e 100644
--- a/include/mbgl/style/layers/symbol_layer.hpp
+++ b/include/mbgl/style/layers/symbol_layer.hpp
@@ -186,6 +186,10 @@ public:
const PropertyValue<std::vector<TextVariableAnchorType>>& getTextVariableAnchor() const;
void setTextVariableAnchor(const PropertyValue<std::vector<TextVariableAnchorType>>&);
+ static PropertyValue<std::vector<TextWritingModeType>> getDefaultTextWritingMode();
+ const PropertyValue<std::vector<TextWritingModeType>>& getTextWritingMode() const;
+ void setTextWritingMode(const PropertyValue<std::vector<TextWritingModeType>>&);
+
// Paint properties
static PropertyValue<Color> getDefaultIconColor();
diff --git a/include/mbgl/style/types.hpp b/include/mbgl/style/types.hpp
index 13a2e50f01..5d88dafb33 100644
--- a/include/mbgl/style/types.hpp
+++ b/include/mbgl/style/types.hpp
@@ -115,6 +115,11 @@ enum class IconTextFitType : uint8_t {
Height
};
+enum class TextWritingModeType : uint8_t {
+ Horizontal,
+ Vertical
+};
+
enum class LightAnchorType: bool {
Map,
Viewport