/** Translate a Rect in screen coordinates into the app window's coordinates. */ public void translateRectInScreenToAppWindow(Rect rect) { rect.scale(applicationInvertedScale); }
public void getMagnifiedFrameInContentCoordsLocked(Rect rect) { MagnificationSpec spec = mMagnificationSpec; mMagnifiedBounds.getBounds(rect); rect.offset((int) -spec.offsetX, (int) -spec.offsetY); rect.scale(1.0f / spec.scale); }
/** Translate a Rect in application's window to screen. */ public void translateRectInAppWindowToScreen(Rect rect) { rect.scale(applicationScale); }