|
||||
This class encapsulates the location and dimensions of a rectangle.
| Constructor Summary | |
|---|---|
GRectangle(x, y, width, height)
GRectangle with the specified coordinates
and size. |
|
| Method Summary | |
|---|---|
get_height()
GRectangle. |
|
get_width()
GRectangle. |
|
get_x()
GRectangle. |
|
get_y()
GRectangle. |
|
| Constructor Detail |
|---|
GRectangle(x, y, width, height)GRectangle with the specified coordinates
and size.
Usage: | rect = GRectangle(x, y, width, height) | ||||||||
Parameters: |
|
| Method Detail |
|---|
get_height()GRectangle.
Usage: | height = rect.get_height() |
Returns: | The height of this GRectangle
|
get_width()GRectangle.
Usage: | width = rect.get_width() |
Returns: | The width of this GRectangle
|
get_x()GRectangle.
Usage: | x = rect.get_x() |
Returns: | The x coordinate of this GRectangle
|
get_y()GRectangle.
Usage: | y = rect.get_y() |
Returns: | The y coordinate of this GRectangle
|
|
||||