]> git.localhorst.tv Git - blank.git/blobdiff - src/ui/Text.hpp
per block type "gravity"
[blank.git] / src / ui / Text.hpp
index bdeb304daff1b79659486ce608733bf51f8a8dd3..c4318737e1246de4036330ecf639f95fa5729621 100644 (file)
@@ -24,11 +24,14 @@ public:
                Set(f, s.c_str());
        }
 
-       void Pivot(Gravity p) {
+       Gravity Pivot() const noexcept { return pivot; }
+       void Pivot(Gravity p) noexcept {
                pivot = p;
                dirty = true;
        }
 
+       const glm::vec2 &Size() const noexcept { return size; }
+
        void Render(Viewport &) noexcept;
 
 private: