Initial image implementation

This commit is contained in:
2025-12-15 16:22:01 +02:00
parent af9ebe5fe8
commit c626578557
6 changed files with 168 additions and 5 deletions

View File

@@ -12,8 +12,9 @@
#include "sdl_helpers.h"
#include "Widgets/Widget.h"
#include "Widgets/WidgetText.h"
#include "Widgets/WidgetImage.h"
#include "Widgets/WidgetRect.h"
#include "Widgets/WidgetText.h"
using std::cout;
using std::endl;
@@ -26,6 +27,7 @@ using nlohmann::json;
void init_builders(map<string, unique_ptr<Widget>(*)(const json&)>& widget_builders)
{
widget_builders["image"] = &WidgetImage::builder;
widget_builders["rect"] = &WidgetRect::builder;
widget_builders["text"] = &WidgetText::builder;
}