Name

Class Rect — Toolkit independent Rectangle class.

Synopsis

 public class com.​froglogic.​squish.​extension.​Rect {

// Public Fields  public int height ;

  public int width ;

  public int ;

  public int ;

// Public Constructors  public Rect();

  public Rect(int x,

              int y,

              int width,

              int height);


// Public Methods  public boolean contains(Point p);

  public boolean equals(Object obj);

  public String toString();

}

Description

Toolkit independent Rectangle class.

Constructors

Rect()

public Rect();

Construct a rectangle with zero width and height at left-top position (0, 0).

Rect(int, int, int, int)

public Rect(int x,

            int y,

            int width,

            int height);

Parameters

x

x position of the rectangle

y

y position of the rectangle

width

the width of the rectangle

height

the width of the rectangle

Construct a rectangle at left-top position x, y, with given width and height.