Home | History | Annotate | Download | only in view

Lines Matching refs:Region

37 import android.graphics.Region;
420 * intersects the the invalid region. Because the tree is traversed in-order,
428 * Note that the framework will not draw views that are not in the invalid region.
5208 * @param dirty the rectangle representing the bounds of the dirty region
5236 * @param l the left position of the dirty region
5237 * @param t the top position of the dirty region
5238 * @param r the right position of the dirty region
5239 * @param b the bottom position of the dirty region
6765 * Amount by which to extend the left fading region. Called only when
6779 * Amount by which to extend the right fading region. Called only when
6793 * Amount by which to extend the top fading region. Called only when
6807 * Amount by which to extend the bottom fading region. Called only when
8611 * region (passed as a parameter to this function).
8613 * @param region The transparent region for this ViewRoot (window).
8616 * point is opaque, regardless of the transparent region; returns false
8621 public boolean gatherTransparentRegion(Region region) {
8623 if (region != null && attachInfo != null) {
8627 // remove it from the transparent region.
8630 region.op(location[0], location[1], location[0] + mRight - mLeft,
8631 location[1] + mBottom - mTop, Region.Op.DIFFERENCE);
8635 // parts from this transparent region.
8636 applyDrawableToTransparentRegion(mBGDrawable, region);
8712 * update a Region being computed for {@link #gatherTransparentRegion} so
8714 * given transparent region.
8716 * @param dr The Drawable whose transparency is to be applied to the region.
8717 * @param region A Region holding the current transparency information,
8718 * where any parts of the region that are set are considered to be
8719 * transparent. On return, this region will be modified to have the
8724 public void applyDrawableToTransparentRegion(Drawable dr, Region region) {
8726 Log.i("View", "Getting transparent region for: " + this);
8728 final Region r = dr.getTransparentRegion();
8736 r.op(0, 0, db.left, h, Region.Op.UNION);
8740 r.op(db.right, 0, w, h, Region.Op.UNION);
8744 r.op(0, 0, w, db.top, Region.Op.UNION);
8748 r.op(0, db.bottom, w, h, Region.Op.UNION);
8753 region.op(r, Region.Op.INTERSECT);
8755 region.op(db, Region.Op.DIFFERENCE);
9404 * x/y points in the transparent region computations.
9438 * Identifier for messages requesting the view to invalidate a region.