public final class Rectangle extends Boxed
Allocation, this class is in fact
different. It's primary use is in describing an area that has been exposed
and needs to be [re]drawn. You normally get one of these from the
getArea() method on EventExpose, though in
rare situations you need to describe an area based on your own calculations
and there is a constructor for that case.| Constructor and Description |
|---|
Rectangle(int x,
int y,
int width,
int height)
Create a Rectanlge.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
The height of the box described by this Rectangle.
|
int |
getWidth()
The width of the box described by this Rectangle.
|
int |
getX()
The horizontal co-ordinate of the top left corner of the box described
by this Rectangle.
|
int |
getY()
The vertical co-ordinate of the box described by this Rectangle.
|
String |
toString() |
public Rectangle(int x,
int y,
int width,
int height)
invalidate() method of an
[org.gnome.gdk] Window.
As usual, measurements are in pixels.
public int getHeight()
public int getWidth()
public int getX()
public int getY()
public String toString()
toString in class org.freedesktop.bindings.Pointer