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

#include <SkSGScene.h>

Public Member Functions

 ~Scene ()
 
 Scene (const Scene &)=delete
 
Sceneoperator= (const Scene &)=delete
 
void render (SkCanvas *) const
 
void revalidate (InvalidationController *=nullptr)
 
const RenderNodenodeAt (const SkPoint &) const
 

Static Public Member Functions

static std::unique_ptr< SceneMake (sk_sp< RenderNode > root)
 

Detailed Description

Holds a scene root. Provides high-level methods for rendering.

Definition at line 28 of file SkSGScene.h.

Constructor & Destructor Documentation

◆ ~Scene()

sksg::Scene::~Scene ( )
default

◆ Scene()

sksg::Scene::Scene ( const Scene )
delete

Member Function Documentation

◆ Make()

std::unique_ptr< Scene > sksg::Scene::Make ( sk_sp< RenderNode root)
static

Definition at line 16 of file SkSGScene.cpp.

16 {
17 return root ? std::unique_ptr<Scene>(new Scene(std::move(root))) : nullptr;
18}
Scene(const Scene &)=delete
string root
Definition: scale_cpu.py:20

◆ nodeAt()

const RenderNode * sksg::Scene::nodeAt ( const SkPoint p) const

Definition at line 32 of file SkSGScene.cpp.

32 {
33 return fRoot->nodeAt(p);
34}

◆ operator=()

Scene & sksg::Scene::operator= ( const Scene )
delete

◆ render()

void sksg::Scene::render ( SkCanvas canvas) const

Definition at line 24 of file SkSGScene.cpp.

24 {
25 fRoot->render(canvas);
26}

◆ revalidate()

void sksg::Scene::revalidate ( InvalidationController ic = nullptr)

Definition at line 28 of file SkSGScene.cpp.

28 {
29 fRoot->revalidate(ic, SkMatrix::I());
30}
static const SkMatrix & I()
Definition: SkMatrix.cpp:1544

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