summaryrefslogtreecommitdiff
path: root/src/mbgl/style/image_impl.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2019-12-09 15:09:42 +0100
committerAlexander Shalamov <alexander.shalamov@mapbox.com>2020-01-15 15:02:11 +0200
commit62b0f4cde289e5918c41d5b69b0a03baa6821862 (patch)
tree2042319da9abd756564dcbba7812d4868a177800 /src/mbgl/style/image_impl.hpp
parent4b171cccf1c4012f8962b022f86c4ac8d73f09df (diff)
downloadqtlocation-mapboxgl-62b0f4cde289e5918c41d5b69b0a03baa6821862.tar.gz
[core] Add stretches and content to style::Image
Diffstat (limited to 'src/mbgl/style/image_impl.hpp')
-rw-r--r--src/mbgl/style/image_impl.hpp15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mbgl/style/image_impl.hpp b/src/mbgl/style/image_impl.hpp
index b2decbf781..683cd3347b 100644
--- a/src/mbgl/style/image_impl.hpp
+++ b/src/mbgl/style/image_impl.hpp
@@ -11,7 +11,13 @@ namespace style {
class Image::Impl {
public:
- Impl(std::string id, PremultipliedImage&&, float pixelRatio, bool sdf = false);
+ Impl(std::string id,
+ PremultipliedImage&&,
+ float pixelRatio,
+ bool sdf = false,
+ ImageStretches stretchX = {},
+ ImageStretches stretchY = {},
+ optional<ImageContent> content = nullopt);
const std::string id;
@@ -22,6 +28,13 @@ public:
// Whether this image should be interpreted as a signed distance field icon.
const bool sdf;
+
+ // Stretch areas of this image.
+ const ImageStretches stretchX;
+ const ImageStretches stretchY;
+
+ // The space where text can be fit into this image.
+ const ImageContent content;
};
} // namespace style