| 546 | } |
| 547 | |
| 548 | void TabHeader::setTitleText(std::string_view text) |
| 549 | { |
| 550 | if (text == getTitleText()) |
| 551 | { |
| 552 | return; |
| 553 | } |
| 554 | |
| 555 | _tabLabelRender->setString(text); |
| 556 | updateContentSize(); |
| 557 | _tabLabelRender->setPosition(_contentSize * 0.5f); |
| 558 | } |
| 559 | |
| 560 | std::string_view TabHeader::getTitleText() const |
| 561 | { |
nothing calls this directly
no test coverage detected