- class cairo.Rectangle(x: float, y: float, width: float, height: float)¶
New in version 1.15: In prior versions a (float, float, float, float) tuple was used instead of
A data structure for holding a rectangle.
x – X coordinate of the left side of the rectangle
y – Y coordinate of the the top side of the rectangle
width – width of the rectangle
height – height of the rectangle