Home | Trees | Indices | Help |
|
---|
|
object --+ | Rectangle
A rectangle identified by two points.
The rectangle stores left, top, right, and bottom values.
Coordinates are based on screen coordinates.
y increases bottom
Instance methods:
Instance properties:
- bounds: Read-write, all rectangle coordinates
- center: Read-write, center of the rectangle
- width: Read-write, width of the rectangle
- height: Read-write, height of the rectangle
- size: Read-write, size of the rectangle
- left: Read-write, left edge of rectangle
- top: Read-write, top edge of rectangle
- right: Read-write, right edge of rectangle
- bottom: Read-write, bottom edge of rectangle
- top_left: Read-write, top-left corner
- top_right: Read-write, top-right corner
- bottom_left: Read-write, bottom-left corner
- bottom_right: Read-write, bottom-right corner
Operators:
str(s) repr(s)
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
|
|||
Inherited from |
|
|||
bounds Read-write, all rectangle coordinates |
|||
__center_x | |||
__center_y | |||
center Read-write, center of the rectangle :: bound Vector |
|||
width Read-write, width of the rectangle :: float | int |
|||
height Read-write, height of the rectangle :: float | int |
|||
size Read-write, size of the rectangle :: bound Vector |
|||
left Read-write, left edge of rectangle :: float | int |
|||
top Read-write, top edge of rectangle :: float | int |
|||
right Read-write, right edge of rectangle :: float | int |
|||
bottom Read-write, bottom edge of rectangle :: float | int |
|||
top_left Read-write, top-left corner :: bound Vector |
|||
top_right Read-write, top-right corner :: bound Vector |
|||
bottom_left Read-write, bottom-left corner :: bound Vector |
|||
bottom_right Read-write, bottom-right corner :: bound Vector |
|||
Inherited from |
|
Construct a rectangle. Overloaded, parameters:
|
Returns Parameters:
|
Returns Parameters:
|
Inflate the rectangle Overloaded, parameters:
|
Move the top_left corner to Parameters:
|
Move the top_left corner by Parameters:
|
str(x)
|
repr(x)
|
|
boundsRead-write, all rectangle coordinates Returns (left, top, right, bottom) Overloaded, set parameters:
|
__center_x
|
__center_y
|
centerRead-write, center of the rectangle :: bound Vector Changing the center does not change the size.
|
widthRead-write, width of the rectangle :: float | int
|
heightRead-write, height of the rectangle :: float | int
|
sizeRead-write, size of the rectangle :: bound Vector
|
leftRead-write, left edge of rectangle :: float | int
|
topRead-write, top edge of rectangle :: float | int
|
rightRead-write, right edge of rectangle :: float | int
|
bottomRead-write, bottom edge of rectangle :: float | int
|
top_leftRead-write, top-left corner :: bound Vector
|
top_rightRead-write, top-right corner :: bound Vector
|
bottom_leftRead-write, bottom-left corner :: bound Vector
|
bottom_rightRead-write, bottom-right corner :: bound Vector
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0 on Thu Jul 22 13:11:42 2010 | http://epydoc.sourceforge.net |