]> git.localhorst.tv Git - blobs.git/blobdiff - src/ui/Label.hpp
fix layout
[blobs.git] / src / ui / Label.hpp
index 267cc639c6bc1b39470593f57db496a0d86aae68..7ba884b3d6d47430df5c406d05d28395a746946b 100644 (file)
@@ -22,11 +22,6 @@ public:
 
 public:
        Label *Text(const std::string &);
-       Label *Decimal(double n, int prec = 2);
-       Label *Length(double m);
-       Label *Mass(double kg);
-       Label *Percentage(double n);
-       Label *Time(double s);
        Label *Font(const graphics::Font &);
        Label *Foreground(const glm::vec4 &);
        Label *Background(const glm::vec4 &);
@@ -35,7 +30,7 @@ public:
        void Draw(app::Assets &, graphics::Viewport &) noexcept override;
 
 private:
-       void Update();
+       void FixLayout() override;
 
 private:
        const graphics::Font *font;
@@ -43,7 +38,6 @@ private:
        graphics::Texture tex;
        glm::vec4 fg_color;
        glm::vec4 bg_color;
-       bool dirty;
 
 };