FMX.Types.TDisplay

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

  TDisplay = record
  private
    FIndex: Integer;
    FPrimary: Boolean;
    FBoundsRect: TRect;
    FWorkareaRect: TRect;
  public
    constructor Create(const AIndex: Integer; const APrimary: Boolean; const ABounds, AWorkArea: TRect);
    property Index: Integer read FIndex;
    property Primary: Boolean read FPrimary;
    property BoundsRect: TRect read FBoundsRect;
    property Bounds: TRect read FBoundsRect;
    property WorkareaRect: TRect read FWorkareaRect;
    property WorkArea: TRect read FWorkareaRect;
  end;

C++

struct DECLSPEC_DRECORD TDisplay
{
private:
    int FIndex;
    bool FPrimary;
    System::Types::TRect FBoundsRect;
    System::Types::TRect FWorkareaRect;
public:
    __fastcall TDisplay(const int AIndex, const bool APrimary, const System::Types::TRect &ABounds, const System::Types::TRect &AWorkArea);
    __property int Index = {read=FIndex};
    __property bool Primary = {read=FPrimary};
    __property System::Types::TRect BoundsRect = {read=FBoundsRect};
    __property System::Types::TRect Bounds = {read=FBoundsRect};
    __property System::Types::TRect WorkareaRect = {read=FWorkareaRect};
    __property System::Types::TRect WorkArea = {read=FWorkareaRect};
    TDisplay() {}
};

Properties

Type Visibility Source Unit Parent
record
struct
public
FMX.Types.pas
FMX.Types.hpp
FMX.Types FMX.Types

Description

Represent basic properties of a display on which an application runs.

TDisplay represents a display that shows the user interface of the application. It introduces properties to describe the dimensions of a single display. In addition, the Primary property distinguishes the primary display from other displays used to comprise the desktop.

Applications do not create instances of TDisplay. Instead, all available displays are listed by the Displays property of the global Screen variable. The Screen variable also provides global information about the displays on which the application runs, such as coordinates and dimensions of displays and so on.

See Also