MCPcopy Create free account
hub / github.com/MyGUI/mygui / setCaption

Method setCaption

MyGUIEngine/src/MyGUI_TabItem.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 void TabItem::setCaption(const UString& _value)
31 {
32 TabControl* owner = getParent() != nullptr ? getParent()->castType<TabControl>(false) : nullptr;
33 if (owner != nullptr)
34 owner->setItemName(this, _value);
35 else
36 Base::setCaption(_value);
37 }
38
39 const UString& TabItem::getCaption() const
40 {

Callers

nothing calls this directly

Calls 2

setCaptionFunction · 0.85
setItemNameMethod · 0.45

Tested by

no test coverage detected