NovaSVG 0.10.0
A header-only SVG library
Loading...
Searching...
No Matches
novasvg::Length Class Reference

#include <svgelement.h>

Public Member Functions

 Length ()=default
 
 Length (float value, LengthUnits units)
 
float value () const
 
LengthUnits units () const
 
bool parse (std::string_view input, LengthNegativeMode mode)
 

Detailed Description

Definition at line 381 of file svgelement.h.

Constructor & Destructor Documentation

◆ Length() [1/2]

novasvg::Length::Length ( )
default

◆ Length() [2/2]

novasvg::Length::Length ( float  value,
LengthUnits  units 
)
inline

Definition at line 384 of file svgelement.h.

Member Function Documentation

◆ parse()

◆ units()

LengthUnits novasvg::Length::units ( ) const
inline

◆ value()

float novasvg::Length::value ( ) const
inline

Definition at line 388 of file svgelement.h.

Referenced by parse(), and novasvg::LengthContext::valueForLength().


The documentation for this class was generated from the following file: