Lines Matching refs:descendant
364 * Determine the rect of the descendant in this DragLayer's coordinates
366 * @param descendant The descendant whose coordinates we want to find.
368 * @return The factor by which this descendant is scaled relative to this DragLayer.
370 public float getDescendantRectRelativeToSelf(View descendant, Rect r) {
373 float scale = getDescendantCoordRelativeToSelf(descendant, mTmpXY);
376 (int) (mTmpXY[0] + scale * descendant.getMeasuredWidth()),
377 (int) (mTmpXY[1] + scale * descendant.getMeasuredHeight()));
387 public float getDescendantCoordRelativeToSelf(View descendant, int[] coord) {
388 return getDescendantCoordRelativeToSelf(descendant, coord, false);
392 * Given a coordinate relative to the descendant, find the coordinate in this DragLayer's
395 * @param descendant The descendant to which the passed coordinate is relative.
397 * @param includeRootScroll Whether or not to account for the scroll of the root descendant:
398 * sometimes this is relevant as in a child's coordinates within the root descendant.
399 * @return The factor by which this descendant is scaled relative to this DragLayer. Caution
403 public float getDescendantCoordRelativeToSelf(View descendant, int[] coord,
405 return Utilities.getDescendantCoordRelativeToParent(descendant, this,
412 public float mapCoordInSelfToDescendent(View descendant, int[] coord) {
413 return Utilities.mapCoordInSelfToDescendent(descendant, this, coord);