System.Types.CenteredRect
Delphi
function CenteredRect(const SourceRect: TRect; const CenteredRect: TRect): TRect;
C++
extern DELPHI_PACKAGE TRect __fastcall CenteredRect(const TRect &SourceRect, const TRect &CenteredRect);
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | System.Types.pas System.Types.hpp |
System.Types | System.Types |
Description
Creates a centered rectangle.
Call CenteredRect to position a rectangle in the center of a source rectangle. CenteredRect has no effect on the rectangle to be positioned, but returns a new rectangle whose coordinates are in the center of the source rectangle.