Added setters for Widget properties
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user