Flutter Engine
The Flutter Engine
|
#include <SkSGMerge.h>
Classes | |
struct | Rec |
Public Types | |
enum class | Mode { kMerge , kUnion , kIntersect , kDifference , kReverseDifference , kXOR } |
Public Member Functions | |
~Merge () override | |
Public Member Functions inherited from sksg::GeometryNode | |
void | clip (SkCanvas *, bool antiAlias) const |
void | draw (SkCanvas *, const SkPaint &) const |
bool | contains (const SkPoint &) const |
SkPath | asPath () const |
Public Member Functions inherited from sksg::Node | |
const SkRect & | revalidate (InvalidationController *, const SkMatrix &) |
void | invalidate (bool damage=true) |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Static Public Member Functions | |
static sk_sp< Merge > | Make (std::vector< Rec > &&recs) |
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 |
Protected Member Functions inherited from sksg::GeometryNode | |
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 |
Protected Member Functions inherited from sksg::Node | |
Node (uint32_t invalTraits) | |
~Node () override | |
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 > &) |
Additional Inherited Members | |
Protected Types inherited from sksg::Node | |
enum | InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 } |
Concrete Geometry node, combining other geometries based on Mode.
Definition at line 30 of file SkSGMerge.h.
|
strong |
Enumerator | |
---|---|
kMerge | |
kUnion | |
kIntersect | |
kDifference | |
kReverseDifference | |
kXOR |
Definition at line 32 of file SkSGMerge.h.
|
override |
Definition at line 29 of file SkSGMerge.cpp.
Definition at line 49 of file SkSGMerge.h.
|
overrideprotectedvirtual |
Implements sksg::GeometryNode.
Definition at line 47 of file SkSGMerge.cpp.
|
overrideprotectedvirtual |
Implements sksg::GeometryNode.
Definition at line 35 of file SkSGMerge.cpp.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Implements sksg::GeometryNode.
Definition at line 39 of file SkSGMerge.cpp.
|
overrideprotectedvirtual |
Implements sksg::Node.
Definition at line 70 of file SkSGMerge.cpp.