|
NovaSVG 0.10.0
A header-only SVG library
|
#include <svgelement.h>
Public Member Functions | |
| LengthContext (const SVGElement *element, Units units=Units::UserSpaceOnUse) | |
| float | valueForLength (const Length &length, LengthDirection direction) const |
| float | valueForLength (const SVGLength &length) const |
Definition at line 420 of file svgelement.h.
|
inline |
Definition at line 422 of file svgelement.h.
| NOVASVG_INLINE float novasvg::LengthContext::valueForLength | ( | const Length & | length, |
| LengthDirection | direction | ||
| ) | const |
Definition at line 2641 of file svgelement.h.
References novasvg::Em, novasvg::Ex, novasvg::SVGElement::font_size(), novasvg::Percent, novasvg::Length::units(), novasvg::UserSpaceOnUse, and novasvg::Length::value().
Referenced by novasvg::SVGLinearGradientElement::applyPaint(), novasvg::SVGRadialGradientElement::applyPaint(), novasvg::SVGElement::currentViewportSize(), novasvg::SVGGraphicsElement::getStrokeData(), novasvg::handleTextChunk(), novasvg::SVGTextPositioningElement::layoutElement(), novasvg::SVGMarkerElement::markerSize(), novasvg::SVGMarkerElement::refPoint(), novasvg::SVGLineElement::updateShape(), novasvg::SVGRectElement::updateShape(), novasvg::SVGEllipseElement::updateShape(), and novasvg::SVGCircleElement::updateShape().
|
inline |
Definition at line 427 of file svgelement.h.
References novasvg::SVGLength::direction(), novasvg::SVGLength::value(), and valueForLength().
Referenced by valueForLength().