summaryrefslogtreecommitdiff
path: root/include/mbgl/style/image.hpp
diff options
context:
space:
mode:
authorThiago Marcos P. Santos <tmpsantos@gmail.com>2017-08-07 19:19:32 +0300
committerThiago Marcos P. Santos <tmpsantos@gmail.com>2017-08-09 18:02:46 +0300
commitc53896caefc96a8c18ab746026330ddc4fc0338e (patch)
tree8f562b0c416d6c99f7b565e58b758701f6081677 /include/mbgl/style/image.hpp
parent9ecbe3642fb4a53b558598239b59bf1d0224c25b (diff)
downloadqtlocation-mapboxgl-c53896caefc96a8c18ab746026330ddc4fc0338e.tar.gz
Bump Mapbox GL Nativeqt-v1.1.0
mapbox-gl-native @ edd7948893fcd40a24d96b790e21d3dd028cecbe
Diffstat (limited to 'include/mbgl/style/image.hpp')
-rw-r--r--include/mbgl/style/image.hpp31
1 files changed, 31 insertions, 0 deletions
diff --git a/include/mbgl/style/image.hpp b/include/mbgl/style/image.hpp
new file mode 100644
index 0000000000..ff3bfedf46
--- /dev/null
+++ b/include/mbgl/style/image.hpp
@@ -0,0 +1,31 @@
+#pragma once
+
+#include <mbgl/util/image.hpp>
+#include <mbgl/util/immutable.hpp>
+
+#include <string>
+
+namespace mbgl {
+namespace style {
+
+class Image {
+public:
+ Image(std::string id, PremultipliedImage&&, float pixelRatio, bool sdf = false);
+ Image(const Image&);
+
+ std::string getID() const;
+
+ const PremultipliedImage& getImage() const;
+
+ // Pixel ratio of the sprite image.
+ float getPixelRatio() const;
+
+ // Whether this image should be interpreted as a signed distance field icon.
+ bool isSdf() const;
+
+ class Impl;
+ Immutable<Impl> baseImpl;
+};
+
+} // namespace style
+} // namespace mbgl