| 111 | } |
| 112 | |
| 113 | lv_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 | |
| 131 | void GuiService::redraw() { |
| 132 | // Lock GUI and LVGL |
nothing calls this directly
no outgoing calls
no test coverage detected