C++ refactoring (#91)
This commit is contained in:
committed by
GitHub
parent
d06137ba76
commit
ca5d4b8226
@@ -42,7 +42,7 @@ UI is created with [lvgl](https://github.com/lvgl/lvgl) which has lots of [widge
|
||||
Creating a touch-capable UI is [easy](https://docs.lvgl.io/9.0/get-started/quick-overview.html) and doesn't require your own render loop!
|
||||
|
||||
```C++
|
||||
static void app_show(App app, lv_obj_t* parent) {
|
||||
static void app_show(tt::app::App app, lv_obj_t* parent) {
|
||||
// Default toolbar with app name and close button
|
||||
lv_obj_t* toolbar = tt::lvgl::toolbar_create(parent, app);
|
||||
lv_obj_align(toolbar, LV_ALIGN_TOP_MID, 0, 0);
|
||||
@@ -54,10 +54,10 @@ static void app_show(App app, lv_obj_t* parent) {
|
||||
// Widgets are auto-removed from the parent when the app is closed
|
||||
}
|
||||
|
||||
extern const AppManifest manifest = {
|
||||
extern const tt::app::Manifest manifest = {
|
||||
.id = "HelloWorld", // Used to identify and start an app
|
||||
.name = "Hello World", // Shown on the desktop and app's toolbar
|
||||
.type = AppTypeUser,
|
||||
.type = TypeUser,
|
||||
.on_show = &app_show // A minimal setup sets the on_show() function
|
||||
};
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user