mirror of
https://github.com/ByteWelder/Tactility.git
synced 2026-02-18 19:03:16 +00:00
18 lines
508 B
C++
18 lines
508 B
C++
#include "lvgl.h"
|
|
#include "lvgl/Toolbar.h"
|
|
|
|
static void onShow(tt::app::AppContext& context, lv_obj_t* parent) {
|
|
lv_obj_t* toolbar = tt::lvgl::toolbar_create(parent, context);
|
|
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::app::AppManifest hello_world_app = {
|
|
.id = "HelloWorld",
|
|
.name = "Hello World",
|
|
.onShow = onShow,
|
|
};
|