Initial UI in src

This commit is contained in:
2024-08-17 23:22:44 +02:00
parent 2af5280415
commit 505ec2b171
17 changed files with 608 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
#include "UI_label.hpp"
UI_label::UI_label(std::string id, std::string text, Color fg_color, Color bg_color)
: UI_item(id, UI_LABEL_TYPE, text, 12, fg_color, bg_color)
{
}
UI_label::UI_label(const json& j)
: UI_item(UI_LABEL_TYPE)
{
from_json(j);
}
void UI_label::from_json(const json& j)
{
UI_item::from_json(j);
}
json UI_label::to_json() const
{
return UI_item::to_json();
}