Updated clay
This commit is contained in:
parent
c1cd3e4e49
commit
91ff487edd
6 changed files with 1604 additions and 1033 deletions
|
|
@ -5,7 +5,7 @@ namespace GUIStuff {
|
|||
|
||||
MutableTextLabel::MutableTextLabel(GUIManager& gui): Element(gui) {}
|
||||
|
||||
void MutableTextLabel::layout(const Clay_ElementId& id, const std::string& text, Clay_TextElementConfig* textConfig) {
|
||||
void MutableTextLabel::layout(const Clay_ElementId& id, const std::string& text, const Clay_TextElementConfig& textConfig) {
|
||||
if(text != oldText) {
|
||||
oldText = text;
|
||||
gui.invalidate_draw_element(this);
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ namespace GUIStuff {
|
|||
class MutableTextLabel : public Element {
|
||||
public:
|
||||
MutableTextLabel(GUIManager& gui);
|
||||
void layout(const Clay_ElementId& id, const std::string& text, Clay_TextElementConfig* textConfig);
|
||||
void layout(const Clay_ElementId& id, const std::string& text, const Clay_TextElementConfig& textConfig);
|
||||
private:
|
||||
std::string oldText;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue