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

#include <svgelement.h>

Inheritance diagram for novasvg::SVGLength:
Collaboration diagram for novasvg::SVGLength:

Public Member Functions

 SVGLength (PropertyID id, LengthDirection direction, LengthNegativeMode negativeMode, float value=0, LengthUnits units=LengthUnits::None)
 
bool isPercent () const
 
LengthDirection direction () const
 
LengthNegativeMode negativeMode () const
 
const Length & value () const
 
bool parse (std::string_view input) final
 
- Public Member Functions inherited from novasvg::SVGProperty
 SVGProperty (PropertyID id)
 
virtual ~SVGProperty ()=default
 
PropertyID id () const
 

Detailed Description

Definition at line 398 of file svgelement.h.

Constructor & Destructor Documentation

◆ SVGLength()

novasvg::SVGLength::SVGLength ( PropertyID  id,
LengthDirection  direction,
LengthNegativeMode  negativeMode,
float  value = 0,
LengthUnits  units = LengthUnits::None 
)
inline

Definition at line 400 of file svgelement.h.

Member Function Documentation

◆ direction()

LengthDirection novasvg::SVGLength::direction ( ) const
inline

Definition at line 409 of file svgelement.h.

Referenced by novasvg::LengthContext::valueForLength().

◆ isPercent()

bool novasvg::SVGLength::isPercent ( ) const
inline

Definition at line 407 of file svgelement.h.

References novasvg::Percent, and novasvg::Length::units().

◆ negativeMode()

LengthNegativeMode novasvg::SVGLength::negativeMode ( ) const
inline

Definition at line 410 of file svgelement.h.

◆ parse()

NOVASVG_INLINE bool novasvg::SVGLength::parse ( std::string_view  input)
finalvirtual

Implements novasvg::SVGProperty.

Definition at line 2669 of file svgelement.h.

References novasvg::Length::parse().

◆ value()

const Length & novasvg::SVGLength::value ( ) const
inline

Definition at line 411 of file svgelement.h.

Referenced by novasvg::LengthContext::valueForLength().


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