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

Method bindViewCore

framework/ui/src/Checkbox.cpp:20–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18 Notifier<const ClickEvent &> &Checkbox::onClick() { return _onClick; }
19
20 void Checkbox::bindViewCore()
21 {
22 View::bindViewCore();
23 auto checkBoxCore = core<Checkbox::Core>();
24 checkBoxCore->label.bind(label);
25 checkBoxCore->state.bind(state);
26
27 _clickCallbackReceiver = checkBoxCore->_clickCallback.set([=]() {
28 ClickEvent evt(shared_from_this());
29 onClick().notify(evt);
30 });
31 }
32}

Callers

nothing calls this directly

Calls 3

bindMethod · 0.45
setMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected