GA_offsetRect

Offsets a rectangle by the specified amount.

Declaration

void GA_offsetRect(
GA_rect r,
int dx,
int dy)

Prototype In

snap/graphics.h

Parameters

r | Rectangle to offset
dx | Amount to offset x coordinates by
dy | Amount to offset y coordinates by

Description

This function offsets the specified rectangle by the dx and dy coordinates. This function effectively performs the following operation on the rectangle:

left += dx;
top += dy;
right += dx;
bottom += dy;

See Also

GA_insetRect

Copyright © 2002 SciTech Software, Inc. Visit our web site at http://www.scitechsoft.com