Skia
2D Graphics Library
SkFlattenable.h File Reference
Include dependency graph for SkFlattenable.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  SkFlattenable
 
class  SkFlattenable::PrivateInitializer
 

Macros

#define SK_REGISTER_FLATTENABLE(type)   SkFlattenable::Register(#type, type::CreateProc)
 
#define SK_FLATTENABLE_HOOKS(type)
 

Macro Definition Documentation

◆ SK_FLATTENABLE_HOOKS

#define SK_FLATTENABLE_HOOKS (   type)
Value:
static sk_sp<SkFlattenable> CreateProc(SkReadBuffer&); \
Factory getFactory() const override { return type::CreateProc; } \
const char* getTypeName() const override { return #type; }

◆ SK_REGISTER_FLATTENABLE

#define SK_REGISTER_FLATTENABLE (   type)    SkFlattenable::Register(#type, type::CreateProc)
SkFlattenable::getFactory
virtual Factory getFactory() const =0
Implement this to return a factory function pointer that can be called to recreate your class given a...
SkFlattenable::PrivateInitializer
Definition: SkFlattenable.h:83
sk_sp
Shared pointer class to wrap classes that support a ref()/unref() interface.
Definition: SkRefCnt.h:215
SkFlattenable::getTypeName
virtual const char * getTypeName() const =0
Returns the name of the object's class.