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

Method getOwner

MyGUIEngine/src/MyGUI_MultiListItem.cpp:75–89  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

73 }
74
75 MultiListBox* MultiListItem::getOwner() const
76 {
77 if (getParent() != nullptr)
78 {
79 if (getParent()->isType<MultiListBox>())
80 return getParent()->castType<MultiListBox>();
81 if ((getParent()->getParent() != nullptr) && (getParent()->getParent()->getClientWidget() == getParent()))
82 {
83 if (getParent()->getParent()->isType<MultiListBox>())
84 return getParent()->getParent()->castType<MultiListBox>();
85 }
86 }
87
88 return nullptr;
89 }
90
91} // namespace MyGUI

Callers

nothing calls this directly

Calls 2

getClientWidgetMethod · 0.80
getParentMethod · 0.45

Tested by

no test coverage detected