Searched refs:canvasSize (Results 1 – 3 of 3) sorted by relevance
185 Point canvasSize = getSize(); in calcPaddings() local187 mPadding.x = (canvasSize.x - width) / 2; in calcPaddings()188 mPadding.y = (canvasSize.y - height) / 2; in calcPaddings()
385 Point canvasSize = getSize(); in calcPaddings() local392 if (mPadding.width < canvasSize.x) { in calcPaddings()393 mPadding.x = (canvasSize.x - mPadding.width) / 2; in calcPaddings()398 if (mPadding.height < canvasSize.y) { in calcPaddings()399 mPadding.y = (canvasSize.y - mPadding.height) / 2; in calcPaddings()
857 Rectangle canvasSize = getClientArea(); in setFitScale() local858 int canvasWidth = canvasSize.width; in setFitScale()859 int canvasHeight = canvasSize.height; in setFitScale()