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

Method _getContentSize

MyGUIEngine/src/MyGUI_MenuItem.cpp:174–181  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 }
173
174 IntSize MenuItem::_getContentSize() const
175 {
176 ISubWidgetText* text = getSubWidgetText();
177 if (text == nullptr)
178 return mMinSize;
179
180 return text->getTextSize() + (getSize() - text->getSize());
181 }
182
183 void MenuItem::updateCheck()
184 {

Callers 1

updateMethod · 0.80

Calls 3

getSizeFunction · 0.85
getTextSizeMethod · 0.45
getSizeMethod · 0.45

Tested by

no test coverage detected