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