Flutter Engine
The Flutter Engine
Classes | Public Types | Public Member Functions | List of all members
skia::textlayout::ParagraphPainter Class Referenceabstract

#include <ParagraphPainter.h>

Inheritance diagram for skia::textlayout::ParagraphPainter:
skia::textlayout::CanvasParagraphPainter

Classes

struct  DashPathEffect
 
class  DecorationStyle
 

Public Types

typedef int PaintID
 
typedef std::variant< SkPaint, PaintIDSkPaintOrID
 

Public Member Functions

virtual ~ParagraphPainter ()=default
 
virtual void drawTextBlob (const sk_sp< SkTextBlob > &blob, SkScalar x, SkScalar y, const SkPaintOrID &paint)=0
 
virtual void drawTextShadow (const sk_sp< SkTextBlob > &blob, SkScalar x, SkScalar y, SkColor color, SkScalar blurSigma)=0
 
virtual void drawRect (const SkRect &rect, const SkPaintOrID &paint)=0
 
virtual void drawFilledRect (const SkRect &rect, const DecorationStyle &decorStyle)=0
 
virtual void drawPath (const SkPath &path, const DecorationStyle &decorStyle)=0
 
virtual void drawLine (SkScalar x0, SkScalar y0, SkScalar x1, SkScalar y1, const DecorationStyle &decorStyle)=0
 
virtual void clipRect (const SkRect &rect)=0
 
virtual void translate (SkScalar dx, SkScalar dy)=0
 
virtual void save ()=0
 
virtual void restore ()=0
 

Detailed Description

Definition at line 14 of file ParagraphPainter.h.

Member Typedef Documentation

◆ PaintID

Definition at line 16 of file ParagraphPainter.h.

◆ SkPaintOrID

Definition at line 17 of file ParagraphPainter.h.

Constructor & Destructor Documentation

◆ ~ParagraphPainter()

virtual skia::textlayout::ParagraphPainter::~ParagraphPainter ( )
virtualdefault

Member Function Documentation

◆ clipRect()

virtual void skia::textlayout::ParagraphPainter::clipRect ( const SkRect rect)
pure virtual

◆ drawFilledRect()

virtual void skia::textlayout::ParagraphPainter::drawFilledRect ( const SkRect rect,
const DecorationStyle decorStyle 
)
pure virtual

◆ drawLine()

virtual void skia::textlayout::ParagraphPainter::drawLine ( SkScalar  x0,
SkScalar  y0,
SkScalar  x1,
SkScalar  y1,
const DecorationStyle decorStyle 
)
pure virtual

◆ drawPath()

virtual void skia::textlayout::ParagraphPainter::drawPath ( const SkPath path,
const DecorationStyle decorStyle 
)
pure virtual

◆ drawRect()

virtual void skia::textlayout::ParagraphPainter::drawRect ( const SkRect rect,
const SkPaintOrID paint 
)
pure virtual

◆ drawTextBlob()

virtual void skia::textlayout::ParagraphPainter::drawTextBlob ( const sk_sp< SkTextBlob > &  blob,
SkScalar  x,
SkScalar  y,
const SkPaintOrID paint 
)
pure virtual

◆ drawTextShadow()

virtual void skia::textlayout::ParagraphPainter::drawTextShadow ( const sk_sp< SkTextBlob > &  blob,
SkScalar  x,
SkScalar  y,
SkColor  color,
SkScalar  blurSigma 
)
pure virtual

◆ restore()

virtual void skia::textlayout::ParagraphPainter::restore ( )
pure virtual

◆ save()

virtual void skia::textlayout::ParagraphPainter::save ( )
pure virtual

◆ translate()

virtual void skia::textlayout::ParagraphPainter::translate ( SkScalar  dx,
SkScalar  dy 
)
pure virtual

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