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

#include <svgelement.h>

Inheritance diagram for novasvg::SVGPreserveAspectRatio:
Collaboration diagram for novasvg::SVGPreserveAspectRatio:

Public Types

enum class  AlignType {
  None , xMinYMin , xMidYMin , xMaxYMin ,
  xMinYMid , xMidYMid , xMaxYMid , xMinYMax ,
  xMidYMax , xMaxYMax
}
 
enum class  MeetOrSlice { Meet , Slice }
 

Public Member Functions

 SVGPreserveAspectRatio (PropertyID id)
 
AlignType alignType () const
 
MeetOrSlice meetOrSlice () const
 
bool parse (std::string_view input) final
 
Rect getClipRect (const Rect &viewBoxRect, const Size &viewportSize) const
 
Transform getTransform (const Rect &viewBoxRect, const Size &viewportSize) const
 
void transformRect (Rect &dstRect, Rect &srcRect) const
 
- Public Member Functions inherited from novasvg::SVGProperty
 SVGProperty (PropertyID id)
 
virtual ~SVGProperty ()=default
 
PropertyID id () const
 

Detailed Description

Definition at line 640 of file svgelement.h.

Member Enumeration Documentation

◆ AlignType

Enumerator
None 
xMinYMin 
xMidYMin 
xMaxYMin 
xMinYMid 
xMidYMid 
xMaxYMid 
xMinYMax 
xMidYMax 
xMaxYMax 

Definition at line 642 of file svgelement.h.

◆ MeetOrSlice

Enumerator
Meet 
Slice 

Definition at line 655 of file svgelement.h.

Constructor & Destructor Documentation

◆ SVGPreserveAspectRatio()

novasvg::SVGPreserveAspectRatio::SVGPreserveAspectRatio ( PropertyID  id)
inlineexplicit

Definition at line 660 of file svgelement.h.

Member Function Documentation

◆ alignType()

AlignType novasvg::SVGPreserveAspectRatio::alignType ( ) const
inline

Definition at line 664 of file svgelement.h.

Referenced by parse().

◆ getClipRect()

◆ getTransform()

◆ meetOrSlice()

MeetOrSlice novasvg::SVGPreserveAspectRatio::meetOrSlice ( ) const
inline

Definition at line 665 of file svgelement.h.

Referenced by parse().

◆ parse()

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

◆ transformRect()

NOVASVG_INLINE void novasvg::SVGPreserveAspectRatio::transformRect ( Rect &  dstRect,
Rect &  srcRect 
) const

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