MCPcopy Create free account
hub / github.com/AshampooSystems/boden / Switch

Method Switch

framework/ui/src/Switch.cpp:10–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8 }
9
10 Switch::Switch(std::shared_ptr<ViewCoreFactory> viewCoreFactory) : View(std::move(viewCoreFactory))
11 {
12 detail::VIEW_CORE_REGISTER(Switch, View::viewCoreFactory());
13 }
14
15 TriState Switch::state() const { return on ? TriState::On : TriState::Off; }
16

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected