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

Public Member Functions

 RepeatTileSlide ()
 
void draw (SkCanvas *canvas) 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 Slide
SkString fName
 

Detailed Description

Definition at line 42 of file RepeatTileSlide.cpp.

Constructor & Destructor Documentation

◆ RepeatTileSlide()

RepeatTileSlide::RepeatTileSlide ( )
inline

Definition at line 44 of file RepeatTileSlide.cpp.

44{ fName = "RepeatTile"; }
SkString fName
Definition: Slide.h:54

Member Function Documentation

◆ draw()

void RepeatTileSlide::draw ( SkCanvas canvas)
inlineoverridevirtual

Implements Slide.

Definition at line 46 of file RepeatTileSlide.cpp.

46 {
47 canvas->clear(SK_ColorGRAY);
50
51// canvas->scale(SK_Scalar1*2, SK_Scalar1);
52 canvas->translate(SkIntToScalar(100), SkIntToScalar(100));
53 canvas->drawPaint(paint);
54 }
static void make_paint(SkPaint *paint, SkTileMode tm)
constexpr SkColor SK_ColorGRAY
Definition: SkColor.h:113
#define SkIntToScalar(x)
Definition: SkScalar.h:57
void translate(SkScalar dx, SkScalar dy)
Definition: SkCanvas.cpp:1278
void drawPaint(const SkPaint &paint)
Definition: SkCanvas.cpp:1668
void clear(SkColor color)
Definition: SkCanvas.h:1199
const Paint & paint
Definition: color_source.cc:38

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