1 #ifndef BLOBS_UI_LABEL_HPP_
2 #define BLOBS_UI_LABEL_HPP_
5 #include "../graphics/Texture.hpp"
20 explicit Label(const graphics::Font &);
24 Label *Text(const std::string &);
25 Label *Decimal(double n, int prec = 2);
26 Label *Length(double m);
27 Label *Mass(double kg);
28 Label *Percentage(double n);
29 Label *Time(double s);
30 Label *Font(const graphics::Font &);
31 Label *Foreground(const glm::vec4 &);
32 Label *Background(const glm::vec4 &);
34 glm::vec2 Size() override;
35 void Draw(app::Assets &, graphics::Viewport &) noexcept override;
41 const graphics::Font *font;
43 graphics::Texture tex;