Lines Matching defs:Region
22 public class Region implements Parcelable {
47 /** Create an empty region
49 public Region() {
53 /** Return a copy of the specified region
55 public Region(Region region) {
57 nativeSetRegion(mNativeRegion, region.mNativeRegion);
60 /** Return a region set to the specified rectangle
62 public Region(Rect r) {
67 /** Return a region set to the specified rectangle
69 public Region(int left, int top, int right, int bottom) {
74 /** Set the region to the empty region
80 /** Set the region to the specified region.
82 public boolean set(Region region) {
83 return nativeSetRegion(mNativeRegion, region.mNativeRegion);
86 /** Set the region to the specified rectangle
92 /** Set the region to the specified rectangle
99 * Set the region to the area described by the path and clip.
100 * Return true if the resulting region is non-empty. This produces a region
104 public boolean setPath(Path path, Region clip) {
109 * Return true if this region is empty
114 * Return true if the region contains a single rectangle
119 * Return true if the region contains more than one rectangle
124 * Return a new Rect set to the bounds of the region. If the region is
134 * Set the Rect to the bounds of the region. If the region is empty, the
145 * Return the boundary of the region as a new Path. If the region is empty,
155 * Set the path to the boundary of the region. If the region is empty, the
163 * Return true if the region contains the specified point
168 * Return true if the region is a single rectangle (not complex) and it
170 * that the rectangle is not contained by this region, but return true is a
171 * guarantee that the rectangle is contained by this region.
178 * Return true if the region is a single rectangle (not complex) and it
180 * that the rectangle is not contained by this region, but return true is a
181 * guarantee that the rectangle is contained by this region.
187 * Return true if the region is empty, or if the specified rectangle does
188 * not intersect the region. Returning false is not a guarantee that they
196 * Return true if the region is empty, or if the specified rectangle does
197 * not intersect the region. Returning false is not a guarantee that they
203 * Return true if the region is empty, or if the specified region does not
204 * intersect the region. Returning false is not a guarantee that they
207 public native boolean quickReject(Region rgn);
210 * Translate the region by [dx, dy]. If the region is empty, do nothing.
217 * Set the dst region to the result of translating this region by [dx, dy].
218 * If this region is empty, then dst will be set to empty.
220 public native void translate(int dx, int dy, Region dst);
223 * Scale the region by the given scale amount. This re-constructs new region by
224 * scaling the rects that this region consists of. New rectis are computed by scaling
227 * an empty region. If this region is empty, do nothing.
236 * Set the dst region to the result of scaling this region by the given scale amount.
237 * If this region is empty, then dst will be set to empty.
240 public native void scale(float scale, Region dst);
247 * Perform the specified Op on this region and the specified rect. Return
256 * Perform the specified Op on this region and the specified rect. Return
265 * Perform the specified Op on this region and the specified region. Return
268 public boolean op(Region region, Op op) {
269 return op(this, region, op);
273 * Set this region to the result of performing the Op on the specified rect
274 * and region. Return true if the result is not empty.
276 public boolean op(Rect rect, Region region, Op op) {
277 return nativeOp(mNativeRegion, rect, region.mNativeRegion,
282 * Set this region to the result of performing the Op on the specified
285 public boolean op(Region region1, Region region2, Op op) {
296 public static final Parcelable.Creator<Region> CREATOR
297 = new Parcelable.Creator<Region>() {
299 * Rebuild a Region previously stored with writeToParcel().
300 * @param p Parcel object to read the region from
301 * @return a new region created from the data in the parcel
303 public Region createFromParcel(Parcel p) {
308 return new Region(ni);
310 public Region[] newArray(int size) {
311 return new Region[size];
320 * Write the region and its pixels to the parcel. The region can be
322 * @param p Parcel object to write the region data into
332 if (obj == null || !(obj instanceof Region)) {
335 Region peer = (Region) obj;
347 Region(int ni) {
356 private Region(int ni, int dummy) {