Sign in Join
FPDoc Onlineexperiment

MoveRect procedure

In unit GraphMath

Moves the specified rectangle to the origin in the x and y arguments.

Declaration

pascal
procedure MoveRect(var ARect: TRect; x: Integer; y: Integer)

Arguments

ARect

TRect instance updated in the routine.

x

New position for the Top coordinate in the rectangle.

y

New position for the Left coordinate in the rectangle.

Description

MoveRect sets the Left and Top members in ARect to the values specified in x and y (respectively). The Right and Bottom members in ARect are updated to reflect the relative distance from the original Top and Left on entry.

Added in LazUtils version 3.0.

An experiment, built from development snapshots. Not the official Free Pascal or Lazarus documentation.