Added being able to set position via JSON. Text now always wraps on newlines.

This commit is contained in:
2025-12-04 17:44:24 +02:00
parent 56e07e1080
commit 69a50b0584
4 changed files with 21 additions and 19 deletions

View File

@@ -13,7 +13,7 @@ protected:
SDL_Rect m_rect;
public:
Widget(int width, int height);
Widget(int x, int y, int width, int height);
virtual ~Widget();
// Method which updates the internal surface with the latest image