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

Function onEnableSwitchChanged

Tactility/Source/app/btmanage/View.cpp:19–24  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17namespace tt::app::btmanage {
18
19static void onEnableSwitchChanged(lv_event_t* event) {
20 auto* enable_switch = static_cast<lv_obj_t*>(lv_event_get_target(event));
21 bool is_on = lv_obj_has_state(enable_switch, LV_STATE_CHECKED);
22 auto bt = std::static_pointer_cast<BtManage>(getCurrentApp());
23 bt->getBindings().onBtToggled(is_on);
24}
25
26static void onEnableOnBootSwitchChanged(lv_event_t* event) {
27 auto* enable_switch = static_cast<lv_obj_t*>(lv_event_get_target(event));

Callers

nothing calls this directly

Calls 1

getCurrentAppFunction · 0.85

Tested by

no test coverage detected