Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
skia::textlayout::ParagraphBuilder Class Referenceabstract

#include <ParagraphBuilder.h>

Inheritance diagram for skia::textlayout::ParagraphBuilder:
skia::textlayout::ParagraphBuilderImpl

Public Member Functions

virtual ~ParagraphBuilder ()=default
 
virtual void pushStyle (const TextStyle &style)=0
 
virtual void pop ()=0
 
virtual TextStyle peekStyle ()=0
 
virtual void addText (const std::u16string &text)=0
 
virtual void addText (const char *text)=0
 
virtual void addText (const char *text, size_t len)=0
 
virtual void addPlaceholder (const PlaceholderStyle &placeholderStyle)=0
 
virtual std::unique_ptr< ParagraphBuild ()=0
 
virtual SkSpan< char > getText ()=0
 
virtual const ParagraphStylegetParagraphStyle () const =0
 
virtual void Reset ()=0
 

Static Public Member Functions

static std::unique_ptr< ParagraphBuildermake (const ParagraphStyle &style, sk_sp< FontCollection > fontCollection, sk_sp< SkUnicode > unicode)
 
static std::unique_ptr< ParagraphBuildermake (const ParagraphStyle &style, sk_sp< FontCollection > fontCollection)
 

Protected Member Functions

 ParagraphBuilder ()
 

Detailed Description

Definition at line 19 of file ParagraphBuilder.h.

Constructor & Destructor Documentation

◆ ParagraphBuilder()

skia::textlayout::ParagraphBuilder::ParagraphBuilder ( )
inlineprotected

Definition at line 21 of file ParagraphBuilder.h.

21{}

◆ ~ParagraphBuilder()

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

Member Function Documentation

◆ addPlaceholder()

virtual void skia::textlayout::ParagraphBuilder::addPlaceholder ( const PlaceholderStyle placeholderStyle)
pure virtual

◆ addText() [1/3]

virtual void skia::textlayout::ParagraphBuilder::addText ( const char *  text)
pure virtual

◆ addText() [2/3]

virtual void skia::textlayout::ParagraphBuilder::addText ( const char *  text,
size_t  len 
)
pure virtual

◆ addText() [3/3]

virtual void skia::textlayout::ParagraphBuilder::addText ( const std::u16string &  text)
pure virtual

◆ Build()

virtual std::unique_ptr< Paragraph > skia::textlayout::ParagraphBuilder::Build ( )
pure virtual

◆ getParagraphStyle()

virtual const ParagraphStyle & skia::textlayout::ParagraphBuilder::getParagraphStyle ( ) const
pure virtual

◆ getText()

virtual SkSpan< char > skia::textlayout::ParagraphBuilder::getText ( )
pure virtual

◆ make() [1/2]

std::unique_ptr< ParagraphBuilder > skia::textlayout::ParagraphBuilder::make ( const ParagraphStyle style,
sk_sp< FontCollection fontCollection 
)
static

Definition at line 65 of file ParagraphBuilderImpl.cpp.

66 {
67 return ParagraphBuilderImpl::make(style, std::move(fontCollection), get_unicode());
68}
sk_sp< SkUnicode > get_unicode()
static std::unique_ptr< ParagraphBuilder > make(const ParagraphStyle &style, sk_sp< FontCollection > fontCollection, sk_sp< SkUnicode > unicode)

◆ make() [2/2]

std::unique_ptr< ParagraphBuilder > skia::textlayout::ParagraphBuilder::make ( const ParagraphStyle style,
sk_sp< FontCollection fontCollection,
sk_sp< SkUnicode unicode 
)
static

Definition at line 82 of file ParagraphBuilderImpl.cpp.

84 {
85 return ParagraphBuilderImpl::make(style, std::move(fontCollection), std::move(unicode));
86}

◆ peekStyle()

virtual TextStyle skia::textlayout::ParagraphBuilder::peekStyle ( )
pure virtual

◆ pop()

virtual void skia::textlayout::ParagraphBuilder::pop ( )
pure virtual

◆ pushStyle()

virtual void skia::textlayout::ParagraphBuilder::pushStyle ( const TextStyle style)
pure virtual

◆ Reset()

virtual void skia::textlayout::ParagraphBuilder::Reset ( )
pure virtual

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