NovaSVG 0.10.0
A header-only SVG library
Loading...
Searching...
No Matches
novasvg::SVGEnumeration< Enum > Class Template Referencefinal

#include <svgelement.h>

Inheritance diagram for novasvg::SVGEnumeration< Enum >:
Collaboration diagram for novasvg::SVGEnumeration< Enum >:

Public Member Functions

 SVGEnumeration (PropertyID id, Enum value)
 
Enum value () const
 
bool parse (std::string_view input) final
 
NOVASVG_INLINE bool parse (std::string_view input)
 
NOVASVG_INLINE bool parse (std::string_view input)
 
NOVASVG_INLINE bool parse (std::string_view input)
 
NOVASVG_INLINE bool parse (std::string_view input)
 
template<unsigned int N>
NOVASVG_INLINE bool parseEnum (std::string_view input, const SVGEnumerationEntry< Enum >(&entries)[N])
 
- Public Member Functions inherited from novasvg::SVGProperty
 SVGProperty (PropertyID id)
 
virtual ~SVGProperty ()=default
 
PropertyID id () const
 

Detailed Description

template<typename Enum>
class novasvg::SVGEnumeration< Enum >

Definition at line 325 of file svgelement.h.

Constructor & Destructor Documentation

◆ SVGEnumeration()

template<typename Enum >
novasvg::SVGEnumeration< Enum >::SVGEnumeration ( PropertyID  id,
Enum  value 
)
inlineexplicit

Definition at line 327 of file svgelement.h.

Member Function Documentation

◆ parse() [1/5]

NOVASVG_INLINE bool novasvg::SVGEnumeration< SpreadMethod >::parse ( std::string_view  input)
virtual

Implements novasvg::SVGProperty.

Definition at line 2458 of file svgelement.h.

References novasvg::Pad, novasvg::Reflect, and novasvg::Repeat.

◆ parse() [2/5]

NOVASVG_INLINE bool novasvg::SVGEnumeration< Units >::parse ( std::string_view  input)
virtual

Implements novasvg::SVGProperty.

Definition at line 2470 of file svgelement.h.

References novasvg::ObjectBoundingBox, and novasvg::UserSpaceOnUse.

◆ parse() [3/5]

NOVASVG_INLINE bool novasvg::SVGEnumeration< MarkerUnits >::parse ( std::string_view  input)
virtual

Implements novasvg::SVGProperty.

Definition at line 2481 of file svgelement.h.

References novasvg::StrokeWidth, and novasvg::UserSpaceOnUse.

◆ parse() [4/5]

NOVASVG_INLINE bool novasvg::SVGEnumeration< LengthAdjust >::parse ( std::string_view  input)
virtual

Implements novasvg::SVGProperty.

Definition at line 2492 of file svgelement.h.

References novasvg::Spacing, and novasvg::SpacingAndGlyphs.

◆ parse() [5/5]

template<typename Enum >
bool novasvg::SVGEnumeration< Enum >::parse ( std::string_view  input)
finalvirtual

Implements novasvg::SVGProperty.

◆ parseEnum()

template<typename Enum >
template<unsigned int N>
NOVASVG_INLINE bool novasvg::SVGEnumeration< Enum >::parseEnum ( std::string_view  input,
const SVGEnumerationEntry< Enum >(&)  entries[N] 
)

Definition at line 2504 of file svgelement.h.

References novasvg::stripLeadingAndTrailingSpaces().

◆ value()


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