MCPcopy Create free account
hub / github.com/TactilityProject/Tactility / onShow

Method onShow

Tactility/Source/app/settings/Settings.cpp:32–49  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

30class SettingsApp final : public App {
31
32 void onShow(AppContext& app, lv_obj_t* parent) override {
33 lv_obj_set_flex_flow(parent, LV_FLEX_FLOW_COLUMN);
34 lv_obj_set_style_pad_row(parent, 0, LV_STATE_DEFAULT);
35
36 lvgl::toolbar_create(parent, app);
37
38 auto* list = lv_list_create(parent);
39 lv_obj_set_width(list, LV_PCT(100));
40 lv_obj_set_flex_grow(list, 1);
41
42 auto manifests = getAppManifests();
43 std::ranges::sort(manifests, SortAppManifestByName);
44 for (const auto& manifest: manifests) {
45 if (manifest->appCategory == Category::Settings) {
46 createWidget(manifest, list);
47 }
48 }
49 }
50};
51
52extern const AppManifest manifest = {

Callers

nothing calls this directly

Calls 3

toolbar_createFunction · 0.85
getAppManifestsFunction · 0.85
createWidgetFunction · 0.85

Tested by

no test coverage detected