Package org.gnome.gdk

Class Rectangle

java.lang.Object
All Implemented Interfaces:
Proxy
Direct Known Subclasses:
Allocation

@Generated("io.github.jwharm.JavaGI") public class Rectangle extends ProxyInstance
A GdkRectangle data type for representing rectangles.

GdkRectangle is identical to cairo_rectangle_t. Together with Cairo’s cairo_region_t data type, these are the central types for representing sets of pixels.

The intersection of two rectangles can be computed with intersect(org.gnome.gdk.Rectangle, org.gnome.gdk.Rectangle); to find the union of two rectangles use union(org.gnome.gdk.Rectangle, org.gnome.gdk.Rectangle).

The cairo_region_t 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.