type PSizeF = ^TSizeF; TSizeF = packed record Width: TREAL; Height: TREAL; end; //-------------------------------------------------------------------------- // Represents a dimension in a 2D coordinate system (integer coordinates) //-------------------------------------------------------------------------- PSize = ^TSize; TSize = packed record Width: INT; Height: INT; end; //-------------------------------------------------------------------------- // Represents a location in a 2D coordinate system (floating-point coordinates) //-------------------------------------------------------------------------- PPointF = ^TPointF; TPointF = packed record X, Y: TREAL; end; //-------------------------------------------------------------------------- // Represents a location in a 2D coordinate system (integer coordinates) //-------------------------------------------------------------------------- PPoint = ^TPoint; TPoint = packed record X, Y: INT; end; //-------------------------------------------------------------------------- // Represents a rectangle in a 2D coordinate system (floating-point coordinates) //-------------------------------------------------------------------------- PRectF = ^TRectF; TRectF = packed record case Integer of 0: (X, Y, Width, Height: TREAL); 1: (Point: TPointF; Size: TSizeF); end;
PSizeF = ^TSizeF;
TSizeF = packed record
Width: TREAL;
Height: TREAL;
end;
//--------------------------------------------------------------------------
// Represents a dimension in a 2D coordinate system (integer coordinates)
//-------------------------------------------------------------------------- PSize = ^TSize;
TSize = packed record
Width: INT;
Height: INT;
end;
//--------------------------------------------------------------------------
// Represents a location in a 2D coordinate system (floating-point coordinates)
//-------------------------------------------------------------------------- PPointF = ^TPointF;
TPointF = packed record
X, Y: TREAL;
end;
//--------------------------------------------------------------------------
// Represents a location in a 2D coordinate system (integer coordinates)
//-------------------------------------------------------------------------- PPoint = ^TPoint;
TPoint = packed record
X, Y: INT;
end;
//--------------------------------------------------------------------------
// Represents a rectangle in a 2D coordinate system (floating-point coordinates)
//-------------------------------------------------------------------------- PRectF = ^TRectF;
TRectF = packed record
case Integer of
0: (X, Y, Width, Height: TREAL);
1: (Point: TPointF; Size: TSizeF);
end;