System.Types.CenteredRect

From RAD Studio API Documentation
Jump to: navigation, search

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.

CenteredRect returns the rectangle that size is equal to the specified CenteredRect but that center is positioned in the center of the specified source rectangle SourceRect. CenteredRect has no effect on the specified rectangle CenteredRect, but returns a new rectangle whose center coincide with the center of the source rectangle SourceRect.

See Also