Contract contracts each side of the local rectangle by a set value. The following expression is used to determine the result:
(x1, y1, x2, y2) = (x1 + [l, m.x1, h.Begin, val, h], y1 + [t, m.y1, v.Begin, val, v], x2 - [r, m.x2, h.End, val, h], y2 - [b, m.y2, v.End, val, v])
Parameters |
Description |
T l |
A value that is added to x1. |
T t |
A value that is added to y1. |
T r |
A value that is subtracted from x2. |
T b |
A value that is subtracted from y2. |
T val |
A value that is added to x1 and y1 and subtracted from x2 and y2. |
T h |
Either a value that is added to x1 or subtracted from x2, or a range margin whose beginning and end are added to and subtracted from x1 and x2 respectively. |
T v |
Either a value that is added to y1 or subtracted from y2, or a range margin whose beginning and end are added to and subtracted from y1 and y2 respectively. |
A Rect reference to the local variable whose components are determined by contracting the original components by set values.