MGL_offsetRect

Offsets a rectangle by the specified amount.

Declaration

void MGL_offsetRect(
    rect_t r,
    int dx,
    int dy)

Prototype In

mgraph.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

MGL_insetRect

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