Package: cairo

Function cairo-rectangle

Lambda List

cairo-rectangle (cr x y width height)

Arguments

cr -- a cairo-t context
x -- a double float x coordinate of the top left corner of the rectangle
y -- a double float y coordinate to the top left corner of the rectangle
width -- a double float with the width of the rectangle
height -- a double float with the height of the rectangle

Details

Adds a closed sub-path rectangle of the given size to the current path at position (x, y) in user-space coordinates.

This function is logically equivalent to:
(cairo-move-to cr x y)
(cairo-rel-line-to cr width 0)
(cairo-rel-line-to cr 0 height)
(cairo-rel-line-to cr (- width) 0)
(cairo-close-path cr)  
 

See also

*2021-12-12