Updated clay

This commit is contained in:
Yousef Khadadeh 2026-04-30 17:11:33 +03:00
parent c1cd3e4e49
commit 91ff487edd
6 changed files with 1604 additions and 1033 deletions

View file

@ -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);

View file

@ -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;
};