FMX.Types.TDisplay

De RAD Studio API Documentation
Aller à : navigation, rechercher

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() {}
};

Propriétés

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


Description

Représente les propriétés de base d'un affichage sur lequel une application s'exécute.

TDisplay représente un affichage présentant l'interface utilisateur de l'application. Il introduit les propriétés permettant de décrire les dimensions d'un affichage unique. De plus, la propriété Primary distingue l'affichage principal des autres affichages constituant le bureau.

Les applications ne créent pas d'instances de TDisplay. A la place, tous les affichages disponibles sont listés par la propriété Displays de la variable globale Screen. La variable Screen fournit également des informations globales sur les affichages sur lesquels l'application s'exécute, telles que les coordonnées et les dimensions des affichages, et ainsi de suite.

Voir aussi