Skia
2D Graphics Library
skottie::SlotManager Class Referencefinal

#include <SlotManager.h>

Inheritance diagram for skottie::SlotManager:

Classes

struct  SlotInfo
 

Public Types

using SlotID = SkString
 

Public Member Functions

 SlotManager (sk_sp< skottie::internal::SceneGraphRevalidator >)
 
 ~SlotManager () override
 
bool setColorSlot (const SlotID &, SkColor)
 
bool setImageSlot (const SlotID &, const sk_sp< skresources::ImageAsset > &)
 
bool setScalarSlot (const SlotID &, float)
 
bool setVec2Slot (const SlotID &, SkV2)
 
bool setTextSlot (const SlotID &, const TextPropertyValue &)
 
std::optional< SkColorgetColorSlot (const SlotID &) const
 
sk_sp< const skresources::ImageAsset > getImageSlot (const SlotID &) const
 
std::optional< float > getScalarSlot (const SlotID &) const
 
std::optional< SkV2getVec2Slot (const SlotID &) const
 
std::optional< TextPropertyValuegetTextSlot (const SlotID &) const
 
SlotInfo getSlotInfo () const
 
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...
 

Friends

class skottie::internal::AnimationBuilder
 
class skottie::internal::AnimatablePropertyContainer
 

Member Typedef Documentation

◆ SlotID

Constructor & Destructor Documentation

◆ SlotManager()

skottie::SlotManager::SlotManager ( sk_sp< skottie::internal::SceneGraphRevalidator >  )

◆ ~SlotManager()

skottie::SlotManager::~SlotManager ( )
override

Member Function Documentation

◆ getColorSlot()

std::optional<SkColor> skottie::SlotManager::getColorSlot ( const SlotID ) const

◆ getImageSlot()

sk_sp<const skresources::ImageAsset> skottie::SlotManager::getImageSlot ( const SlotID ) const

◆ getScalarSlot()

std::optional<float> skottie::SlotManager::getScalarSlot ( const SlotID ) const

◆ getSlotInfo()

SlotInfo skottie::SlotManager::getSlotInfo ( ) const

◆ getTextSlot()

std::optional<TextPropertyValue> skottie::SlotManager::getTextSlot ( const SlotID ) const

◆ getVec2Slot()

std::optional<SkV2> skottie::SlotManager::getVec2Slot ( const SlotID ) const

◆ ref()

void SkRefCntBase::ref ( ) const
inlineinherited

Increment the reference count.

Must be balanced by a call to unref().

◆ setColorSlot()

bool skottie::SlotManager::setColorSlot ( const SlotID ,
SkColor   
)

◆ setImageSlot()

bool skottie::SlotManager::setImageSlot ( const SlotID ,
const sk_sp< skresources::ImageAsset > &   
)

◆ setScalarSlot()

bool skottie::SlotManager::setScalarSlot ( const SlotID ,
float   
)

◆ setTextSlot()

bool skottie::SlotManager::setTextSlot ( const SlotID ,
const TextPropertyValue  
)

◆ setVec2Slot()

bool skottie::SlotManager::setVec2Slot ( const SlotID ,
SkV2   
)

◆ 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.

◆ 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.

Friends And Related Function Documentation

◆ skottie::internal::AnimatablePropertyContainer

friend class skottie::internal::AnimatablePropertyContainer
friend

◆ skottie::internal::AnimationBuilder

friend class skottie::internal::AnimationBuilder
friend

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