gdk.rectangle

Module for [Rectangle] struct

struct Rectangle

Types 1

structRectangle

Defines the position and size of a rectangle. It is identical to #cairo_rectangle_int_t.

Fields
int x
int y
int width
int height
Methods
GType _gType() @property
void * boxCopy()
bool equal(gdk.rectangle.Rectangle rect2)Checks if the two given rectangles are equal.
bool intersect(gdk.rectangle.Rectangle src2, out gdk.rectangle.Rectangle dest)Calculates the intersection of two rectangles. It is allowed for dest to be the same as either src1 or src2. If the rectangles do not intersect, dest’s width and height is set to 0 and its x and ...
void union_(gdk.rectangle.Rectangle src2, out gdk.rectangle.Rectangle dest)Calculates the union of two rectangles. The union of rectangles src1 and src2 is the smallest rectangle which includes both src1 and src2 within it. It is allowed for dest to be the same as either ...