System.Types.TRectF.Create

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

Delphi

constructor Create(const Origin: TPointF); overload;                              // empty rect at given origin
constructor Create(const Origin: TPointF; const Width, Height: Single); overload; // at TPoint of origin with width and height
constructor Create(const Left, Top, Right, Bottom: Single); overload;             // at Left, Top, Right, and Bottom
constructor Create(const P1, P2: TPointF; Normalize: Boolean = False); overload;  // with corners specified by p1 and p2
constructor Create(const R: TRectF; Normalize: Boolean = False); overload;
constructor Create(const R: TRect; Normalize: Boolean = False); overload;

C++

TRectF() _ALWAYS_INLINE
TRectF(const TPointF& TL) _ALWAYS_INLINE {
TRectF(const TPointF& TL, float width, float height) _ALWAYS_INLINE {
TRectF(float l, float t, float r, float b) _ALWAYS_INLINE {
TRectF(const TPointF& TL, const TPointF& BR) _ALWAYS_INLINE {
TRectF(const RECT& r) _ALWAYS_INLINE {

プロパティ

種類 可視性 ソース ユニット
constructor public
System.Types.pas
SystemTypes.h
System.Types TRectF


説明

浮動小数点の座標を持つ TRectF 四角形を作成します。

Create を使用すると、Single 座標を持つ新しい TRectF 四角形オブジェクトを構築および初期化することができます。

  • OriginP1 は、四角形の左上隅を、TPointF 型の点として表します。
  • P2 は、四角形の右下隅を、TPointF 型の点として表します。
  • TopBottomRightLeft はそれぞれ、四角形の上下左右の辺の、Single の垂直または水平の座標です。
  • Width および Height はそれぞれ、四角形の Single の幅および高さです。
  • R は、TRectF(または TRect) 型を使用して指定される座標を持つ四角形です。
  • Normalize は、正規化された四角形を作成することを指定します。
メモ: Create(const Origin: TPointF) は、指定された Origin にある空の四角形を作成します。

関連項目