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

Method getVirtualRendererSize

core/ui/UIButton.cpp:649–665  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647}
648
649Vec2 Button::getVirtualRendererSize() const
650{
651 if (_unifySize)
652 {
653 return this->getNormalSize();
654 }
655
656 if (nullptr != _titleRenderer)
657 {
658 Vec2 titleSize = _titleRenderer->getContentSize();
659 if (!_normalTextureLoaded && !_titleRenderer->getString().empty())
660 {
661 return titleSize;
662 }
663 }
664 return _normalTextureSize;
665}
666
667Node* Button::getVirtualRenderer()
668{

Callers

nothing calls this directly

Calls 4

getNormalSizeMethod · 0.95
getContentSizeMethod · 0.45
emptyMethod · 0.45
getStringMethod · 0.45

Tested by

no test coverage detected