Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Attributes | List of all members
skiagm::ShapeRenderer Class Referenceabstract
Inheritance diagram for skiagm::ShapeRenderer:
SkRefCntBase skiagm::OffscreenShapeRenderer skiagm::PathRenderer skiagm::RectRenderer

Public Member Functions

virtual void draw (SkCanvas *canvas, SkPaint *paint, SkScalar tx, SkScalar ty, SkScalar angle)=0
 
virtual SkString name ()=0
 
virtual sk_sp< ShapeRenderertoHairline ()=0
 
void applyLocalTransform (SkCanvas *canvas, SkScalar tx, SkScalar ty, SkScalar angle)
 
- Public Member Functions inherited from SkRefCntBase
 SkRefCntBase ()
 
virtual ~SkRefCntBase ()
 
bool unique () const
 
void ref () const
 
void unref () const
 

Static Public Attributes

static constexpr SkScalar kTileWidth = 20.f
 
static constexpr SkScalar kTileHeight = 20.f
 

Detailed Description

Definition at line 22 of file ThinAASlide.cpp.

Member Function Documentation

◆ applyLocalTransform()

void skiagm::ShapeRenderer::applyLocalTransform ( SkCanvas canvas,
SkScalar  tx,
SkScalar  ty,
SkScalar  angle 
)
inline

Definition at line 38 of file ThinAASlide.cpp.

38 {
39 canvas->translate(tx, ty);
40 canvas->rotate(angle, kTileWidth / 2.f, kTileHeight / 2.f);
41 }
void translate(SkScalar dx, SkScalar dy)
Definition: SkCanvas.cpp:1278
void rotate(SkScalar degrees)
Definition: SkCanvas.cpp:1300
static constexpr SkScalar kTileHeight
Definition: ThinAASlide.cpp:25
static constexpr SkScalar kTileWidth
Definition: ThinAASlide.cpp:24

◆ draw()

virtual void skiagm::ShapeRenderer::draw ( SkCanvas canvas,
SkPaint paint,
SkScalar  tx,
SkScalar  ty,
SkScalar  angle 
)
pure virtual

◆ name()

virtual SkString skiagm::ShapeRenderer::name ( )
pure virtual

◆ toHairline()

virtual sk_sp< ShapeRenderer > skiagm::ShapeRenderer::toHairline ( )
pure virtual

Member Data Documentation

◆ kTileHeight

constexpr SkScalar skiagm::ShapeRenderer::kTileHeight = 20.f
inlinestaticconstexpr

Definition at line 25 of file ThinAASlide.cpp.

◆ kTileWidth

constexpr SkScalar skiagm::ShapeRenderer::kTileWidth = 20.f
inlinestaticconstexpr

Definition at line 24 of file ThinAASlide.cpp.


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