C# Class SVGLength, UnitySVG

Show file Open project: MrJoy/UnitySVG Class Usage Examples

Public Methods

Method Description
GetPXLength ( string valueText ) : float
NewValueSpecifiedUnits ( float valueInSpecifiedUnits ) : void
SVGLength ( SVGLengthType unitType, float valueInSpecifiedUnits )
SVGLength ( float valueInSpecifiedUnits )
SVGLength ( string valueText )

Private Methods

Method Description
ConvertToPX ( float value, SVGLengthType lengthType ) : float
ExtractType ( string text, float &value, SVGLengthType &lengthType ) : void

Method Details

GetPXLength() public static method

public static GetPXLength ( string valueText ) : float
valueText string
return float

NewValueSpecifiedUnits() public method

public NewValueSpecifiedUnits ( float valueInSpecifiedUnits ) : void
valueInSpecifiedUnits float
return void

SVGLength() public method

public SVGLength ( SVGLengthType unitType, float valueInSpecifiedUnits )
unitType SVGLengthType
valueInSpecifiedUnits float

SVGLength() public method

public SVGLength ( float valueInSpecifiedUnits )
valueInSpecifiedUnits float

SVGLength() public method

public SVGLength ( string valueText )
valueText string