Package: pango

Macro pango:with-rectangle

Lambda List

pango:with-rectangle ((var &rest args) &body body)

Syntax

(pango:with-rectangle (rect) body) => result
(pango:with-rectangle (rect rect1) body) => result
(pango:with-rectangle (rect x y width height) body) => result

Arguments

rect -- a pango:rectangle instance to create and initialize
rect1 -- a pango:rectangle instance for initialization
x -- an integer for the x coordinate of the rectangle
y -- an integer for the y coordinate of the rectangle
width -- an integer for the width of the rectangle
height -- an integer for the height of the rectangle

Details

The pango:with-rectangle macro allocates a new pango:rectangle instance, initializes the rectangle with the given values and executes the body that uses the rectangle. After execution of the body the allocated memory for the rectangle is released.

When no argument is given the components of the rectangle are initialized to zero. One argument is another rectangle for initialization. The initialization with four integers initializes the x, y, width, and height slots with the given values.
 

See also

2025-1-1