Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
SkPaintFilterCanvas::AutoPaintFilter Class Reference

Public Member Functions

 AutoPaintFilter (const SkPaintFilterCanvas *canvas, const SkPaint *paint)
 
 AutoPaintFilter (const SkPaintFilterCanvas *canvas, const SkPaint &paint)
 
const SkPaintpaint () const
 
bool shouldDraw () const
 

Detailed Description

Definition at line 32 of file SkPaintFilterCanvas.cpp.

Constructor & Destructor Documentation

◆ AutoPaintFilter() [1/2]

SkPaintFilterCanvas::AutoPaintFilter::AutoPaintFilter ( const SkPaintFilterCanvas canvas,
const SkPaint paint 
)
inline

Definition at line 34 of file SkPaintFilterCanvas.cpp.

35 : fPaint(paint ? *paint : SkPaint()) {
36 fShouldDraw = canvas->onFilter(fPaint);
37 }
virtual bool onFilter(SkPaint &paint) const =0

◆ AutoPaintFilter() [2/2]

SkPaintFilterCanvas::AutoPaintFilter::AutoPaintFilter ( const SkPaintFilterCanvas canvas,
const SkPaint paint 
)
inline

Definition at line 39 of file SkPaintFilterCanvas.cpp.

40 : AutoPaintFilter(canvas, &paint) { }
AutoPaintFilter(const SkPaintFilterCanvas *canvas, const SkPaint *paint)

Member Function Documentation

◆ paint()

const SkPaint & SkPaintFilterCanvas::AutoPaintFilter::paint ( ) const
inline

Definition at line 42 of file SkPaintFilterCanvas.cpp.

42{ return fPaint; }

◆ shouldDraw()

bool SkPaintFilterCanvas::AutoPaintFilter::shouldDraw ( ) const
inline

Definition at line 44 of file SkPaintFilterCanvas.cpp.

44{ return fShouldDraw; }

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