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

Method collideDivider

Engine/source/gui/editor/guiInspector.cpp:425–433  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

423//-----------------------------------------------------------------------------
424
425bool GuiInspector::collideDivider( const Point2I &localPnt )
426{
427 RectI divisorRect( getWidth() - getWidth() * mDividerPos - mDividerMargin, 0, mDividerMargin * 2, getHeight() );
428
429 if ( divisorRect.pointInRect( localPnt ) )
430 return true;
431
432 return false;
433}
434
435//-----------------------------------------------------------------------------
436

Callers

nothing calls this directly

Calls 3

getWidthFunction · 0.85
pointInRectMethod · 0.80
getHeightFunction · 0.50

Tested by

no test coverage detected