Flutter Engine
The Flutter Engine
Public Member Functions | Protected Attributes | List of all members
Slide Class Referenceabstract

#include <Slide.h>

Inheritance diagram for Slide:
SkRefCnt SkRefCntBase CameraSlide AnimBlurSlide AnimatedImageSlide AnimatedRects AnimatedTextSlide ArcsSlide BisectSlide ChartSlide ChineseFlingSlide ChineseZoomSlide ClickHandlerSlide ClipSlide ClockSlide DegenerateTwoPtRadialsSlide DrawAtlasSlide DrawShipSlide FilterBoundsSample FlutterAnimateView GMSlide GlyphTransformView GradientsSlide ImageFilterDAGSlide ImageSlide LayersSlide MSKPSlide ManyRectsSlide MaterialShadowsSlide MegaStrokeSlide MotionMarkSlide NullSlide OverstrokeSlide PathEffectSlide PathTextSlide PongSlide RepeatTileSlide SKPSlide ShadowColorSlide ShadowRefSlide ShadowUtilsSlide ShadowsSlide ShaperSlide SkSLDebuggerSlide SkSLSlide SlideDir SvgSlide TextBoxSlide TextureUploadSlide TimingSlide skiagm::ThinAASlide

Public Member Functions

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
 

Protected Attributes

SkString fName
 

Detailed Description

Definition at line 29 of file Slide.h.

Member Function Documentation

◆ animate()

virtual bool Slide::animate ( double  nanos)
inlinevirtual

◆ draw()

virtual void Slide::draw ( SkCanvas canvas)
pure virtual

◆ getDimensions()

virtual SkISize Slide::getDimensions ( ) const
inlinevirtual

A slide may have a content dimensions that is independent of the current window size. An empty size indicates that the Slide's dimensions are equal to the window's dimensions.

Reimplemented in DrawAtlasSlide, BisectSlide, GMSlide, ImageFilterDAGSlide, ImageSlide, MSKPSlide, SKPSlide, SlideDir, and TextureUploadSlide.

Definition at line 35 of file Slide.h.

35{ return SkISize::MakeEmpty(); }
static constexpr SkISize MakeEmpty()
Definition: SkSize.h:22

◆ getName()

const SkString & Slide::getName ( )
inline

Definition at line 51 of file Slide.h.

51{ return fName; }
SkString fName
Definition: Slide.h:54

◆ gpuTeardown()

virtual void Slide::gpuTeardown ( )
inlinevirtual

Reimplemented in GMSlide, BouncingTaggedImagesSlide, and MSKPSlide.

Definition at line 37 of file Slide.h.

37{ }

◆ load()

virtual void Slide::load ( SkScalar  winWidth,
SkScalar  winHeight 
)
inlinevirtual

◆ onChar()

virtual bool Slide::onChar ( SkUnichar  c)
inlinevirtual

◆ onGetControls()

virtual bool Slide::onGetControls ( SkMetaData )
inlinevirtual

Reimplemented in GMSlide.

Definition at line 48 of file Slide.h.

48{ return false; }

◆ onMouse()

virtual bool Slide::onMouse ( SkScalar  x,
SkScalar  y,
skui::InputState  state,
skui::ModifierKey  modifiers 
)
inlinevirtual

Reimplemented in ClickHandlerSlide, SkSLDebuggerSlide, SkSLSlide, and SlideDir.

Definition at line 45 of file Slide.h.

46 { return false; }

◆ onSetControls()

virtual void Slide::onSetControls ( const SkMetaData )
inlinevirtual

Reimplemented in GMSlide.

Definition at line 49 of file Slide.h.

49{}

◆ resize()

virtual void Slide::resize ( SkScalar  winWidth,
SkScalar  winHeight 
)
inlinevirtual

◆ unload()

virtual void Slide::unload ( )
inlinevirtual

Reimplemented in ImageSlide, MSKPSlide, DrawShipSlide, SKPSlide, SkSLDebuggerSlide, SkSLSlide, SlideDir, and SvgSlide.

Definition at line 42 of file Slide.h.

42{}

Member Data Documentation

◆ fName

SkString Slide::fName
protected

Definition at line 54 of file Slide.h.


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