Skia
2D Graphics Library
|
Concrete Geometry node, combining other geometries based on Mode. More...
#include <SkSGMerge.h>
Classes | |
struct | Rec |
Public Types | |
enum class | Mode { kMerge , kUnion , kIntersect , kDifference , kReverseDifference , kXOR } |
Public Member Functions | |
~Merge () override | |
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... | |
Static Public Member Functions | |
static sk_sp< Merge > | Make (std::vector< Rec > &&recs) |
Protected Types | |
enum | InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 } |
Protected Member Functions | |
void | onClip (SkCanvas *, bool antiAlias) const override |
void | onDraw (SkCanvas *, const SkPaint &) const override |
bool | onContains (const SkPoint &) const override |
SkRect | onRevalidate (InvalidationController *, const SkMatrix &) override |
SkPath | onAsPath () const override |
const SkRect & | bounds () const |
bool | hasInval () const |
void | observeInval (const sk_sp< Node > &) |
void | unobserveInval (const sk_sp< Node > &) |
Concrete Geometry node, combining other geometries based on Mode.
|
protectedinherited |
|
strong |
|
override |
|
inherited |
|
inlineprotectedinherited |
|
inherited |
|
inherited |
|
inlineprotectedinherited |
|
inherited |
|
overrideprotectedvirtual |
Implements sksg::GeometryNode.
|
overrideprotectedvirtual |
Implements sksg::GeometryNode.
|
overrideprotectedvirtual |
Implements sksg::GeometryNode.
Implements sksg::GeometryNode.
|
overrideprotectedvirtual |
Implements sksg::Node.
|
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.
|
inherited |
|
inherited |