MCPcopy Create free account
hub / github.com/GarageGames/Torque3D / setActive

Method setActive

Engine/source/gui/core/guiControl.cpp:1773–1797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1771//-----------------------------------------------------------------------------
1772
1773void GuiControl::setActive( bool value )
1774{
1775 if( mActive == value )
1776 return;
1777
1778 mActive = value;
1779
1780 if ( !mActive )
1781 clearFirstResponder();
1782
1783 if ( mVisible && mAwake )
1784 setUpdate();
1785
1786 if( getNamespace() ) // May be called during construction.
1787 onActive_callback( value );
1788
1789 // Pass activation on to children.
1790
1791 for( iterator iter = begin(); iter != end(); ++ iter )
1792 {
1793 GuiControl* child = dynamic_cast< GuiControl* >( *iter );
1794 if( child )
1795 child->setActive( value );
1796 }
1797}
1798
1799//=============================================================================
1800// Persistence.

Callers 15

startDebuggerFunction · 0.45
shapeEditor.ed.csFile · 0.45
ConvexEditorGuiFunction · 0.45
datablockEditor.csFile · 0.45
MeshRoadEditorGuiFunction · 0.45
ProjectBaseFunction · 0.45
updateLinkDataFunction · 0.45
disableLinkDataFunction · 0.45
GuiEaseEditDlgFunction · 0.45
RoadEditorGuiFunction · 0.45

Calls 2

beginFunction · 0.85
endFunction · 0.85

Tested by 1

refreshMethod · 0.36