Home | History | Annotate | Download | only in launcher3

Lines Matching full:descendant

365      * Determine the rect of the descendant in this DragLayer's coordinates
367 * @param descendant The descendant whose coordinates we want to find.
369 * @return The factor by which this descendant is scaled relative to this DragLayer.
371 public float getDescendantRectRelativeToSelf(View descendant, Rect r) {
374 float scale = getDescendantCoordRelativeToSelf(descendant, mTmpXY);
377 (int) (mTmpXY[0] + scale * descendant.getMeasuredWidth()),
378 (int) (mTmpXY[1] + scale * descendant.getMeasuredHeight()));
388 public float getDescendantCoordRelativeToSelf(View descendant, int[] coord) {
389 return getDescendantCoordRelativeToSelf(descendant, coord, false);
393 * Given a coordinate relative to the descendant, find the coordinate in this DragLayer's
396 * @param descendant The descendant to which the passed coordinate is relative.
398 * @param includeRootScroll Whether or not to account for the scroll of the root descendant:
399 * sometimes this is relevant as in a child's coordinates within the root descendant.
400 * @return The factor by which this descendant is scaled relative to this DragLayer. Caution
404 public float getDescendantCoordRelativeToSelf(View descendant, int[] coord,
406 return Utilities.getDescendantCoordRelativeToParent(descendant, this,
413 public float mapCoordInSelfToDescendent(View descendant, int[] coord) {
414 return Utilities.mapCoordInSelfToDescendent(descendant, this, coord);