Lines Matching refs:rcRect
382 CPDF_Rect CPWL_Utils::InflateRect(const CPDF_Rect & rcRect, FX_FLOAT fSize)
384 if (rcRect.IsEmpty()) return rcRect;
386 CPDF_Rect rcNew(rcRect.left - fSize,
387 rcRect.bottom - fSize,
388 rcRect.right + fSize,
389 rcRect.top + fSize);
394 CPDF_Rect CPWL_Utils::DeflateRect(const CPDF_Rect & rcRect, FX_FLOAT fSize)
396 if (rcRect.IsEmpty()) return rcRect;
398 CPDF_Rect rcNew(rcRect.left + fSize,
399 rcRect.bottom + fSize,
400 rcRect.right - fSize,
401 rcRect.top - fSize);
406 CPDF_Rect CPWL_Utils::ScaleRect(const CPDF_Rect & rcRect,FX_FLOAT fScale)
408 FX_FLOAT fHalfWidth = (rcRect.right - rcRect.left) / 2.0f;
409 FX_FLOAT fHalfHeight = (rcRect.top - rcRect.bottom) / 2.0f;
411 CPDF_Point ptCenter = CPDF_Point((rcRect.left + rcRect.right) / 2,(rcRect.top + rcRect.bottom) / 2);