diff options
Diffstat (limited to 'src/mbgl/style/image_impl.hpp')
-rw-r--r-- | src/mbgl/style/image_impl.hpp | 15 |
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 |