Next: , Previous: , Up: API Reference   [Contents][Index]


3.5 Rects

(use-modules (sdl2 rect))
Procedure: make-rect x y width height

Return a new rectangle whose upper-left corner is at (x, y) and is width pixels wide and height pixels high.

Procedure: rect-x rect

Return the X coordinate of rect.

Procedure: rect-y rect

Return the Y coordinate of rect.

Procedure: rect-width rect

Return the width of rect.

Procedure: rect-height rect

Return the height of rect.

Procedure: set-rect-x! rect x

Set the x coordinate of rect to x.

Procedure: set-rect-y! rect y

Set the y coordinate of rect to y.

Procedure: set-rect-width! rect w

Set the width of rect to w.

Procedure: set-rect-height! rect h

Set the height of rect to h.