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

Method getWindowSize

Engine/source/gui/core/guiCanvas.cpp:466–478  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466Point2I GuiCanvas::getWindowSize()
467{
468 // CodeReview Asserting on this breaks previous logic
469 // and code assumptions. It seems logical that we would
470 // handle this and return an error value rather than implementing
471 // if(!mPlatformWindow) whenever we need to call getWindowSize.
472 // This should help keep our API error free and easy to use, while
473 // cutting down on code duplication for sanity checking. [5/5/2007 justind]
474 if( !mPlatformWindow )
475 return Point2I(-1,-1);
476
477 return mPlatformWindow->getClientExtent();
478}
479
480void GuiCanvas::enableKeyboardTranslation()
481{

Callers 4

renderTooltipMethod · 0.45
defaultTooltipRenderMethod · 0.45
renderGraphTooltipMethod · 0.45
renderTooltipMethod · 0.45

Calls 2

Point2IClass · 0.50
getClientExtentMethod · 0.45

Tested by 1

renderTooltipMethod · 0.36