sf.IntRect Class Reference
sf.IntRect is an utility class for manipulating rectangles.
Attributes
Bottom
Bottom coordinate of the rectangle.
Left
Left coordinate of the rectangle.
Right
Right coordinate of the rectangle.
Top
Top coordinate of the rectangle.
Methods
Contains(X, Y)
Check if a point is inside the rectangle's area.
X : X coordinate of the point to test
Y : Y coordinate of the point to test
GetHeight()
Get the height of the rectangle.
GetWidth()
Get the width of the rectangle.
Intersects(Rectangle, OverlappingRect=None)
Check intersection between two rectangles.
Rectangle : Rectangle to test
OverlappingRect : Rectangle to be filled with overlapping rect (None by default)
Offset(OffsetX, OffsetY)
Move the whole rectangle by the given offset.
OffsetX : Horizontal offset
OffsetY : Vertical offset