System.Types.TSmallPoint.Create

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

Delphi

constructor Create(P : TSmallPoint); overload;
constructor Create(const X, Y : Word); overload;
constructor Create(const X, Y : SmallInt); overload;

C++

static TSmallPoint Create(const short x, const short y) _ALWAYS_INLINE {

プロパティ

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

説明

TSmallPoint オブジェクトを作成します。

Create を使用すると、新しい TSmallPoint オブジェクトを構築し、初期化することができます。ここでの各座標は 16 ビット整数値です。x は、点の水平座標を、y は垂直座標を示します。

メモ: xy の型は SmallInt です。もう 1 つ、Word パラメータを取るオーバーロードがあります。

関連項目