- rect-grow rect dw dhprocedure
- rect-grow! rect dw dh #!optional destprocedure
Efficiently increase rect's size by adding to its W and H values. The rect's top left corner will stay the same. See also rect-grow/center!, which keeps the rect's center point the same. The results will be clamped to the range -2147483648 to 2147483647.
dw and dh must be integers. Negative numbers cause the size to decrease (i.e. shrink).
- rect-grow returns a new managed sdl2:rect.
- rect-grow! modifies and returns dest. If dest is omitted, rect is modified and returned.
These procedures are available in sdl2 egg version 0.2.0 and higher.