Skia
2D Graphics Library
sksg::DropShadowImageFilter Class Referencefinal

SkDropShadowImageFilter node. More...

#include <SkSGRenderEffect.h>

Inheritance diagram for sksg::DropShadowImageFilter:

Public Types

enum class  Mode { kShadowAndForeground , kShadowOnly }
 

Public Member Functions

 ~DropShadowImageFilter () override
 
const sk_sp< SkImageFilter > & getFilter () const
 
const SkRectrevalidate (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< DropShadowImageFilterMake ()
 

Protected Types

enum  InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 }
 

Protected Member Functions

sk_sp< SkImageFilteronRevalidateFilter () override
 
SkRect onRevalidate (InvalidationController *, const SkMatrix &) final
 
const SkRectbounds () const
 
bool hasInval () const
 
void observeInval (const sk_sp< Node > &)
 
void unobserveInval (const sk_sp< Node > &)
 

Detailed Description

SkDropShadowImageFilter node.

Member Enumeration Documentation

◆ InvalTraits

enum sksg::Node::InvalTraits
protectedinherited
Enumerator
kBubbleDamage_Trait 
kOverrideDamage_Trait 

◆ Mode

Enumerator
kShadowAndForeground 
kShadowOnly 

Constructor & Destructor Documentation

◆ ~DropShadowImageFilter()

sksg::DropShadowImageFilter::~DropShadowImageFilter ( )
override

Member Function Documentation

◆ bounds()

const SkRect& sksg::Node::bounds ( ) const
inlineprotectedinherited

◆ getFilter()

const sk_sp<SkImageFilter>& sksg::ImageFilter::getFilter ( ) const
inlineinherited

◆ hasInval()

bool sksg::Node::hasInval ( ) const
inlineprotectedinherited

◆ invalidate()

void sksg::Node::invalidate ( bool  damage = true)
inherited

◆ Make()

static sk_sp<DropShadowImageFilter> sksg::DropShadowImageFilter::Make ( )
static

◆ observeInval()

void sksg::Node::observeInval ( const sk_sp< Node > &  )
protectedinherited

◆ onRevalidate()

SkRect sksg::ImageFilter::onRevalidate ( InvalidationController ,
const SkMatrix  
)
finalprotectedvirtualinherited

Implements sksg::Node.

◆ onRevalidateFilter()

sk_sp<SkImageFilter> sksg::DropShadowImageFilter::onRevalidateFilter ( )
overrideprotectedvirtual

Implements sksg::ImageFilter.

◆ ref()

void SkRefCntBase::ref ( ) const
inlineinherited

Increment the reference count.

Must be balanced by a call to unref().

◆ revalidate()

const SkRect& sksg::Node::revalidate ( InvalidationController ,
const SkMatrix  
)
inherited

◆ unique()

bool SkRefCntBase::unique ( ) const
inlineinherited

May return true if the caller is the only owner.

Ensures that all previous owner's actions are complete.

◆ unobserveInval()

void sksg::Node::unobserveInval ( const sk_sp< Node > &  )
protectedinherited

◆ unref()

void SkRefCntBase::unref ( ) const
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.

Member Data Documentation

◆ fInvalObserver

Node* sksg::Node::fInvalObserver
inherited

◆ fInvalObserverArray

std::vector<Node*>* sksg::Node::fInvalObserverArray
inherited

The documentation for this class was generated from the following file: