Added WidgetRect to draw rectangles

This commit is contained in:
2025-12-08 15:33:19 +02:00
parent 3a52a3991c
commit 8e88adf1df
4 changed files with 246 additions and 0 deletions

View File

@@ -12,6 +12,7 @@
#include "sdl_helpers.h"
#include "Widgets/Widget.h"
#include "Widgets/WidgetText.h"
#include "Widgets/WidgetRect.h"
using std::cout;
using std::endl;
@@ -23,6 +24,7 @@ using nlohmann::json;
void init_builders(map<string, Widget*(*)(const json&)>& widget_builders)
{
widget_builders["text"] = &WidgetText::builder;
widget_builders["rect"] = &WidgetRect::builder;
}
int main(int argc, char **argv)