Flutter Engine
The Flutter Engine
|
#include <SkSGMaskEffect.h>
Public Types | |
enum class | Mode : uint32_t { kAlphaNormal , kAlphaInvert , kLumaNormal , kLumaInvert } |
Public Member Functions | |
~MaskEffect () override | |
Public Member Functions inherited from sksg::RenderNode | |
void | render (SkCanvas *, const RenderContext *=nullptr) const |
const RenderNode * | nodeAt (const SkPoint &point) const |
bool | isVisible () const |
void | setVisible (bool) |
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< MaskEffect > | Make (sk_sp< RenderNode > child, sk_sp< RenderNode > mask, Mode mode=Mode::kAlphaNormal) |
Protected Member Functions | |
MaskEffect (sk_sp< RenderNode >, sk_sp< RenderNode > mask, Mode) | |
void | onRender (SkCanvas *, const RenderContext *) const override |
const RenderNode * | onNodeAt (const SkPoint &) const override |
SkRect | onRevalidate (InvalidationController *, const SkMatrix &) override |
Protected Member Functions inherited from sksg::EffectNode | |
EffectNode (sk_sp< RenderNode >, uint32_t inval_traits=0) | |
~EffectNode () override | |
void | onRender (SkCanvas *, const RenderContext *) const override |
const RenderNode * | onNodeAt (const SkPoint &) const override |
SkRect | onRevalidate (InvalidationController *, const SkMatrix &) override |
const sk_sp< RenderNode > & | getChild () const |
Protected Member Functions inherited from sksg::RenderNode | |
RenderNode (uint32_t inval_traits=0) | |
virtual void | onRender (SkCanvas *, const RenderContext *) const =0 |
virtual const RenderNode * | onNodeAt (const SkPoint &p) 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 Effect node, applying a mask to its descendants.
Definition at line 30 of file SkSGMaskEffect.h.
|
strong |
Enumerator | |
---|---|
kAlphaNormal | |
kAlphaInvert | |
kLumaNormal | |
kLumaInvert |
Definition at line 32 of file SkSGMaskEffect.h.
|
override |
Definition at line 39 of file SkSGMaskEffect.cpp.
|
protected |
Definition at line 32 of file SkSGMaskEffect.cpp.
|
inlinestatic |
Definition at line 39 of file SkSGMaskEffect.h.
|
overrideprotectedvirtual |
Reimplemented from sksg::EffectNode.
Definition at line 85 of file SkSGMaskEffect.cpp.
|
overrideprotectedvirtual |
Reimplemented from sksg::EffectNode.
Definition at line 43 of file SkSGMaskEffect.cpp.
|
overrideprotectedvirtual |
Reimplemented from sksg::EffectNode.
Definition at line 95 of file SkSGMaskEffect.cpp.