public class RectF extends Object implements Parcelable
Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>| Modifier and Type | Field and Description |
|---|---|
float |
bottom |
static Parcelable.Creator<RectF> |
CREATOR |
float |
left |
float |
right |
float |
top |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE| Constructor and Description |
|---|
RectF() |
RectF(float left,
float top,
float right,
float bottom) |
RectF(Rect r) |
RectF(RectF r) |
| Modifier and Type | Method and Description |
|---|---|
float |
centerX() |
float |
centerY() |
boolean |
contains(float x,
float y) |
boolean |
contains(float left,
float top,
float right,
float bottom) |
boolean |
contains(RectF r) |
int |
describeContents() |
boolean |
equals(Object o) |
int |
hashCode() |
float |
height() |
void |
inset(float dx,
float dy) |
boolean |
intersect(float left,
float top,
float right,
float bottom) |
boolean |
intersect(RectF r) |
boolean |
intersects(float left,
float top,
float right,
float bottom) |
static boolean |
intersects(RectF a,
RectF b) |
boolean |
isEmpty() |
void |
offset(float dx,
float dy) |
void |
offsetTo(float newLeft,
float newTop) |
void |
readFromParcel(Parcel in) |
void |
round(Rect dst) |
void |
roundOut(Rect dst) |
void |
set(float left,
float top,
float right,
float bottom) |
void |
set(Rect src) |
void |
set(RectF src) |
void |
setEmpty() |
boolean |
setIntersect(RectF a,
RectF b) |
void |
sort() |
String |
toShortString() |
String |
toString() |
void |
union(float x,
float y) |
void |
union(float left,
float top,
float right,
float bottom) |
void |
union(RectF r) |
float |
width() |
void |
writeToParcel(Parcel out,
int flags) |
public float left
public float top
public float right
public float bottom
public static final Parcelable.Creator<RectF> CREATOR
public RectF()
public RectF(float left,
float top,
float right,
float bottom)
public RectF(RectF r)
public RectF(Rect r)
public String toShortString()
public final boolean isEmpty()
public final float width()
public final float height()
public final float centerX()
public final float centerY()
public void setEmpty()
public void set(float left,
float top,
float right,
float bottom)
public void set(RectF src)
public void set(Rect src)
public void offset(float dx,
float dy)
public void offsetTo(float newLeft,
float newTop)
public void inset(float dx,
float dy)
public boolean contains(float x,
float y)
public boolean contains(float left,
float top,
float right,
float bottom)
public boolean contains(RectF r)
public boolean intersect(float left,
float top,
float right,
float bottom)
public boolean intersect(RectF r)
public boolean intersects(float left,
float top,
float right,
float bottom)
public void round(Rect dst)
public void roundOut(Rect dst)
public void union(float left,
float top,
float right,
float bottom)
public void union(RectF r)
public void union(float x,
float 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.