1 #ifndef BLOBS_UI_LABEL_HPP_
2 #define BLOBS_UI_LABEL_HPP_
5 #include "../graphics/Texture.hpp"
23 explicit Label(const graphics::Font &);
26 Label(const Label &) = delete;
27 Label &operator =(const Label &) = delete;
29 Label(Label &&) = delete;
30 Label &operator =(Label &&) = delete;
33 Label &Text(const std::string &);
34 Label &Font(const graphics::Font &);
35 Label &Foreground(const glm::vec4 &);
36 Label &Background(const glm::vec4 &);
38 Label &Position(const glm::vec3 &p) noexcept { pos = p; return *this; }
39 const glm::vec3 &Position() const noexcept { return pos; }
41 Label &Origin(Gravity o) noexcept { origin = o; return *this; }
42 Gravity Origin() const noexcept { return origin; }
45 void Draw(app::Assets &, graphics::Viewport &) noexcept;
51 const graphics::Font *font;
53 graphics::Texture tex;