public final class Rect extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
int |
bottom |
static Parcelable.Creator<Rect> |
CREATOR |
int |
left |
int |
right |
int |
top |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
Rect() |
Rect(int left,
int top,
int right,
int bottom) |
Rect(Rect r) |
| Modifier and Type | Method and Description |
|---|---|
int |
centerX() |
int |
centerY() |
boolean |
contains(int x,
int y) |
boolean |
contains(int left,
int top,
int right,
int bottom) |
boolean |
contains(Rect r) |
int |
describeContents() |
boolean |
equals(Object o) |
float |
exactCenterX() |
float |
exactCenterY() |
String |
flattenToString() |
int |
hashCode() |
int |
height() |
void |
inset(int dx,
int dy) |
boolean |
intersect(int left,
int top,
int right,
int bottom) |
boolean |
intersect(Rect r) |
boolean |
intersects(int left,
int top,
int right,
int bottom) |
static boolean |
intersects(Rect a,
Rect b) |
boolean |
isEmpty() |
void |
offset(int dx,
int dy) |
void |
offsetTo(int newLeft,
int newTop) |
void |
readFromParcel(Parcel in) |
void |
set(int left,
int top,
int right,
int bottom) |
void |
set(Rect src) |
void |
setEmpty() |
boolean |
setIntersect(Rect a,
Rect b) |
void |
sort() |
String |
toShortString() |
String |
toString() |
static Rect |
unflattenFromString(String str) |
void |
union(int x,
int y) |
void |
union(int left,
int top,
int right,
int bottom) |
void |
union(Rect r) |
int |
width() |
void |
writeToParcel(Parcel out,
int flags) |
public int left
public int top
public int right
public int bottom
public static final Parcelable.Creator<Rect> CREATOR
public Rect()
public Rect(int left,
int top,
int right,
int bottom)
public Rect(Rect r)
public String toShortString()
public String flattenToString()
public final boolean isEmpty()
public final int width()
public final int height()
public final int centerX()
public final int centerY()
public final float exactCenterX()
public final float exactCenterY()
public void setEmpty()
public void set(int left,
int top,
int right,
int bottom)
public void set(Rect src)
public void offset(int dx,
int dy)
public void offsetTo(int newLeft,
int newTop)
public void inset(int dx,
int dy)
public boolean contains(int x,
int y)
public boolean contains(int left,
int top,
int right,
int bottom)
public boolean contains(Rect r)
public boolean intersect(int left,
int top,
int right,
int bottom)
public boolean intersect(Rect r)
public boolean intersects(int left,
int top,
int right,
int bottom)
public void union(int left,
int top,
int right,
int bottom)
public void union(Rect r)
public void union(int x,
int y)
public void sort()
public int describeContents()
describeContents in interface Parcelablepublic void writeToParcel(Parcel out, int flags)
writeToParcel in interface Parcelablepublic void readFromParcel(Parcel in)
Copyright © 2008-2013. All Rights Reserved.