FMX.Platform.IFMXMultiDisplayService.GetDesktopCenterRect

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function GetDesktopCenterRect(const Size: TSizeF): TRectF;

C++

virtual System::Types::TRectF __fastcall GetDesktopCenterRect(const System::Types::TSizeF &Size) = 0 ;

Properties

Type Visibility Source Unit Parent
function public
FMX.Platform.pas
FMX.Platform.hpp
FMX.Platform IFMXMultiDisplayService

Description

Declares the method that tries to return a rectangle having the specified Size and positioned in the center of the virtual screen.

The behavior of GetDesktopCenterRect depends on a platform. GetDesktopCenterRect tries to position the returned rectangle in the way that the whole rectangle is visible. On mobile platforms, GetDesktopCenterRect always returns a rectangle positioned in one display. If a whole centered rectangle cannot be positioned in a single display, then the rectangule is moved to be positioned in the display nearest to the center of the virtual screen. The returned rectangle can be truncated to fit into a single display.

See Also