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.