RectF

Class of android.graphics · RectF.java · Android's reference

public class RectF implements android.os.Parcelable

A float rectangle.

Fields

public float left source
public float top source
public float bottom source

Constructors

public RectF() empty body source
public RectF(float left, float top, float right, float bottom) source
public RectF(RectF r) source
public RectF(Rect r) source

Methods

public final boolean isEmpty() source
public final float width() source
public final float height() source
public final float centerX() source
public final float centerY() source
public void setEmpty() source
public void set(float left, float top, float right, float bottom) source
public void set(RectF r) source
public void set(Rect r) source
public void offset(float dx, float dy) source
public void offsetTo(float x, float y) source
public void inset(float dx, float dy) source
public boolean contains(float x, float y) source
public boolean contains(float l, float t, float r, float b) source
public boolean contains(RectF r) source
public boolean intersect(float l, float t, float r, float b) source
public boolean intersect(RectF r) source
public boolean setIntersect(RectF a, RectF b) source
public boolean intersects(float l, float t, float r, float b) source
public static boolean intersects(RectF a, RectF b) source
public void round(Rect dst) source
public void roundOut(Rect dst) source
public void union(float l, float t, float r, float b) source
public void union(RectF r) source
public void union(float x, float y) source
public void sort() source
public boolean equals(Object o) source
public int hashCode() source
public String toString() source
public int describeContents() source
public void writeToParcel(android.os.Parcel out, int flags) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.