X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FLabel.hpp;h=267cc639c6bc1b39470593f57db496a0d86aae68;hb=475f28f06c9e14912bab8119264e247ef466513d;hp=90ed738639e5761df8de90ee4a2817ab48cdc0f8;hpb=56f570e713c42d30109a214e68a2beed96ba1999;p=blobs.git diff --git a/src/ui/Label.hpp b/src/ui/Label.hpp index 90ed738..267cc63 100644 --- a/src/ui/Label.hpp +++ b/src/ui/Label.hpp @@ -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;