FMX.Types.TDisplay

Aus RAD Studio API Documentation
Wechseln zu: Navigation, Suche

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

Eigenschaften

Typ Sichtbarkeit Quelle Unit Übergeordnet
record
struct
public
FMX.Types.pas
FMX.Types.hpp
FMX.Types FMX.Types


Beschreibung

Repräsentiert grundlegende Eigenschaften eines Displays, auf dem eine Anwendung ausgeführt wird.

TDisplay repräsentiert ein Display, auf dem die Benutzeroberfläche einer Anwendung angezeigt wird. Die Klasse führt Eigenschaften zum Beschreiben der Abmessungen des Displays ein. Zudem kann mit der Eigenschaft Primary das primäre Display von anderen Displays, aus denen sich der Desktop zusammensetzt, unterschieden werden.

Instanzen von TDisplay werden in Anwendungen nicht erstellt. Stattdessen werden alle verfügbaren Displays von der Eigenschaft Displays der globalen Screen-Variable aufgeführt. Die Screen-Variable stellt auch globale Informationen über die Displays bereit, auf denen die Anwendung ausgeführt wird, wie z. B. Koordinaten und Abmessungen der Displays usw.

Siehe auch