[Overview][Types][Procedures and functions][Index] |
Moves and potentially resizes a rectangle to fit within the specified target rectangle.
Source position: graphmath.pp line 85
procedure MoveRectToFit( |
var ARect: TRect; |
const MaxRect: TRect |
); |
ARect |
|
TRect instance moved and optionally resized in the routine. |
MaxRect |
|
TRect instance where the rectangle is relocated. It also specifies the maximum size for the relocated rectangle. |
ARect is the TRect instance repositioned in the routine. Values in the Left, Right, Top, and Bottom members may be updated in the routine if the rectangle is not located within the bounds for the target rectangle.
MaxRect is the TRectangle instance where ARect is repositioned. It also establishes the maximum size for ARect after it has been repositioned. If aRect is larger than MaxRect, ARect is resized to fit with in the constraints in MaxRect.
MoveRectToFit is used in the implementation for the DoDock method in TControl.
Added in LazUtils version 3.0.
Version 4.0 | Generated 2025-05-03 | Home |