diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-22 16:28:21 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-06-24 09:39:51 -0700 |
commit | 16c435b1517b15a5ea8654987979ef58800b838b (patch) | |
tree | 8f81c4e202e1337d0966a06f27842d45a113fded /include/mbgl/style/layers | |
parent | c4e4cc5081965d03132eea754c27ece3c95961cb (diff) | |
download | qtlocation-mapboxgl-16c435b1517b15a5ea8654987979ef58800b838b.tar.gz |
[core, node] Implement bindings for addLayer
Diffstat (limited to 'include/mbgl/style/layers')
-rw-r--r-- | include/mbgl/style/layers/background_layer.hpp | 6 | ||||
-rw-r--r-- | include/mbgl/style/layers/circle_layer.hpp | 12 | ||||
-rw-r--r-- | include/mbgl/style/layers/fill_layer.hpp | 14 | ||||
-rw-r--r-- | include/mbgl/style/layers/layer.hpp.ejs | 2 | ||||
-rw-r--r-- | include/mbgl/style/layers/line_layer.hpp | 20 | ||||
-rw-r--r-- | include/mbgl/style/layers/raster_layer.hpp | 14 | ||||
-rw-r--r-- | include/mbgl/style/layers/symbol_layer.hpp | 28 |
7 files changed, 48 insertions, 48 deletions
diff --git a/include/mbgl/style/layers/background_layer.hpp b/include/mbgl/style/layers/background_layer.hpp index 2eb84ee499..ac97ec2e6d 100644 --- a/include/mbgl/style/layers/background_layer.hpp +++ b/include/mbgl/style/layers/background_layer.hpp @@ -19,13 +19,13 @@ public: // Paint properties PropertyValue<Color> getBackgroundColor() const; - void setBackgroundColor(PropertyValue<Color>); + void setBackgroundColor(PropertyValue<Color>, const optional<std::string>& klass = {}); PropertyValue<std::string> getBackgroundPattern() const; - void setBackgroundPattern(PropertyValue<std::string>); + void setBackgroundPattern(PropertyValue<std::string>, const optional<std::string>& klass = {}); PropertyValue<float> getBackgroundOpacity() const; - void setBackgroundOpacity(PropertyValue<float>); + void setBackgroundOpacity(PropertyValue<float>, const optional<std::string>& klass = {}); // Private implementation diff --git a/include/mbgl/style/layers/circle_layer.hpp b/include/mbgl/style/layers/circle_layer.hpp index 9c2b458d4b..c8d99ab30e 100644 --- a/include/mbgl/style/layers/circle_layer.hpp +++ b/include/mbgl/style/layers/circle_layer.hpp @@ -27,22 +27,22 @@ public: // Paint properties PropertyValue<float> getCircleRadius() const; - void setCircleRadius(PropertyValue<float>); + void setCircleRadius(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<Color> getCircleColor() const; - void setCircleColor(PropertyValue<Color>); + void setCircleColor(PropertyValue<Color>, const optional<std::string>& klass = {}); PropertyValue<float> getCircleBlur() const; - void setCircleBlur(PropertyValue<float>); + void setCircleBlur(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getCircleOpacity() const; - void setCircleOpacity(PropertyValue<float>); + void setCircleOpacity(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<std::array<float, 2>> getCircleTranslate() const; - void setCircleTranslate(PropertyValue<std::array<float, 2>>); + void setCircleTranslate(PropertyValue<std::array<float, 2>>, const optional<std::string>& klass = {}); PropertyValue<TranslateAnchorType> getCircleTranslateAnchor() const; - void setCircleTranslateAnchor(PropertyValue<TranslateAnchorType>); + void setCircleTranslateAnchor(PropertyValue<TranslateAnchorType>, const optional<std::string>& klass = {}); // Private implementation diff --git a/include/mbgl/style/layers/fill_layer.hpp b/include/mbgl/style/layers/fill_layer.hpp index 90538dd3ea..e70d67f538 100644 --- a/include/mbgl/style/layers/fill_layer.hpp +++ b/include/mbgl/style/layers/fill_layer.hpp @@ -27,25 +27,25 @@ public: // Paint properties PropertyValue<bool> getFillAntialias() const; - void setFillAntialias(PropertyValue<bool>); + void setFillAntialias(PropertyValue<bool>, const optional<std::string>& klass = {}); PropertyValue<float> getFillOpacity() const; - void setFillOpacity(PropertyValue<float>); + void setFillOpacity(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<Color> getFillColor() const; - void setFillColor(PropertyValue<Color>); + void setFillColor(PropertyValue<Color>, const optional<std::string>& klass = {}); PropertyValue<Color> getFillOutlineColor() const; - void setFillOutlineColor(PropertyValue<Color>); + void setFillOutlineColor(PropertyValue<Color>, const optional<std::string>& klass = {}); PropertyValue<std::array<float, 2>> getFillTranslate() const; - void setFillTranslate(PropertyValue<std::array<float, 2>>); + void setFillTranslate(PropertyValue<std::array<float, 2>>, const optional<std::string>& klass = {}); PropertyValue<TranslateAnchorType> getFillTranslateAnchor() const; - void setFillTranslateAnchor(PropertyValue<TranslateAnchorType>); + void setFillTranslateAnchor(PropertyValue<TranslateAnchorType>, const optional<std::string>& klass = {}); PropertyValue<std::string> getFillPattern() const; - void setFillPattern(PropertyValue<std::string>); + void setFillPattern(PropertyValue<std::string>, const optional<std::string>& klass = {}); // Private implementation diff --git a/include/mbgl/style/layers/layer.hpp.ejs b/include/mbgl/style/layers/layer.hpp.ejs index 60365be906..aaae30287c 100644 --- a/include/mbgl/style/layers/layer.hpp.ejs +++ b/include/mbgl/style/layers/layer.hpp.ejs @@ -54,7 +54,7 @@ public: <% for (const property of paintProperties) { -%> PropertyValue<<%- propertyType(property) %>> get<%- camelize(property.name) %>() const; - void set<%- camelize(property.name) %>(PropertyValue<<%- propertyType(property) %>>); + void set<%- camelize(property.name) %>(PropertyValue<<%- propertyType(property) %>>, const optional<std::string>& klass = {}); <% } -%> // Private implementation diff --git a/include/mbgl/style/layers/line_layer.hpp b/include/mbgl/style/layers/line_layer.hpp index 4ffeee114a..abcb425b96 100644 --- a/include/mbgl/style/layers/line_layer.hpp +++ b/include/mbgl/style/layers/line_layer.hpp @@ -43,34 +43,34 @@ public: // Paint properties PropertyValue<float> getLineOpacity() const; - void setLineOpacity(PropertyValue<float>); + void setLineOpacity(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<Color> getLineColor() const; - void setLineColor(PropertyValue<Color>); + void setLineColor(PropertyValue<Color>, const optional<std::string>& klass = {}); PropertyValue<std::array<float, 2>> getLineTranslate() const; - void setLineTranslate(PropertyValue<std::array<float, 2>>); + void setLineTranslate(PropertyValue<std::array<float, 2>>, const optional<std::string>& klass = {}); PropertyValue<TranslateAnchorType> getLineTranslateAnchor() const; - void setLineTranslateAnchor(PropertyValue<TranslateAnchorType>); + void setLineTranslateAnchor(PropertyValue<TranslateAnchorType>, const optional<std::string>& klass = {}); PropertyValue<float> getLineWidth() const; - void setLineWidth(PropertyValue<float>); + void setLineWidth(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getLineGapWidth() const; - void setLineGapWidth(PropertyValue<float>); + void setLineGapWidth(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getLineOffset() const; - void setLineOffset(PropertyValue<float>); + void setLineOffset(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getLineBlur() const; - void setLineBlur(PropertyValue<float>); + void setLineBlur(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<std::vector<float>> getLineDasharray() const; - void setLineDasharray(PropertyValue<std::vector<float>>); + void setLineDasharray(PropertyValue<std::vector<float>>, const optional<std::string>& klass = {}); PropertyValue<std::string> getLinePattern() const; - void setLinePattern(PropertyValue<std::string>); + void setLinePattern(PropertyValue<std::string>, const optional<std::string>& klass = {}); // Private implementation diff --git a/include/mbgl/style/layers/raster_layer.hpp b/include/mbgl/style/layers/raster_layer.hpp index 372434e46d..dea0c26bf3 100644 --- a/include/mbgl/style/layers/raster_layer.hpp +++ b/include/mbgl/style/layers/raster_layer.hpp @@ -22,25 +22,25 @@ public: // Paint properties PropertyValue<float> getRasterOpacity() const; - void setRasterOpacity(PropertyValue<float>); + void setRasterOpacity(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getRasterHueRotate() const; - void setRasterHueRotate(PropertyValue<float>); + void setRasterHueRotate(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getRasterBrightnessMin() const; - void setRasterBrightnessMin(PropertyValue<float>); + void setRasterBrightnessMin(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getRasterBrightnessMax() const; - void setRasterBrightnessMax(PropertyValue<float>); + void setRasterBrightnessMax(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getRasterSaturation() const; - void setRasterSaturation(PropertyValue<float>); + void setRasterSaturation(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getRasterContrast() const; - void setRasterContrast(PropertyValue<float>); + void setRasterContrast(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getRasterFadeDuration() const; - void setRasterFadeDuration(PropertyValue<float>); + void setRasterFadeDuration(PropertyValue<float>, const optional<std::string>& klass = {}); // Private implementation diff --git a/include/mbgl/style/layers/symbol_layer.hpp b/include/mbgl/style/layers/symbol_layer.hpp index b21c8deaf7..77b63d9b91 100644 --- a/include/mbgl/style/layers/symbol_layer.hpp +++ b/include/mbgl/style/layers/symbol_layer.hpp @@ -133,46 +133,46 @@ public: // Paint properties PropertyValue<float> getIconOpacity() const; - void setIconOpacity(PropertyValue<float>); + void setIconOpacity(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<Color> getIconColor() const; - void setIconColor(PropertyValue<Color>); + void setIconColor(PropertyValue<Color>, const optional<std::string>& klass = {}); PropertyValue<Color> getIconHaloColor() const; - void setIconHaloColor(PropertyValue<Color>); + void setIconHaloColor(PropertyValue<Color>, const optional<std::string>& klass = {}); PropertyValue<float> getIconHaloWidth() const; - void setIconHaloWidth(PropertyValue<float>); + void setIconHaloWidth(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getIconHaloBlur() const; - void setIconHaloBlur(PropertyValue<float>); + void setIconHaloBlur(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<std::array<float, 2>> getIconTranslate() const; - void setIconTranslate(PropertyValue<std::array<float, 2>>); + void setIconTranslate(PropertyValue<std::array<float, 2>>, const optional<std::string>& klass = {}); PropertyValue<TranslateAnchorType> getIconTranslateAnchor() const; - void setIconTranslateAnchor(PropertyValue<TranslateAnchorType>); + void setIconTranslateAnchor(PropertyValue<TranslateAnchorType>, const optional<std::string>& klass = {}); PropertyValue<float> getTextOpacity() const; - void setTextOpacity(PropertyValue<float>); + void setTextOpacity(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<Color> getTextColor() const; - void setTextColor(PropertyValue<Color>); + void setTextColor(PropertyValue<Color>, const optional<std::string>& klass = {}); PropertyValue<Color> getTextHaloColor() const; - void setTextHaloColor(PropertyValue<Color>); + void setTextHaloColor(PropertyValue<Color>, const optional<std::string>& klass = {}); PropertyValue<float> getTextHaloWidth() const; - void setTextHaloWidth(PropertyValue<float>); + void setTextHaloWidth(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<float> getTextHaloBlur() const; - void setTextHaloBlur(PropertyValue<float>); + void setTextHaloBlur(PropertyValue<float>, const optional<std::string>& klass = {}); PropertyValue<std::array<float, 2>> getTextTranslate() const; - void setTextTranslate(PropertyValue<std::array<float, 2>>); + void setTextTranslate(PropertyValue<std::array<float, 2>>, const optional<std::string>& klass = {}); PropertyValue<TranslateAnchorType> getTextTranslateAnchor() const; - void setTextTranslateAnchor(PropertyValue<TranslateAnchorType>); + void setTextTranslateAnchor(PropertyValue<TranslateAnchorType>, const optional<std::string>& klass = {}); // Private implementation |