A gtk.types.Rectangle data type for representing rectangles.
gtk.types.Rectangle is identical to cairo.rectangle.Rectangle. Together with Cairo’s cairo.region.Region data type, these are the central types for representing sets of pixels.
The intersection of two rectangles can be computed with gdk.rectangle.Rectangle.intersect; to find the union of two rectangles use gdk.rectangle.Rectangle.union_.
The cairo.region.Region type provided by Cairo is usually used for managing non-rectangular clipping of graphical operations.
The Graphene library has a number of other data types for regions and volumes in 2D and 3D.
the height of the rectangle
the width of the rectangle
the x coordinate of the top left corner
the y coordinate of the top left corner
A gtk.types.Rectangle data type for representing rectangles.
gtk.types.Rectangle is identical to cairo.rectangle.Rectangle. Together with Cairo’s cairo.region.Region data type, these are the central types for representing sets of pixels.
The intersection of two rectangles can be computed with gdk.rectangle.Rectangle.intersect; to find the union of two rectangles use gdk.rectangle.Rectangle.union_.
The cairo.region.Region type provided by Cairo is usually used for managing non-rectangular clipping of graphical operations.
The Graphene library has a number of other data types for regions and volumes in 2D and 3D.