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

Method handleResize

Engine/source/gui/core/guiCanvas.cpp:395–408  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

393CanvasSizeChangeSignal GuiCanvas::smCanvasSizeChangeSignal;
394
395void GuiCanvas::handleResize( WindowId did, S32 width, S32 height )
396{
397 getCanvasSizeChangeSignal().trigger(this);
398 if (Journal::IsPlaying() && mPlatformWindow)
399 {
400 mPlatformWindow->lockSize(false);
401 mPlatformWindow->setSize(Point2I(width, height));
402 mPlatformWindow->lockSize(true);
403 }
404
405 // Notify the scripts
406 if ( isMethod( "onResize" ) )
407 Con::executef( this, "onResize", Con::getIntArg( width ), Con::getIntArg( height ) );
408}
409
410void GuiCanvas::handlePaintEvent(WindowId did)
411{

Callers

nothing calls this directly

Calls 7

IsPlayingFunction · 0.85
executefFunction · 0.85
getIntArgFunction · 0.85
lockSizeMethod · 0.80
Point2IClass · 0.50
triggerMethod · 0.45
setSizeMethod · 0.45

Tested by

no test coverage detected