Skia
2D Graphics Library
|
#include <SkSVGNode.h>
Public Member Functions | |
~SkSVGNode () override | |
SkSVGTag | tag () const |
virtual void | appendChild (sk_sp< SkSVGNode >)=0 |
void | render (const SkSVGRenderContext &) const |
bool | asPaint (const SkSVGRenderContext &, SkPaint *) const |
SkPath | asPath (const SkSVGRenderContext &) const |
SkRect | objectBoundingBox (const SkSVGRenderContext &) const |
void | setAttribute (SkSVGAttribute, const SkSVGValue &) |
bool | setAttribute (const char *attributeName, const char *attributeValue) |
virtual bool | parseAndSetAttribute (const char *name, const char *value) |
bool | unique () const |
May return true if the caller is the only owner. More... | |
void | ref () const |
Increment the reference count. More... | |
void | unref () const |
Decrement the reference count. More... | |
Protected Member Functions | |
SkSVGNode (SkSVGTag) | |
virtual bool | onPrepareToRender (SkSVGRenderContext *) const |
virtual void | onRender (const SkSVGRenderContext &) const =0 |
virtual bool | onAsPaint (const SkSVGRenderContext &, SkPaint *) const |
virtual SkPath | onAsPath (const SkSVGRenderContext &) const =0 |
virtual void | onSetAttribute (SkSVGAttribute, const SkSVGValue &) |
virtual bool | hasChildren () const |
virtual SkRect | onObjectBoundingBox (const SkSVGRenderContext &) const |
Static Protected Member Functions | |
static SkMatrix | ComputeViewboxMatrix (const SkRect &, const SkRect &, SkSVGPreserveAspectRatio) |
|
override |
|
protected |
Implemented in SkSVGUse, SkSVGShape, SkSVGImage, SkSVGContainer, SkSVGTextContainer, and SkSVGFeLightSource.
bool SkSVGNode::asPaint | ( | const SkSVGRenderContext & | , |
SkPaint * | |||
) | const |
SkPath SkSVGNode::asPath | ( | const SkSVGRenderContext & | ) | const |
|
staticprotected |
|
inlineprotectedvirtual |
Reimplemented in SkSVGContainer.
SkRect SkSVGNode::objectBoundingBox | ( | const SkSVGRenderContext & | ) | const |
|
inlineprotectedvirtual |
Reimplemented in SkSVGPattern, and SkSVGGradient.
|
protectedpure virtual |
Implemented in SkSVGUse, SkSVGRect, SkSVGPoly, SkSVGPath, SkSVGLine, SkSVGImage, SkSVGEllipse, SkSVGContainer, and SkSVGCircle.
|
inlineprotectedvirtual |
Reimplemented in SkSVGUse, SkSVGRect, SkSVGPoly, SkSVGPath, SkSVGImage, SkSVGContainer, and SkSVGCircle.
|
protectedvirtual |
Reimplemented in SkSVGUse, SkSVGTransformableNode, SkSVGSVG, and SkSVGImage.
|
protectedpure virtual |
Implemented in SkSVGUse, SkSVGTextFragment, SkSVGImage, SkSVGContainer, SkSVGShape, and SkSVGHiddenContainer.
|
inlineprotectedvirtual |
Reimplemented in SkSVGTransformableNode, and SkSVGSVG.
|
virtual |
Reimplemented in SkSVGTextContainer, SkSVGStop, SkSVGRect, SkSVGRadialGradient, SkSVGPoly, SkSVGPattern, SkSVGPath, SkSVGMask, SkSVGLinearGradient, SkSVGLine, SkSVGImage, SkSVGGradient, SkSVGFilter, SkSVGFeTurbulence, SkSVGFeOffset, SkSVGFeMorphology, SkSVGFeDiffuseLighting, SkSVGFeSpecularLighting, SkSVGFeLighting, SkSVGFeImage, SkSVGFeGaussianBlur, SkSVGFeDisplacementMap, SkSVGFeComposite, SkSVGFeColorMatrix, SkSVGFeBlend, SkSVGFe, SkSVGEllipse, SkSVGClipPath, and SkSVGCircle.
|
inlineinherited |
Increment the reference count.
Must be balanced by a call to unref().
void SkSVGNode::render | ( | const SkSVGRenderContext & | ) | const |
bool SkSVGNode::setAttribute | ( | const char * | attributeName, |
const char * | attributeValue | ||
) |
void SkSVGNode::setAttribute | ( | SkSVGAttribute | , |
const SkSVGValue & | |||
) |
|
inline |
|
inlineinherited |
May return true if the caller is the only owner.
Ensures that all previous owner's actions are complete.
|
inlineinherited |
Decrement the reference count.
If the reference count is 1 before the decrement, then delete the object. Note that if this is the case, then the object needs to have been allocated via new, and not on the stack.