void RectOffset (Rect *rect, int dx, int dy);
Modifies the values in a Rect structure to shift the location of the rectangle it defines.
Input | ||
Name | Type | Description |
dx | integer | Amount to shift the rectangle horizontally. Use a positive value to shift the rectangle to the right. Use a negative value to shift the rectangle to the left. |
dy | integer | Amount to shift the rectangle vertically. Use a positive value to shift the rectangle down. Use a negative value to shift the rectangle up. |
Output | ||
Name | Type | Description |
rect | Rect | On input, the size and location of a rectangle. On output, a rectangle of the same size but a different location. |
None.