public class Region extends Object implements Parcelable
| Modifier and Type | Class and Description |
|---|---|
static class |
Region.Op |
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
static Parcelable.Creator<Region> |
CREATOR |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
Region() |
Region(int left,
int top,
int right,
int bottom) |
Region(Rect r) |
Region(Region region) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
contains(int x,
int y) |
int |
describeContents() |
boolean |
equals(Object obj) |
protected void |
finalize() |
Path |
getBoundaryPath() |
boolean |
getBoundaryPath(Path path) |
Rect |
getBounds() |
boolean |
getBounds(Rect r) |
boolean |
isComplex() |
boolean |
isEmpty() |
boolean |
isRect() |
boolean |
op(int left,
int top,
int right,
int bottom,
Region.Op op) |
boolean |
op(Rect r,
Region.Op op) |
boolean |
op(Rect rect,
Region region,
Region.Op op) |
boolean |
op(Region region,
Region.Op op) |
boolean |
op(Region region1,
Region region2,
Region.Op op) |
boolean |
quickContains(int left,
int top,
int right,
int bottom) |
boolean |
quickContains(Rect r) |
boolean |
quickReject(int left,
int top,
int right,
int bottom) |
boolean |
quickReject(Rect r) |
boolean |
quickReject(Region rgn) |
boolean |
set(int left,
int top,
int right,
int bottom) |
boolean |
set(Rect r) |
boolean |
set(Region region) |
void |
setEmpty() |
boolean |
setPath(Path path,
Region clip) |
String |
toString() |
void |
translate(int dx,
int dy) |
void |
translate(int dx,
int dy,
Region dst) |
boolean |
union(Rect r) |
void |
writeToParcel(Parcel p,
int flags) |
public static final Parcelable.Creator<Region> CREATOR
public Region()
public Region(Region region)
public Region(Rect r)
public Region(int left,
int top,
int right,
int bottom)
public void setEmpty()
public boolean set(Region region)
public boolean set(Rect r)
public boolean set(int left,
int top,
int right,
int bottom)
public boolean isEmpty()
public boolean isRect()
public boolean isComplex()
public Rect getBounds()
public boolean getBounds(Rect r)
public Path getBoundaryPath()
public boolean getBoundaryPath(Path path)
public boolean contains(int x,
int y)
public boolean quickContains(Rect r)
public boolean quickContains(int left,
int top,
int right,
int bottom)
public boolean quickReject(Rect r)
public boolean quickReject(int left,
int top,
int right,
int bottom)
public boolean quickReject(Region rgn)
public void translate(int dx,
int dy)
public void translate(int dx,
int dy,
Region dst)
public final boolean union(Rect r)
public boolean op(int left,
int top,
int right,
int bottom,
Region.Op op)
public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel p, int flags)
writeToParcel in interface ParcelableCopyright © 2008-2013. All Rights Reserved.