C++ conversion (#80)

Converted project to C++
This commit is contained in:
Ken Van Hoeylandt
2024-11-22 20:26:08 +01:00
committed by GitHub
parent 6d80144e12
commit 85e26636a3
488 changed files with 6017 additions and 39466 deletions
+17
View File
@@ -0,0 +1,17 @@
#include "Ui/Toolbar.h"
static void app_show(tt::App app, lv_obj_t* parent) {
lv_obj_t* toolbar = tt::lvgl::toolbar_create_for_app(parent, app);
lv_obj_align(toolbar, LV_ALIGN_TOP_MID, 0, 0);
lv_obj_t* label = lv_label_create(parent);
lv_label_set_text(label, "Hello, world!");
lv_obj_align(label, LV_ALIGN_CENTER, 0, 0);
}
extern const tt::AppManifest hello_world_app = {
.id = "HelloWorld",
.name = "Hello World",
.type = tt::AppTypeUser,
.on_show = &app_show
};