| 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 | } |