Flutter Engine
The Flutter Engine
|
#include <SkSGRenderNode.h>
Classes | |
struct | RenderContext |
class | ScopedRenderContext |
Public Member Functions | |
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 Member Functions | |
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 > &) |
Friends | |
class | ImageFilterEffect |
Additional Inherited Members | |
Protected Types inherited from sksg::Node | |
enum | InvalTraits { kBubbleDamage_Trait = 1 << 0 , kOverrideDamage_Trait = 1 << 1 } |
Base class for nodes which can render to a canvas.
Definition at line 34 of file SkSGRenderNode.h.
|
explicitprotected |
Definition at line 33 of file SkSGRenderNode.cpp.
bool sksg::RenderNode::isVisible | ( | ) | const |
Definition at line 35 of file SkSGRenderNode.cpp.
const RenderNode * sksg::RenderNode::nodeAt | ( | const SkPoint & | point | ) | const |
Definition at line 57 of file SkSGRenderNode.cpp.
|
protectedpure virtual |
|
protectedpure virtual |
Implemented in sksg::ColorFilter, sksg::ClipEffect, sksg::ExternalColorFilter, sksg::Draw, sksg::EffectNode, sksg::Group, sksg::Image, sksg::MaskEffect, sksg::OpacityEffect, sksg::ShaderEffect, sksg::MaskShaderEffect, sksg::ImageFilterEffect, sksg::BlenderEffect, sksg::TransformEffect, and skottie::internal::TextAdapter::GlyphDecoratorNode.
void sksg::RenderNode::render | ( | SkCanvas * | canvas, |
const RenderContext * | ctx = nullptr |
||
) | const |
Definition at line 49 of file SkSGRenderNode.cpp.
void sksg::RenderNode::setVisible | ( | bool | v | ) |
Definition at line 39 of file SkSGRenderNode.cpp.
|
friend |
Definition at line 130 of file SkSGRenderNode.h.