MGL_insetRect

Insets the coordinates of a rectangle.

Declaration

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

Prototype In

mgraph.h

Parameters

r | Rectangle to inset
dx | Amount to inset the x coordinates by
dy | Amount to inset the y coordinates by

Description

This functions insets the rectangle by the specified values. This function effectively performs the following operation on the rectangle:

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

See Also

MGL_offsetRect

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