summaryrefslogtreecommitdiff
path: root/src/mbgl/text
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-05-23 11:49:40 +0200
committerKonstantin Käfer <mail@kkaefer.com>2016-05-23 18:04:31 +0200
commitb9f23661f88ad1982a913ff78ed39a398b53b7e3 (patch)
treeaa01bf6d8823e7037be867e1ed3f79424917be7a /src/mbgl/text
parent7b4f5b86af532ecea9dba4221bcac94f93ba1f01 (diff)
downloadqtlocation-mapboxgl-b9f23661f88ad1982a913ff78ed39a398b53b7e3.tar.gz
[core] move RenderItem and GlyphRange to their own headers
Diffstat (limited to 'src/mbgl/text')
-rw-r--r--src/mbgl/text/glyph.hpp4
-rw-r--r--src/mbgl/text/glyph_range.hpp13
2 files changed, 14 insertions, 3 deletions
diff --git a/src/mbgl/text/glyph.hpp b/src/mbgl/text/glyph.hpp
index 62949ee3fd..e4984be868 100644
--- a/src/mbgl/text/glyph.hpp
+++ b/src/mbgl/text/glyph.hpp
@@ -1,18 +1,16 @@
#ifndef MBGL_TEXT_GLYPH
#define MBGL_TEXT_GLYPH
+#include <mbgl/text/glyph_range.hpp>
#include <mbgl/util/rect.hpp>
#include <cstdint>
-#include <utility>
#include <vector>
#include <string>
#include <map>
namespace mbgl {
-typedef std::pair<uint16_t, uint16_t> GlyphRange;
-
// Note: this only works for the BMP
GlyphRange getGlyphRange(char32_t glyph);
diff --git a/src/mbgl/text/glyph_range.hpp b/src/mbgl/text/glyph_range.hpp
new file mode 100644
index 0000000000..7a0c276df2
--- /dev/null
+++ b/src/mbgl/text/glyph_range.hpp
@@ -0,0 +1,13 @@
+#ifndef MBGL_TEXT_GLYPH_RANGE
+#define MBGL_TEXT_GLYPH_RANGE
+
+#include <utility>
+#include <cstdint>
+
+namespace mbgl {
+
+typedef std::pair<uint16_t, uint16_t> GlyphRange;
+
+} // end namespace mbgl
+
+#endif