63 #ifndef PTK_GUI_LABEL_H 64 #define PTK_GUI_LABEL_H 70 #include <glm/glm.hpp> 71 #include <glm/gtc/type_precision.hpp>
Label * setBackgroundColor(const glm::vec4 &color)
Alignment _align
Definition: Label.h:131
Definition: ZOrderable.h:75
static const int QUAD_BORDER_TOP
Definition: Label.h:127
Definition: Dimensions.h:92
bool _modified
Definition: Label.h:138
std::vector< String * > _strings
Definition: Label.h:137
Definition: Renderer.h:169
struct String String
Definition: c/Renderer.h:77
Definition: Renderable.h:76
virtual void render(uint64_t delta, Dimensions d)
The Padded class is an interface which specifies that a GUI element implementing it supports internal...
Label * addString(String *str)
static const int QUAD_BORDER_BOTTOM
Definition: Label.h:128
struct Renderer Renderer
Definition: c/Renderer.h:81
glm::vec4 _backgroundColor
Definition: Label.h:134
Definition: UntexturedQuadRenderable.h:82
virtual Label * setZ(float z)
float getTextWidth() const
Alignment
Definition: Label.h:94
static const int QUAD_BORDER_LEFT
Definition: Label.h:125
Dimensions _lastDimensions
Definition: Label.h:132
static const int QUAD_BORDER_RIGHT
Definition: Label.h:126
Label * setBorderColor(const glm::vec4 &color)
Label * setAlignment(Alignment align)
Definition: Label.h:117
virtual void windowResize()
Definition: Label.h:120
glm::vec4 _borderColor
Definition: Label.h:135
static const int QUAD_BG
Definition: Label.h:124
float getRequiredHeight() const