MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / setLabel

Method setLabel

source/windowing/StarWidget.cpp:472–481  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

470}
471
472bool Widget::setLabel(String const& name, String const& value) {
473 if (containsChild(name)) {
474 auto child = fetchChild(name);
475 if (auto label = as<LabelWidget>(child)) {
476 label->setText(value);
477 return true;
478 }
479 }
480 return false;
481}
482
483std::ostream& operator<<(std::ostream& os, Widget const& widget) {
484 os << widget.toStringImpl(0);

Callers 6

setupWidgetMethod · 0.80
buildTooltipMethod · 0.80
setupWidgetMethod · 0.80
createTooltipMethod · 0.80

Calls 1

setTextMethod · 0.45

Tested by

no test coverage detected