]> git.localhorst.tv Git - blobs.git/blobdiff - src/ui/Label.hpp
overhaul need system
[blobs.git] / src / ui / Label.hpp
index 90ed738639e5761df8de90ee4a2817ab48cdc0f8..267cc639c6bc1b39470593f57db496a0d86aae68 100644 (file)
@@ -21,10 +21,15 @@ public:
        ~Label() override;
 
 public:
-       Label &Text(const std::string &);
-       Label &Font(const graphics::Font &);
-       Label &Foreground(const glm::vec4 &);
-       Label &Background(const glm::vec4 &);
+       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 &);
 
        glm::vec2 Size() override;
        void Draw(app::Assets &, graphics::Viewport &) noexcept override;