Package: gdk

GBoxed gdk:rectangle

Declaration

(define-gboxed-cstruct rectangle "GdkRectangle"
  (:export t
   :type-initializer "gdk_rectangle_get_type")
  (x :int :initform 0)
  (y :int :initform 0)
  (width :int :initform 0)
  (height :int :initform 0))  

Values

x
The integer for the x coordinate of the top left corner.
y
The integer for the y coordinate of the top left corner.
width
The integer for the width of the rectangle.
height
The integer for the height of the rectangle.

Details

The gdk:rectangle structure is holding the position and size of a rectangle.

The intersection of two rectangles can be computed with the gdk:rectangle-intersect function. To find the union of two rectangles use the gdk:rectangle-union function.

The cairo:region-t structure is usually used for managing clipping of graphical operations.
 

Returned by

Slot Access Functions

See also

2025-08-31