FMX.InertialMovement.TRectD

提供: RAD Studio API Documentation
移動先: 案内検索

Delphi

TRectD = record

C++

struct DECLSPEC_DRECORD TRectD
{
public:
    double Left;
    double Top;
    double Right;
    double Bottom;
private:
    double __fastcall GetHeight();
    double __fastcall GetWidth();
    void __fastcall SetHeight(const double Value);
    void __fastcall SetWidth(const double Value);
    TPointD __fastcall GetTopLeft();
    void __fastcall SetTopLeft(const TPointD &P);
    TPointD __fastcall GetBottomRight();
    void __fastcall SetBottomRight(const TPointD &P);
public:
    __fastcall TRectD(const TPointD &Origin)/* overload */;
    __fastcall TRectD(const double Left, const double Top, const double Right, const double Bottom)/* overload */;
    static bool __fastcall _op_Equality(const TRectD &Lhs, const TRectD &Rhs);
    static bool __fastcall _op_Inequality(const TRectD &Lhs, const TRectD &Rhs);
    static TRectD __fastcall Empty();
    __property double Width = {read=GetWidth, write=SetWidth};
    __property double Height = {read=GetHeight, write=SetHeight};
    void __fastcall Inflate(const double DX, const double DY);
    void __fastcall Offset(const double DX, const double DY);
    __property TPointD TopLeft = {read=GetTopLeft, write=SetTopLeft};
    __property TPointD BottomRight = {read=GetBottomRight, write=SetBottomRight};
    TRectD() {}
    friend bool operator ==(const TRectD &Lhs, const TRectD &Rhs) { return TRectD::_op_Equality(Lhs, Rhs); }
    friend bool operator !=(const TRectD &Lhs, const TRectD &Rhs) { return TRectD::_op_Inequality(Lhs, Rhs); }
};

プロパティ

種類 可視性 ソース ユニット
record
struct
public
FMX.InertialMovement.pas
FMX.InertialMovement.hpp
FMX.InertialMovement FMX.InertialMovement

説明

論理単位で表される座標で四角形を定義します。


TRectD は四角形の位置とサイズを表します。座標は、左辺、上辺、右辺、下辺を表す 4 つの別個の Double 型浮動小数点座標か、左上隅と右下隅の位置を表す 2 つの点で指定されます。

通常、位置とサイズを表す TRectD 値は、密度に依存しないピクセル数(DP)(論理単位)で測定されます。座標系の原点はコンテナの左上隅にあります。コンテナは、画面でもコントロールのクライアント領域でもかまいません(前者の場合は画面座標、後者の場合はクライアント座標になります)。

関連項目