Game Accessibility Library logo SourceForge.net Logo
Game Accessibility Suite: CATWindow::CalcSlack
bool CATWindow::CalcSlack ( CATInt32 movePos,
CATInt32 opposite,
const CATInt32 dockPos,
CATInt32 slackCounter,
bool  inside = false 
) [protected]

CalcSlack is a utility function for calculating docking offsets

Parameters:
movePos - requested move position, may be changed on ret
opposite - opposite side of requested move, may be changed on ret
dockPos - position to check against
slackCounter - counter tracking distance we've docked so far on pos
inside - are we docking inside the rect or outside?
Returns:
true if movePos/opposite changed and docked, false otherwise.

Definition at line 504 of file CATWindow.cpp.

References CATAbs(), and kDOCKDISTANCE.

Referenced by OnMoving().


Generated on Mon Feb 11 04:11:24 2008 for Game Accessibility Suite by doxygen 1.5.4