Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
CanvasLinesSlide Class Reference
Inheritance diagram for CanvasLinesSlide:
MotionMarkSlide Slide SkRefCnt SkRefCntBase

Public Member Functions

 CanvasLinesSlide ()
 
void load (SkScalar w, SkScalar h) override
 
- Public Member Functions inherited from MotionMarkSlide
 MotionMarkSlide ()=default
 
bool onChar (SkUnichar uni) override
 
void draw (SkCanvas *canvas) override
 
bool animate (double nanos) override
 
- Public Member Functions inherited from Slide
virtual SkISize getDimensions () const
 
virtual void gpuTeardown ()
 
virtual void draw (SkCanvas *canvas)=0
 
virtual bool animate (double nanos)
 
virtual void load (SkScalar winWidth, SkScalar winHeight)
 
virtual void resize (SkScalar winWidth, SkScalar winHeight)
 
virtual void unload ()
 
virtual bool onChar (SkUnichar c)
 
virtual bool onMouse (SkScalar x, SkScalar y, skui::InputState state, skui::ModifierKey modifiers)
 
virtual bool onGetControls (SkMetaData *)
 
virtual void onSetControls (const SkMetaData &)
 
const SkStringgetName ()
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Additional Inherited Members

- Protected Attributes inherited from MotionMarkSlide
std::unique_ptr< StagefStage
 
- Protected Attributes inherited from Slide
SkString fName
 

Detailed Description

Definition at line 874 of file MotionMarkSlide.cpp.

Constructor & Destructor Documentation

◆ CanvasLinesSlide()

CanvasLinesSlide::CanvasLinesSlide ( )
inline

Definition at line 876 of file MotionMarkSlide.cpp.

876{fName = "MotionMarkCanvasLines"; }
SkString fName
Definition: Slide.h:54

Member Function Documentation

◆ load()

void CanvasLinesSlide::load ( SkScalar  w,
SkScalar  h 
)
inlineoverridevirtual

Reimplemented from Slide.

Definition at line 878 of file MotionMarkSlide.cpp.

878 {
879 fStage = std::make_unique<CanvasLineSegmentStage>(SkSize::Make(w, h));
880 }
std::unique_ptr< Stage > fStage
SkScalar w
SkScalar h
static constexpr SkSize Make(SkScalar w, SkScalar h)
Definition: SkSize.h:56

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