Home | History | Annotate | Download | only in launcher2

Lines Matching full:descendant

291      * Determine the rect of the descendant in this DragLayer's coordinates
293 * @param descendant The descendant whose coordinates we want to find.
295 * @return The factor by which this descendant is scaled relative to this DragLayer.
297 public float getDescendantRectRelativeToSelf(View descendant, Rect r) {
300 float scale = getDescendantCoordRelativeToSelf(descendant, mTmpXY);
302 mTmpXY[0] + descendant.getWidth(), mTmpXY[1] + descendant.getHeight());
313 * Given a coordinate relative to the descendant, find the coordinate in this DragLayer's
316 * @param descendant The descendant to which the passed coordinate is relative.
318 * @return The factor by which this descendant is scaled relative to this DragLayer. Caution
322 public float getDescendantCoordRelativeToSelf(View descendant, int[] coord) {
325 descendant.getMatrix().mapPoints(pt);
326 scale *= descendant.getScaleX();
327 pt[0] += descendant.getLeft();
328 pt[1] += descendant.getTop();
329 ViewParent viewParent = descendant.getParent();