Home | History | Annotate | Download | only in launcher3

Lines Matching full:descendant

329      * Determine the rect of the descendant in this DragLayer's coordinates
331 * @param descendant The descendant whose coordinates we want to find.
333 * @return The factor by which this descendant is scaled relative to this DragLayer.
335 public float getDescendantRectRelativeToSelf(View descendant, Rect r) {
338 float scale = getDescendantCoordRelativeToSelf(descendant, mTmpXY);
341 (int) (mTmpXY[0] + scale * descendant.getMeasuredWidth()),
342 (int) (mTmpXY[1] + scale * descendant.getMeasuredHeight()));
352 public float getDescendantCoordRelativeToSelf(View descendant, int[] coord) {
353 return getDescendantCoordRelativeToSelf(descendant, coord, false);
357 * Given a coordinate relative to the descendant, find the coordinate in this DragLayer's
360 * @param descendant The descendant to which the passed coordinate is relative.
362 * @param includeRootScroll Whether or not to account for the scroll of the root descendant:
363 * sometimes this is relevant as in a child's coordinates within the root descendant.
364 * @return The factor by which this descendant is scaled relative to this DragLayer. Caution
368 public float getDescendantCoordRelativeToSelf(View descendant, int[] coord,
370 return Utilities.getDescendantCoordRelativeToParent(descendant, this,
377 public float mapCoordInSelfToDescendent(View descendant, int[] coord) {
378 return Utilities.mapCoordInSelfToDescendent(descendant, this, coord);