MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / sleep

Method sleep

Engine/source/gui/core/guiControl.cpp:390–411  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

388//-----------------------------------------------------------------------------
389
390void GuiControl::sleep()
391{
392 #ifdef DEBUG_SPEW
393 Platform::outputDebugString( "[GuiControl] Putting to sleep %i:%s (%s:%s) awake=%s",
394 getId(), getClassName(), getName(), getInternalName(),
395 mAwake ? "true" : "false" );
396 #endif
397
398 if( !mAwake )
399 return;
400
401 iterator i;
402 for(i = begin(); i != end(); i++)
403 {
404 GuiControl *ctrl = static_cast<GuiControl *>(*i);
405 if( ctrl->isAwake() )
406 ctrl->sleep();
407 }
408
409 if( mAwake )
410 onSleep();
411}
412
413//=============================================================================
414// Rendering.

Callers 4

audioWriteFloatBufferMethod · 0.45
audioWriteShortBufferMethod · 0.45
audioWriteByteBufferMethod · 0.45
removeObjectMethod · 0.45

Calls 3

beginFunction · 0.85
endFunction · 0.85
getNameFunction · 0.50

Tested by

no test coverage detected