FMX.InertialMovement.TRectD

From RAD Studio API Documentation
Jump to: navigation, search

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

Properties

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

Description

Defines a rectangle with coordinates in logical units.

TRectD represents the location and dimensions of a rectangle. The coordinates are specified as either four separate Double floating-point coordinates representing the left, top, right, and bottom sides, or as two points representing the locations of the upper-left and lower-right corners.

Typically, TRectD values representing location and dimensions are measured in density-independent pixels (DP) (in logical units). The origin of the coordinate system is in the upper-left corner of a container. The container can be the screen (screen coordinates) or a control's client area (client coordinates).

See Also