Flutter Engine
The Flutter Engine
|
#include <SkSGRenderNode.h>
Protected Member Functions | |
CustomRenderNode (std::vector< sk_sp< RenderNode > > &&children) | |
~CustomRenderNode () override | |
const std::vector< sk_sp< RenderNode > > & | children () const |
bool | hasChildrenInval () 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 | |
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 |
Protected Types inherited from sksg::Node | |
enum | InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 } |
Clients outside SkSG looking to implement custom render nodes, should derive from this class instead of RenderNode. It handles various book-keeping, and provides a controlled extension point.
Definition at line 140 of file SkSGRenderNode.h.
|
explicitprotected |
Definition at line 237 of file SkSGRenderNode.cpp.
|
overrideprotected |
Definition at line 245 of file SkSGRenderNode.cpp.
|
inlineprotected |
Definition at line 145 of file SkSGRenderNode.h.
|
protected |
Definition at line 251 of file SkSGRenderNode.cpp.