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

#include <svgelement.h>

Public Member Functions

 SVGPaintServer ()=default
 
 SVGPaintServer (const SVGPaintElement *element, const Color &color, float opacity)
 
bool isRenderable () const
 
const SVGPaintElement * element () const
 
const Color & color () const
 
float opacity () const
 
bool applyPaint (SVGRenderState &state) const
 

Detailed Description

Definition at line 990 of file svgelement.h.

Constructor & Destructor Documentation

◆ SVGPaintServer() [1/2]

novasvg::SVGPaintServer::SVGPaintServer ( )
default

◆ SVGPaintServer() [2/2]

novasvg::SVGPaintServer::SVGPaintServer ( const SVGPaintElement *  element,
const Color &  color,
float  opacity 
)
inline

Definition at line 993 of file svgelement.h.

Member Function Documentation

◆ applyPaint()

NOVASVG_INLINE bool novasvg::SVGPaintServer::applyPaint ( SVGRenderState &  state) const

◆ color()

const Color & novasvg::SVGPaintServer::color ( ) const
inline

Definition at line 1000 of file svgelement.h.

◆ element()

const SVGPaintElement * novasvg::SVGPaintServer::element ( ) const
inline

Definition at line 999 of file svgelement.h.

Referenced by novasvg::SVGTextElement::render().

◆ isRenderable()

bool novasvg::SVGPaintServer::isRenderable ( ) const
inline

Definition at line 997 of file svgelement.h.

References novasvg::Color::getA().

Referenced by applyPaint(), and novasvg::SVGGeometryElement::strokeBoundingBox().

◆ opacity()

float novasvg::SVGPaintServer::opacity ( ) const
inline

Definition at line 1001 of file svgelement.h.


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