TSizeF¶
Declaration¶
Source position: types.pp line 220
type
TSizeF = packed record
cx: Single;
cy: Single;
function Add(const asz: TSize) : TSizeF;
function Add(const asz: TSizeF) : TSizeF;
function Distance : Single;
function IsZero : Boolean;
function Subtract(const asz: TSizeF) : TSizeF;
function Subtract(const asz: TSize) : TSizeF;
function SwapDimensions : TSizeF;
function Scale : TSizeF;
function Ceiling : TSize;
function Truncate : TSize;
function Floor : TSize;
function Round : TSize;
function &Length : Single;
function ToString(aSize: Byte; aDecimals: Byte) : RTLString; overload;
function ToString : RTLString; overload;
class function Create(const ax: Single; const ay: Single) : TSizeF; overload;
class function Create(const asz: TSize) : TSizeF; overload;
class function Zero : TSizeF;
class operator =(const asz1: TSizeF; const asz2: TSizeF) : Boolean;
class operator <>(const asz1: TSizeF; const asz2: TSizeF) : Boolean;
class operator +(const asz1: TSizeF; const asz2: TSizeF) : TSizeF;
class operator -(const asz1: TSizeF; const asz2: TSizeF) : TSizeF;
class operator -(const asz1: TSizeF) : TSizeF;
class operator *(const asz1: TSizeF; afactor: single) : TSizeF;
class operator *(afactor: single; const asz1: TSizeF) : TSizeF;
class operator :=(const apt: TPointF) : TSizeF;
class operator :=(const asz: TSize) : TSizeF;
class operator :=(const asz: TSizeF) : TPointF;
property Width: Single; {rw}
property Height: Single; {rw}
end;