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

Method init

Tactility/Source/app/wifimanage/View.cpp:292–315  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

290// region Main
291
292void View::init(const AppContext& app, lv_obj_t* parent) {
293
294 lv_obj_set_flex_flow(parent, LV_FLEX_FLOW_COLUMN);
295 lv_obj_set_style_pad_row(parent, 0, LV_STATE_DEFAULT);
296
297 root = parent;
298
299 paths = app.getPaths();
300
301 // Toolbar
302
303 lv_obj_t* toolbar = lvgl::toolbar_create(parent, app);
304
305 scanning_spinner = lvgl::toolbar_add_spinner_action(toolbar);
306
307 enable_switch = lvgl::toolbar_add_switch_action(toolbar);
308 lv_obj_add_event_cb(enable_switch, onEnableSwitchChanged, LV_EVENT_VALUE_CHANGED, bindings);
309
310 // Networks
311
312 networks_list = lv_list_create(parent);
313 lv_obj_set_flex_grow(networks_list, 1);
314 lv_obj_set_width(networks_list, LV_PCT(100));
315}
316
317void View::update() {
318 updateWifiToggle();

Callers 1

onShowMethod · 0.45

Calls 4

toolbar_createFunction · 0.85
getPathsMethod · 0.45

Tested by

no test coverage detected