X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FLabel.hpp;h=7ba884b3d6d47430df5c406d05d28395a746946b;hb=refs%2Fheads%2Fmaster;hp=267cc639c6bc1b39470593f57db496a0d86aae68;hpb=475f28f06c9e14912bab8119264e247ef466513d;p=blobs.git diff --git a/src/ui/Label.hpp b/src/ui/Label.hpp index 267cc63..7ba884b 100644 --- a/src/ui/Label.hpp +++ b/src/ui/Label.hpp @@ -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; };