Rectangle

class Rectangle(tuple)

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 Rectangle.

A data structure for holding a rectangle.

Parameters
  • 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

height: float = Ellipsis
width: float = Ellipsis
x: float = Ellipsis
y: float = Ellipsis