Show / Hide Table of Contents

Method RECT.MoveInRect


Overload

Moves this rectangle to the specified coordinates in another rectangle r.

public void MoveInRect(RECT r, Coord x = default, Coord y = default, bool ensureInRect = false)
Parameters
r  (RECT)

Another rectangle.

x  (Coord)

X coordinate relative to r. Default - center. Examples: 10, ^10 (reverse), .5f (fraction).

y  (Coord)

Y coordinate relative to r. Default - center.

ensureInRect  (bool)

If part of rectangle is not in r, move and/or resize it so that entire rectangle would be in r.