[Overview][Types][Procedures and functions][Index] Reference for unit 'GraphMath' (#lazutils)

MoveRect

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

Declaration

Source position: graphmath.pp line 83

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.

Version info

Added in LazUtils version 3.0.