Create a rectangle.Rectangle boxed type.
Returns true if rect contains the point described by x and y.
Checks if the two given rectangles are equal.
Calculates the intersection of two rectangles.
Returns this, for use in with statements.
Calculates the union of two rectangles.
Get field height.
Set field height.
Get field width.
Set field width.
Get field x.
Set field x.
Get field y.
Set field y.
Pointer to the C boxed value
Get the GType of this boxed type.
Boxed GType property.
Convenience method to return this cast to a type. For use in D with statements.
Make a copy of the wrapped C boxed data.
Copy a C boxed value using g_boxed_copy.
Free a C boxed value using g_boxed_free.
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.