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

#include <svgelement.h>

Inheritance diagram for novasvg::SVGLinearGradientElement:
Collaboration diagram for novasvg::SVGLinearGradientElement:

Public Member Functions

 SVGLinearGradientElement (Document *document)
 
const SVGLength & x1 () const
 
const SVGLength & y1 () const
 
const SVGLength & x2 () const
 
const SVGLength & y2 () const
 
bool applyPaint (SVGRenderState &state, float opacity) const final
 
- Public Member Functions inherited from novasvg::SVGGradientElement
 SVGGradientElement (Document *document, ElementID id)
 
const SVGTransform & gradientTransform () const
 
const SVGEnumeration< Units > & gradientUnits () const
 
const SVGEnumeration< SpreadMethod > & spreadMethod () const
 
void collectGradientAttributes (SVGGradientAttributes &attributes) const
 
- Public Member Functions inherited from novasvg::SVGPaintElement
 SVGPaintElement (Document *document, ElementID id)
 
bool isPaintElement () const final
 
- Public Member Functions inherited from novasvg::SVGElement
 SVGElement (Document *document, ElementID id)
 
virtual ~SVGElement ()=default
 
bool hasAttribute (std::string_view name) const
 
const std::string & getAttribute (std::string_view name) const
 
bool setAttribute (std::string_view name, const std::string &value)
 
const Attribute * findAttribute (PropertyID id) const
 
bool hasAttribute (PropertyID id) const
 
const std::string & getAttribute (PropertyID id) const
 
bool setAttribute (int specificity, PropertyID id, const std::string &value)
 
void setAttributes (const AttributeList &attributes)
 
bool setAttribute (const Attribute &attribute)
 
virtual void parseAttribute (PropertyID id, const std::string &value)
 
SVGElement * previousElement () const
 
SVGElement * nextElement () const
 
SVGNode * addChild (std::unique_ptr< SVGNode > child)
 
SVGNode * firstChild () const
 
SVGNode * lastChild () const
 
ElementID id () const
 
const AttributeList & attributes () const
 
const SVGPropertyList & properties () const
 
const SVGNodeList & children () const
 
virtual Transform localTransform () const
 
virtual Rect fillBoundingBox () const
 
virtual Rect strokeBoundingBox () const
 
virtual Rect paintBoundingBox () const
 
SVGMarkerElement * getMarker (std::string_view id) const
 
SVGClipPathElement * getClipper (std::string_view id) const
 
SVGMaskElement * getMasker (std::string_view id) const
 
SVGFilterElement * getFilterElement (std::string_view id) const
 
SVGPaintElement * getPainter (std::string_view id) const
 
SVGElement * elementFromPoint (float x, float y)
 
template<typename T >
void transverse (T callback)
 
void addProperty (SVGProperty &value)
 
SVGProperty * getProperty (PropertyID id) const
 
Size currentViewportSize () const
 
float font_size () const
 
void cloneChildren (SVGElement *parentElement) const
 
std::unique_ptr< SVGNode > clone (bool deep) const final
 
virtual void build ()
 
virtual void layoutElement (const SVGLayoutState &state)
 
void layoutChildren (SVGLayoutState &state)
 
virtual void layout (SVGLayoutState &state)
 
void renderChildren (SVGRenderState &state) const
 
virtual void render (SVGRenderState &state) const
 
virtual std::shared_ptr< Canvas > applyFilterPrimitive (SVGFilterContext &context) const
 
bool isDisplayNone () const
 
bool isOverflowHidden () const
 
bool isVisibilityHidden () const
 
bool isHiddenElement () const
 
bool isPointableElement () const
 
const SVGClipPathElement * clipper () const
 
const SVGMaskElement * masker () const
 
const SVGFilterElement * filterElement () const
 
float opacity () const
 
MixBlendMode mixBlendMode () const
 
bool isElement () const final
 
- Public Member Functions inherited from novasvg::SVGNode
 SVGNode (Document *document)
 
virtual ~SVGNode ()=default
 
virtual bool isTextNode () const
 
virtual bool isGraphicsElement () const
 
virtual bool isGeometryElement () const
 
virtual bool isTextPositioningElement () const
 
Document * document () const
 
SVGRootElement * rootElement () const
 
SVGElement * parentElement () const
 
void setParentElement (SVGElement *parent)
 
bool isRootElement () const
 
- Public Member Functions inherited from novasvg::SVGURIReference
 SVGURIReference (SVGElement *element)
 
const SVGString & href () const
 
const std::string & hrefString () const
 
SVGElement * getTargetElement (const Document *document) const
 

Additional Inherited Members

- Static Public Member Functions inherited from novasvg::SVGElement
static std::unique_ptr< SVGElement > create (Document *document, ElementID id)
 

Detailed Description

Definition at line 1701 of file svgelement.h.

Constructor & Destructor Documentation

◆ SVGLinearGradientElement()

NOVASVG_INLINE novasvg::SVGLinearGradientElement::SVGLinearGradientElement ( Document *  document)

Definition at line 3239 of file svgelement.h.

References novasvg::SVGElement::addProperty().

Member Function Documentation

◆ applyPaint()

◆ x1()

const SVGLength & novasvg::SVGLinearGradientElement::x1 ( ) const
inline

Definition at line 1705 of file svgelement.h.

Referenced by applyPaint().

◆ x2()

const SVGLength & novasvg::SVGLinearGradientElement::x2 ( ) const
inline

Definition at line 1707 of file svgelement.h.

Referenced by applyPaint().

◆ y1()

const SVGLength & novasvg::SVGLinearGradientElement::y1 ( ) const
inline

Definition at line 1706 of file svgelement.h.

Referenced by applyPaint().

◆ y2()

const SVGLength & novasvg::SVGLinearGradientElement::y2 ( ) const
inline

Definition at line 1708 of file svgelement.h.

Referenced by applyPaint().


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