Flutter Engine
The Flutter Engine
Static Public Member Functions | Protected Member Functions | List of all members
sksg::Plane Class Referencefinal

#include <SkSGPlane.h>

Inheritance diagram for sksg::Plane:
sksg::GeometryNode sksg::Node SkRefCnt SkRefCntBase

Static Public Member Functions

static sk_sp< PlaneMake ()
 

Protected Member Functions

void onClip (SkCanvas *, bool antiAlias) const override
 
void onDraw (SkCanvas *, const SkPaint &) const override
 
bool onContains (const SkPoint &) const override
 
SkRect onRevalidate (InvalidationController *, const SkMatrix &) override
 
SkPath onAsPath () const override
 
- Protected Member Functions inherited from sksg::GeometryNode
 GeometryNode ()
 
virtual void onClip (SkCanvas *, bool antiAlias) const =0
 
virtual void onDraw (SkCanvas *, const SkPaint &) const =0
 
virtual bool onContains (const SkPoint &) const =0
 
virtual SkPath onAsPath () const =0
 
- Protected Member Functions inherited from sksg::Node
 Node (uint32_t invalTraits)
 
 ~Node () override
 
const SkRectbounds () 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::GeometryNode
void clip (SkCanvas *, bool antiAlias) const
 
void draw (SkCanvas *, const SkPaint &) const
 
bool contains (const SkPoint &) const
 
SkPath asPath () const
 
- Public Member Functions inherited from sksg::Node
const SkRectrevalidate (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 }
 

Detailed Description

Concrete Geometry node, representing the whole canvas.

Definition at line 27 of file SkSGPlane.h.

Member Function Documentation

◆ Make()

static sk_sp< Plane > sksg::Plane::Make ( )
inlinestatic

Definition at line 29 of file SkSGPlane.h.

29{ return sk_sp<Plane>(new Plane()); }

◆ onAsPath()

SkPath sksg::Plane::onAsPath ( ) const
overrideprotectedvirtual

Implements sksg::GeometryNode.

Definition at line 36 of file SkSGPlane.cpp.

36 {
39
40 return path;
41}
Definition: SkPath.h:59
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir path
Definition: switches.h:57

◆ onClip()

void sksg::Plane::onClip ( SkCanvas ,
bool  antiAlias 
) const
overrideprotectedvirtual

Implements sksg::GeometryNode.

Definition at line 22 of file SkSGPlane.cpp.

22{}

◆ onContains()

bool sksg::Plane::onContains ( const SkPoint ) const
overrideprotectedvirtual

Implements sksg::GeometryNode.

Definition at line 28 of file SkSGPlane.cpp.

28{ return true; }

◆ onDraw()

void sksg::Plane::onDraw ( SkCanvas canvas,
const SkPaint paint 
) const
overrideprotectedvirtual

Implements sksg::GeometryNode.

Definition at line 24 of file SkSGPlane.cpp.

24 {
25 canvas->drawPaint(paint);
26}
void drawPaint(const SkPaint &paint)
Definition: SkCanvas.cpp:1668
const Paint & paint
Definition: color_source.cc:38

◆ onRevalidate()

SkRect sksg::Plane::onRevalidate ( InvalidationController ,
const SkMatrix  
)
overrideprotectedvirtual

Implements sksg::Node.

Definition at line 30 of file SkSGPlane.cpp.

30 {
31 SkASSERT(this->hasInval());
32
34}
#define SkASSERT(cond)
Definition: SkAssert.h:116
#define SK_ScalarMin
Definition: SkScalar.h:25
#define SK_ScalarMax
Definition: SkScalar.h:24
bool hasInval() const
Definition: SkSGNode.h:60
static constexpr SkRect MakeLTRB(float l, float t, float r, float b)
Definition: SkRect.h:646

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