Added setters for Widget properties

This commit is contained in:
2025-12-18 12:24:19 +02:00
parent 40df0f6e0c
commit 3f4e42d7ce
6 changed files with 73 additions and 0 deletions

View File

@@ -27,6 +27,10 @@ public:
WidgetRect(int x, int y, int width, int height,
int radius = 0, int stroke_size = -1);
void set_color(SDL_Color color);
void set_stroke_size(int stroke_size);
void set_radius(int radius);
virtual void draw() override;
static std::unique_ptr<Widget> builder(const nlohmann::json& j);