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

Method onRender

Engine/modules/Verve/GUI/VEditorScrollControl.cpp:86–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

84//-----------------------------------------------------------------------------
85
86void VEditorScrollControl::onRender( Point2I pOffset, const RectI &pUpdateRect )
87{
88 Parent::onRender( pOffset, pUpdateRect );
89
90 const S32 offsetX = ( mHasVScrollBar ) ? mScrollBarThickness : 1;
91 const S32 offsetY = ( mHasHScrollBar ) ? mScrollBarThickness : 1;
92
93 RectI contentRect( pOffset.x + 1, pOffset.y + 1, getWidth() - offsetX - 1, getHeight() - offsetY - 1 );
94 contentRect.intersect( pUpdateRect );
95
96 GFX->getDrawUtil()->drawRect( contentRect, mProfile->mBorderColor );
97}

Callers

nothing calls this directly

Calls 5

getWidthFunction · 0.85
drawRectMethod · 0.80
getDrawUtilMethod · 0.80
getHeightFunction · 0.50
intersectMethod · 0.45

Tested by

no test coverage detected