Lines Matching defs:Rect

28  * Rect holds four integer coordinates for a rectangle. The rectangle is
34 * Note that the right and bottom coordinates are exclusive. This means a Rect
39 public final class Rect implements Parcelable {
48 * causing Rect to not be initializable with an ahead-of-time compilation
61 * Create a new empty Rect. All coordinates are initialized to 0.
63 public Rect() {}
75 public Rect(int left, int top, int right, int bottom) {
89 public Rect(Rect r) {
105 Rect r = (Rect) o;
121 sb.append("Rect("); sb.append(left); sb.append(", ");
149 * <p>You can later recover the Rect from this string through
169 * Returns a Rect from a string of the form returned by {@link #flattenToString},
172 public static Rect unflattenFromString(String str) {
177 return new Rect(Integer.parseInt(matcher.group(1)),
278 public void set(Rect src) {
335 public void inset(Rect insets) {
401 public boolean contains(Rect r) {
413 * intersection, use {@link #intersects(Rect, Rect)}.
450 public boolean intersect(Rect r) {
467 public boolean setIntersect(Rect a, Rect b) {
499 * use {@link #intersect(Rect)} or {@link #setIntersect(Rect, Rect)}.
506 public static boolean intersects(Rect a, Rect b) {
511 * Update this Rect to enclose itself and the specified rectangle. If the
537 * Update this Rect to enclose itself and the specified rectangle. If the
543 public void union(Rect r) {
548 * Update this Rect to enclose itself and the [x,y] coordinate. There is no
606 public static final Parcelable.Creator<Rect> CREATOR = new Parcelable.Creator<Rect>() {
610 public Rect createFromParcel(Parcel in) {
611 Rect r = new Rect();
619 public Rect[] newArray(int size) {
620 return new Rect[size];