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

Method createAppViews

Tactility/Source/service/gui/GuiService.cpp:113–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111}
112
113lv_obj_t* GuiService::createAppViews(lv_obj_t* parent) {
114 lv_obj_send_event(statusbarWidget, LV_EVENT_DRAW_MAIN, nullptr);
115 lv_obj_t* child_container = lv_obj_create(parent);
116 lv_obj_set_style_pad_all(child_container, 0, LV_STATE_DEFAULT);
117 lv_obj_set_width(child_container, LV_PCT(100));
118 lv_obj_set_style_border_width(child_container, 0, LV_STATE_DEFAULT);
119 lv_obj_set_flex_grow(child_container, 1);
120
121 if (softwareKeyboardIsEnabled()) {
122 keyboard = lv_keyboard_create(parent);
123 lv_obj_add_flag(keyboard, LV_OBJ_FLAG_HIDDEN);
124 } else {
125 keyboard = nullptr;
126 }
127
128 return child_container;
129}
130
131void GuiService::redraw() {
132 // Lock GUI and LVGL

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected