FMX.Platform.IFMXScreenService.GetScreenSize
Delphi
function GetScreenSize: TPointF;
C++
virtual System::Types::TPointF __fastcall GetScreenSize() = 0 ;
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
function | public | FMX.Platform.pas FMX.Platform.hpp |
FMX.Platform | IFMXScreenService |
Description
Declares a method returning the screen dimensions.
Implementations of GetScreenSize should return the screen height and width in logical units (density-independent pixels).
GetScreenSize should return the screen height and width in compliance with the screen orientation. That is, if the orientation is vertical (for example Portrait
), then Height >= Width
. If the orientation is horizontal (for example Landscape
), then Height < Width
.