Skia
2D Graphics Library
|
Base class for nodes which provide 'geometry' (as opposed to paint) for drawing. More...
#include <SkSGGeometryNode.h>
Public Member Functions | |
void | clip (SkCanvas *, bool antiAlias) const |
void | draw (SkCanvas *, const SkPaint &) const |
bool | contains (const SkPoint &) const |
SkPath | asPath () const |
const SkRect & | revalidate (InvalidationController *, const SkMatrix &) |
void | invalidate (bool damage=true) |
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 Types | |
enum | InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 } |
Protected Member Functions | |
GeometryNode () | |
virtual void | onClip (SkCanvas *, bool antiAlias) const =0 |
virtual void | onDraw (SkCanvas *, const SkPaint &) const =0 |
virtual bool | onContains (const SkPoint &) const =0 |
virtual SkPath | onAsPath () const =0 |
const SkRect & | bounds () const |
bool | hasInval () const |
virtual SkRect | onRevalidate (InvalidationController *, const SkMatrix &ctm)=0 |
void | observeInval (const sk_sp< Node > &) |
void | unobserveInval (const sk_sp< Node > &) |
Friends | |
class | Draw |
Base class for nodes which provide 'geometry' (as opposed to paint) for drawing.
|
protectedinherited |
|
protected |
SkPath sksg::GeometryNode::asPath | ( | ) | const |
|
inlineprotectedinherited |
void sksg::GeometryNode::clip | ( | SkCanvas * | , |
bool | antiAlias | ||
) | const |
bool sksg::GeometryNode::contains | ( | const SkPoint & | ) | const |
|
inlineprotectedinherited |
|
inherited |
|
protectedpure virtual |
Implemented in sksg::Text, sksg::RRect, sksg::Rect, sksg::Plane, sksg::Path, sksg::Merge, and sksg::GeometryEffect.
|
protectedpure virtual |
Implemented in sksg::Text, sksg::RRect, sksg::Rect, sksg::Plane, sksg::Path, sksg::Merge, and sksg::GeometryEffect.
|
protectedpure virtual |
Implemented in sksg::Text, sksg::RRect, sksg::Rect, sksg::Plane, sksg::Path, sksg::Merge, and sksg::GeometryEffect.
|
protectedpure virtual |
Implemented in sksg::Text, sksg::RRect, sksg::Rect, sksg::Plane, sksg::Path, sksg::Merge, and sksg::GeometryEffect.
|
protectedpure virtualinherited |
Implemented in sksg::TransformEffect, sksg::Matrix< T >, sksg::Text, sksg::ImageFilterEffect, sksg::ShaderEffect, sksg::RRect, sksg::Rect, sksg::Plane, sksg::Path, sksg::ShaderPaint, sksg::Color, sksg::OpacityEffect, sksg::Merge, sksg::MaskEffect, sksg::Image, sksg::Group, sksg::EffectNode, sksg::Draw, sksg::ClipEffect, sksg::ImageFilter, sksg::Shader, sksg::GeometryEffect, and sksg::ColorFilter.
|
inlineinherited |
Increment the reference count.
Must be balanced by a call to unref().
|
inherited |
|
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.
|
friend |
|
inherited |
|
inherited |