16#ifndef AEONGUI_SVGLENGTH_HPP
17#define AEONGUI_SVGLENGTH_HPP
19#include "DOMString.hpp"
27 enum class SVGLengthType
91 void UpdateValueAsString();
92 SVGLengthType mUnitType{SVGLengthType::UNKNOWN};
94 float mValueInSpecifiedUnits{};
96 DOMString mValueAsString{};
float valueInSpecifiedUnits() const
The value as a floating point value, in the units expressed by unitType.
Definition SVGLength.cpp:98
void convertToSpecifiedUnits(SVGLengthType unitType)
Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType...
Definition SVGLength.cpp:109
const DOMString & valueAsString() const
The value as a string value, in the units expressed by unitType.
Definition SVGLength.cpp:76
SVGLength()
Default constructor.
SVGLengthType unitType() const
The type of the length. One of the SVGLengthType constants.
Definition SVGLength.cpp:60
void newValueSpecifiedUnits(SVGLengthType unitType, float valueInSpecifiedUnits)
Reset the value as a number with an associated unitType, thereby replacing the values for all of the ...
Definition SVGLength.cpp:182
float value() const
The value as a floating point value, in user units.
Definition SVGLength.cpp:65