System.Types.TSmallPoint.Create
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 {
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
constructor function |
public | System.Types.pas SystemTypes.h |
System.Types | TSmallPoint |
Description
Creates a TSmallPoint object.
Use Create to construct and initialize a new TSmallPoint object, where each coordinate is a 16-bit Integer. x specifies the horizontal coordinate of the point and y specifies the vertical coordinate.
Note: The type of x and y is SmallInt. There is also another overload with Word parameters.