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 &);
void Draw(app::Assets &, graphics::Viewport &) noexcept override;
private:
- void Update();
+ void FixLayout() override;
private:
const graphics::Font *font;
graphics::Texture tex;
glm::vec4 fg_color;
glm::vec4 bg_color;
- bool dirty;
};