MCPcopy Create free account
hub / github.com/axmolengine/axmol / setTitleText

Method setTitleText

core/ui/UITabControl.cpp:548–558  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

546}
547
548void 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
560std::string_view TabHeader::getTitleText() const
561{

Callers

nothing calls this directly

Calls 2

setStringMethod · 0.45
setPositionMethod · 0.45

Tested by

no test coverage detected