class SugLength

The class responsible for length and unit conversion.

Public Methods

[more] SugLength ()
The class constructor
[more]void convertToSpecifiedUnits (unsigned short unitType)
Converts value to the new unit type
[more]unsigned short getUnitType ()
Returns the unit type
[more]SugRealType getValue ()
Returns the value
[more]char* getValueAsString ()
Returns the value as a string (unused)
[more]SugRealType getValueInSpecifiedUnits ()
Returns the value in the specified units
[more]void newValueSpecifiedUnits (unsigned short unitType, SugRealType valueInSpecifiedUnits)
Creates a new value with a given unit type
[more] ~SugLength ()
The class destructor

Public Members

[more]enum An enumeration of unit types

Protected Fields

[more]unsigned short mUnitType
This unit type corresponding to the enumeration below
[more]SugRealType mValue
The value given by the user
[more]char* mValueAsString
The value as a string (unused)
[more]SugRealType mValueInSpecifiedUnits
The value after it has been translated to a certain unit type


Documentation

The class responsible for length and unit conversion. It is a direct translation from the SVG IDL.
ounsigned short mUnitType
This unit type corresponding to the enumeration below

oSugRealType mValue
The value given by the user

oSugRealType mValueInSpecifiedUnits
The value after it has been translated to a certain unit type

ochar* mValueAsString
The value as a string (unused)

oenum An enumeration of unit types
An enumeration of unit types

o SVG_LENGTHTYPE_UNKNOWN

o SVG_LENGTHTYPE_NUMBER

o SVG_LENGTHTYPE_PERCENTAGE

o SVG_LENGTHTYPE_EMS

o SVG_LENGTHTYPE_EXS

o SVG_LENGTHTYPE_PX

o SVG_LENGTHTYPE_CM

o SVG_LENGTHTYPE_MM

o SVG_LENGTHTYPE_IN

o SVG_LENGTHTYPE_PT

o SVG_LENGTHTYPE_PC

ounsigned short getUnitType()
Returns the unit type

oSugRealType getValue()
Returns the value

oSugRealType getValueInSpecifiedUnits()
Returns the value in the specified units

ochar* getValueAsString()
Returns the value as a string (unused)

ovoid newValueSpecifiedUnits(unsigned short unitType, SugRealType valueInSpecifiedUnits)
Creates a new value with a given unit type

ovoid convertToSpecifiedUnits(unsigned short unitType)
Converts value to the new unit type

o SugLength()
The class constructor

o ~SugLength()
The class destructor


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.