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

Method setVisible

MyGUIEngine/src/MyGUI_MenuControl.cpp:527–546  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

525 }
526
527 void MenuControl::setVisible(bool _visible)
528 {
529 if (mAnimateSmooth)
530 {
531 ControllerManager::getInstance().removeItem(this);
532 setAlpha(ALPHA_MAX);
533 setEnabledSilent(true);
534 mAnimateSmooth = false;
535 }
536
537 if (_visible)
538 {
539 if (mOwner == nullptr && mHideByLostKey)
540 {
541 MyGUI::InputManager::getInstance().setKeyFocusWidget(this);
542 }
543 }
544
545 Base::setVisible(_visible);
546 }
547
548 void MenuControl::setVisibleSmooth(bool _visible)
549 {

Callers 3

_wrapItemChildMethod · 0.45
_setItemSelectedMethod · 0.45

Calls 4

setAlphaFunction · 0.85
setVisibleFunction · 0.85
setKeyFocusWidgetMethod · 0.80
removeItemMethod · 0.45

Tested by

no test coverage detected