Class TCSSUnitConverter
Unit
Declaration
type TCSSUnitConverter = class(TObject)
Description
Converter for CSS units
Hierarchy
- TObject
- TCSSUnitConverter
Overview
Fields
![]() |
FCurrentFontEmHeight: TFloatWithCSSUnit; |
![]() |
FViewBoxHeight: TFloatWithCSSUnit; |
![]() |
FViewBoxHeightInUnit: array[TCSSUnit] of single; |
![]() |
FViewBoxWidth: TFloatWithCSSUnit; |
![]() |
FViewBoxWidthInUnit: array[TCSSUnit] of single; |
Methods
![]() |
constructor Create; |
![]() |
function Convert(xy: single; sourceUnit, destUnit: TCSSUnit; dpi: single; containerSize: single = 0): single; |
![]() |
function ConvertCoord(pt: TPointF; sourceUnit, destUnit: TCSSUnit; containerWidth: single; containerHeight: single): TPointF; overload; |
![]() |
function ConvertCoord(pt: TPointF; sourceUnit, destUnit: TCSSUnit): TPointF; overload; |
![]() |
function ConvertHeight(AValue: ArrayOfTFloatWithCSSUnit; destUnit: TCSSUnit): ArrayOfTFloatWithCSSUnit; overload; |
![]() |
function ConvertHeight(y: single; sourceUnit, destUnit: TCSSUnit; containerHeight: single): single; overload; |
![]() |
function ConvertHeight(y: single; sourceUnit, destUnit: TCSSUnit): single; overload; |
![]() |
function ConvertHeight(AValue: ArrayOfTFloatWithCSSUnit; destUnit: TCSSUnit; containerHeight: single): ArrayOfTFloatWithCSSUnit; overload; |
![]() |
function ConvertHeight(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit): TFloatWithCSSUnit; overload; |
![]() |
function ConvertHeight(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit; containerHeight: single): TFloatWithCSSUnit; overload; |
![]() |
function ConvertOrtho(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit; containerWidth: single; containerHeight: single): TFloatWithCSSUnit; overload; |
![]() |
function ConvertOrtho(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit): TFloatWithCSSUnit; overload; |
![]() |
function ConvertOrtho(xy: single; sourceUnit, destUnit: TCSSUnit): single; overload; |
![]() |
function ConvertWidth(AValue: ArrayOfTFloatWithCSSUnit; destUnit: TCSSUnit; containerWidth: single): ArrayOfTFloatWithCSSUnit; overload; |
![]() |
function ConvertWidth(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit; containerWidth: single): TFloatWithCSSUnit; overload; |
![]() |
function ConvertWidth(x: single; sourceUnit, destUnit: TCSSUnit; containerWidth: single): single; overload; |
![]() |
function ConvertWidth(AValue: ArrayOfTFloatWithCSSUnit; destUnit: TCSSUnit): ArrayOfTFloatWithCSSUnit; overload; |
![]() |
function ConvertWidth(x: single; sourceUnit, destUnit: TCSSUnit): single; overload; |
![]() |
function ConvertWidth(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit): TFloatWithCSSUnit; overload; |
![]() |
class function formatValue(AValue: ArrayOfTSVGNumber; APrecision: integer = 7): string; overload; static; |
![]() |
class function formatValue(AValue: TFloatWithCSSUnit; APrecision: integer = 7): string; overload; static; |
![]() |
class function formatValue(AValue: single; APrecision: integer = 7): string; overload; static; |
![]() |
class function formatValue(AValue: ArrayOfTFloatWithCSSUnit; APrecision: integer = 7): string; overload; static; |
![]() |
function GetConversionMatrix(AFromUnit, AToUnit: TCSSUnit; containerWidth: single; containerHeight: single): TAffineMatrix; overload; |
![]() |
function GetConversionMatrix(AFromUnit, AToUnit: TCSSUnit): TAffineMatrix; overload; |
![]() |
class function parseArrayOfNumbers(AValue: string): ArrayOfTSVGNumber; overload; static; |
![]() |
class function parseArrayOfValuesWithUnit(AValue: string): ArrayOfTFloatWithCSSUnit; overload; static; |
![]() |
class function parseValue(AValue: string; ADefault: single): single; overload; static; |
![]() |
class function parseValue(AValue: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit; overload; static; |
![]() |
function GetDefaultUnitHeight: TFloatWithCSSUnit; virtual; |
![]() |
function GetDefaultUnitWidth: TFloatWithCSSUnit; virtual; |
![]() |
function GetDpiX: single; virtual; |
![]() |
function GetDpiY: single; virtual; |
![]() |
function GetFontEmHeight: TFloatWithCSSUnit; virtual; |
![]() |
function GetFontXHeight: TFloatWithCSSUnit; virtual; |
![]() |
function GetRootFontEmHeight: TFloatWithCSSUnit; |
![]() |
procedure SetViewBoxHeight(AValue: TFloatWithCSSUnit); |
![]() |
procedure SetViewBoxWidth(AValue: TFloatWithCSSUnit); |
Properties
![]() |
property CurrentFontEmHeight: TFloatWithCSSUnit read FCurrentFontEmHeight write FCurrentFontEmHeight; |
![]() |
property DefaultUnitHeight: TFloatWithCSSUnit read GetDefaultUnitHeight; |
![]() |
property DefaultUnitWidth: TFloatWithCSSUnit read GetDefaultUnitWidth; |
![]() |
property DpiX: single read GetDpiX; |
![]() |
property DpiY: single read GetDpiY; |
![]() |
property FontEmHeight: TFloatWithCSSUnit read GetFontEmHeight; |
![]() |
property FontXHeight: TFloatWithCSSUnit read GetFontXHeight; |
![]() |
property RootFontEmHeight: TFloatWithCSSUnit read GetRootFontEmHeight; |
![]() |
property ViewBoxHeight: TFloatWithCSSUnit read FViewBoxHeight write SetViewBoxHeight; |
![]() |
property ViewBoxWidth: TFloatWithCSSUnit read FViewBoxWidth write SetViewBoxWidth; |
Description
Fields
![]() |
FCurrentFontEmHeight: TFloatWithCSSUnit; |
This item has no description. |
![]() |
FViewBoxHeight: TFloatWithCSSUnit; |
This item has no description. |
![]() |
FViewBoxHeightInUnit: array[TCSSUnit] of single; |
This item has no description. |
![]() |
FViewBoxWidth: TFloatWithCSSUnit; |
This item has no description. |
![]() |
FViewBoxWidthInUnit: array[TCSSUnit] of single; |
This item has no description. |
Methods
![]() |
constructor Create; |
This item has no description. |
![]() |
function Convert(xy: single; sourceUnit, destUnit: TCSSUnit; dpi: single; containerSize: single = 0): single; |
This item has no description. |
![]() |
function ConvertCoord(pt: TPointF; sourceUnit, destUnit: TCSSUnit; containerWidth: single; containerHeight: single): TPointF; overload; |
This item has no description. |
![]() |
function ConvertCoord(pt: TPointF; sourceUnit, destUnit: TCSSUnit): TPointF; overload; |
This item has no description. |
![]() |
function ConvertHeight(AValue: ArrayOfTFloatWithCSSUnit; destUnit: TCSSUnit): ArrayOfTFloatWithCSSUnit; overload; |
This item has no description. |
![]() |
function ConvertHeight(y: single; sourceUnit, destUnit: TCSSUnit; containerHeight: single): single; overload; |
This item has no description. |
![]() |
function ConvertHeight(y: single; sourceUnit, destUnit: TCSSUnit): single; overload; |
This item has no description. |
![]() |
function ConvertHeight(AValue: ArrayOfTFloatWithCSSUnit; destUnit: TCSSUnit; containerHeight: single): ArrayOfTFloatWithCSSUnit; overload; |
This item has no description. |
![]() |
function ConvertHeight(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit): TFloatWithCSSUnit; overload; |
This item has no description. |
![]() |
function ConvertHeight(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit; containerHeight: single): TFloatWithCSSUnit; overload; |
This item has no description. |
![]() |
function ConvertOrtho(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit; containerWidth: single; containerHeight: single): TFloatWithCSSUnit; overload; |
This item has no description. |
![]() |
function ConvertOrtho(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit): TFloatWithCSSUnit; overload; |
This item has no description. |
![]() |
function ConvertOrtho(xy: single; sourceUnit, destUnit: TCSSUnit): single; overload; |
This item has no description. |
![]() |
function ConvertWidth(AValue: ArrayOfTFloatWithCSSUnit; destUnit: TCSSUnit; containerWidth: single): ArrayOfTFloatWithCSSUnit; overload; |
This item has no description. |
![]() |
function ConvertWidth(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit; containerWidth: single): TFloatWithCSSUnit; overload; |
This item has no description. |
![]() |
function ConvertWidth(x: single; sourceUnit, destUnit: TCSSUnit; containerWidth: single): single; overload; |
This item has no description. |
![]() |
function ConvertWidth(AValue: ArrayOfTFloatWithCSSUnit; destUnit: TCSSUnit): ArrayOfTFloatWithCSSUnit; overload; |
This item has no description. |
![]() |
function ConvertWidth(x: single; sourceUnit, destUnit: TCSSUnit): single; overload; |
This item has no description. |
![]() |
function ConvertWidth(AValue: TFloatWithCSSUnit; destUnit: TCSSUnit): TFloatWithCSSUnit; overload; |
This item has no description. |
![]() |
class function formatValue(AValue: ArrayOfTSVGNumber; APrecision: integer = 7): string; overload; static; |
This item has no description. |
![]() |
class function formatValue(AValue: TFloatWithCSSUnit; APrecision: integer = 7): string; overload; static; |
This item has no description. |
![]() |
class function formatValue(AValue: single; APrecision: integer = 7): string; overload; static; |
This item has no description. |
![]() |
class function formatValue(AValue: ArrayOfTFloatWithCSSUnit; APrecision: integer = 7): string; overload; static; |
This item has no description. |
![]() |
function GetConversionMatrix(AFromUnit, AToUnit: TCSSUnit; containerWidth: single; containerHeight: single): TAffineMatrix; overload; |
This item has no description. |
![]() |
function GetConversionMatrix(AFromUnit, AToUnit: TCSSUnit): TAffineMatrix; overload; |
This item has no description. |
![]() |
class function parseArrayOfNumbers(AValue: string): ArrayOfTSVGNumber; overload; static; |
This item has no description. |
![]() |
class function parseArrayOfValuesWithUnit(AValue: string): ArrayOfTFloatWithCSSUnit; overload; static; |
This item has no description. |
![]() |
class function parseValue(AValue: string; ADefault: single): single; overload; static; |
This item has no description. |
![]() |
class function parseValue(AValue: string; ADefault: TFloatWithCSSUnit): TFloatWithCSSUnit; overload; static; |
This item has no description. |
![]() |
function GetDefaultUnitHeight: TFloatWithCSSUnit; virtual; |
This item has no description. |
![]() |
function GetDefaultUnitWidth: TFloatWithCSSUnit; virtual; |
This item has no description. |
![]() |
function GetDpiX: single; virtual; |
This item has no description. |
![]() |
function GetDpiY: single; virtual; |
This item has no description. |
![]() |
function GetFontEmHeight: TFloatWithCSSUnit; virtual; |
This item has no description. |
![]() |
function GetFontXHeight: TFloatWithCSSUnit; virtual; |
This item has no description. |
![]() |
function GetRootFontEmHeight: TFloatWithCSSUnit; |
This item has no description. |
![]() |
procedure SetViewBoxHeight(AValue: TFloatWithCSSUnit); |
This item has no description. |
![]() |
procedure SetViewBoxWidth(AValue: TFloatWithCSSUnit); |
This item has no description. |
Properties
![]() |
property CurrentFontEmHeight: TFloatWithCSSUnit read FCurrentFontEmHeight write FCurrentFontEmHeight; |
This item has no description. |
![]() |
property DefaultUnitHeight: TFloatWithCSSUnit read GetDefaultUnitHeight; |
This item has no description. |
![]() |
property DefaultUnitWidth: TFloatWithCSSUnit read GetDefaultUnitWidth; |
This item has no description. |
![]() |
property DpiX: single read GetDpiX; |
This item has no description. |
![]() |
property DpiY: single read GetDpiY; |
This item has no description. |
![]() |
property FontEmHeight: TFloatWithCSSUnit read GetFontEmHeight; |
This item has no description. |
![]() |
property FontXHeight: TFloatWithCSSUnit read GetFontXHeight; |
This item has no description. |
![]() |
property RootFontEmHeight: TFloatWithCSSUnit read GetRootFontEmHeight; |
This item has no description. |
![]() |
property ViewBoxHeight: TFloatWithCSSUnit read FViewBoxHeight write SetViewBoxHeight; |
This item has no description. |
![]() |
property ViewBoxWidth: TFloatWithCSSUnit read FViewBoxWidth write SetViewBoxWidth; |
This item has no description. |