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

Method bindViewCore

framework/ui/src/Label.cpp:19–29  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

17 Notifier<const std::string &> &Label::onLinkClick() { return _onLinkClick; }
18
19 void Label::bindViewCore()
20 {
21 View::bindViewCore();
22 auto textCore = View::core<Label::Core>();
23 textCore->text.bind(text);
24 textCore->wrap.bind(wrap);
25 textCore->textOverflow.bind(textOverflow);
26
27 _linkClickCallbackReceiver =
28 textCore->_linkClickCallback.set([=](const auto &link) { _onLinkClick.notify(link); });
29 }
30
31 void Label::updateFromStylesheet() { View::updateFromStylesheet(); }
32}

Callers

nothing calls this directly

Calls 3

bindMethod · 0.45
setMethod · 0.45
notifyMethod · 0.45

Tested by

no test coverage detected