//virtual quint32 ScrollingLayoutRenderer::scrollAmountUntilBottomOverscroll() { // qDebug() << "scroll v = " << scrollValue() << " , raw scroll v = " << rawScrollValue() << " , bottom lim = " << bottomLimit(); if (scrollValue() >= bottomLimit()) { return 0; //already in bottom overscroll } return (quint32)qAbs(bottomLimit() - scrollValue()); }
/*Determine distance from bottom-left of Board*/ int distFromDL(char board[BOARD_SIZE][BOARD_SIZE], Location *loc){ int down = abs(bottomLimit(board, loc) - loc->row); int left = abs(leftLimit(board, loc) - loc->column); return minimum(down, left); }
/*Determine distance from bottom-right of Board*/ int distFromDR(char board[BOARD_SIZE][BOARD_SIZE], Location *loc){ int down = abs(bottomLimit(board, loc) - loc->row); int right = abs(rightLimit(board, loc) - loc->column); return minimum(down, right); }
/*Determine distance from bottom of Board*/ int distFromD(char board[BOARD_SIZE][BOARD_SIZE], Location *loc){ int down = abs(bottomLimit(board, loc) - loc->row); return down; }