Home
last modified time | relevance | path

Searched refs:mCropObj (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DImageCrop.java44 private CropObject mCropObj = null; field in ImageCrop
122 if (!mCropObj.selectEdge(x, y)) { in onTouchEvent()
123 mMovingBlock = mCropObj.selectEdge(CropObject.MOVE_BLOCK); in onTouchEvent()
132 mCropObj.selectEdge(CropObject.MOVE_NONE); in onTouchEvent()
137 internallyUpdateLocalRep(mCropObj.getInnerBounds(), mCropObj.getOuterBounds()); in onTouchEvent()
144 mCropObj.moveCurrentSelection(dx, dy); in onTouchEvent()
163 mCropObj.unsetAspectRatio(); in applyFreeAspect()
168 RectF outer = mCropObj.getOuterBounds(); in applyOriginalAspect()
173 mCropObj.resetBoundsTo(outer, outer); in applyOriginalAspect()
174 internallyUpdateLocalRep(mCropObj.getInnerBounds(), mCropObj.getOuterBounds()); in applyOriginalAspect()
[all …]
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/crop/
DCropView.java51 private CropObject mCropObj = null; field in CropView
115 if (mCropObj != null) { in initialize()
116 RectF crop = mCropObj.getInnerBounds(); in initialize()
117 RectF containing = mCropObj.getOuterBounds(); in initialize()
121 mCropObj.resetBoundsTo(newCropBounds, newPhotoBounds); in initialize()
126 mCropObj = new CropObject(newPhotoBounds, newCropBounds, 0); in initialize()
132 return mCropObj.getInnerBounds(); in getCrop()
136 return mCropObj.getOuterBounds(); in getPhoto()
155 if (!mCropObj.selectEdge(x, y)) { in onTouchEvent()
156 mMovingBlock = mCropObj.selectEdge(CropObject.MOVE_BLOCK); in onTouchEvent()
[all …]