Flutter Engine
txt::ParagraphBuilder Class Referenceabstract

#include <paragraph_builder.h>

Inheritance diagram for txt::ParagraphBuilder:
txt::ParagraphBuilderSkia txt::ParagraphBuilderTxt

Public Member Functions

virtual ~ParagraphBuilder ()=default
 
virtual void PushStyle (const TextStyle &style)=0
 
virtual void Pop ()=0
 
virtual const TextStylePeekStyle ()=0
 
virtual void AddText (const std::u16string &text)=0
 
virtual void AddPlaceholder (PlaceholderRun &span)=0
 
virtual std::unique_ptr< ParagraphBuild ()=0
 

Static Public Member Functions

static std::unique_ptr< ParagraphBuilderCreateTxtBuilder (const ParagraphStyle &style, std::shared_ptr< FontCollection > font_collection)
 

Protected Member Functions

 ParagraphBuilder ()=default
 

Detailed Description

Definition at line 32 of file paragraph_builder.h.

Constructor & Destructor Documentation

◆ ~ParagraphBuilder()

virtual txt::ParagraphBuilder::~ParagraphBuilder ( )
virtualdefault

◆ ParagraphBuilder()

txt::ParagraphBuilder::ParagraphBuilder ( )
protecteddefault

Member Function Documentation

◆ AddPlaceholder()

virtual void txt::ParagraphBuilder::AddPlaceholder ( PlaceholderRun span)
pure virtual

◆ AddText()

virtual void txt::ParagraphBuilder::AddText ( const std::u16string &  text)
pure virtual

◆ Build()

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

◆ CreateTxtBuilder()

std::unique_ptr< ParagraphBuilder > txt::ParagraphBuilder::CreateTxtBuilder ( const ParagraphStyle style,
std::shared_ptr< FontCollection font_collection 
)
static

Definition at line 29 of file paragraph_builder.cc.

31  {
32  return std::make_unique<ParagraphBuilderTxt>(style, font_collection);
33 }

◆ PeekStyle()

virtual const TextStyle& txt::ParagraphBuilder::PeekStyle ( )
pure virtual

◆ Pop()

virtual void txt::ParagraphBuilder::Pop ( )
pure virtual

◆ PushStyle()

virtual void txt::ParagraphBuilder::PushStyle ( const TextStyle style)
pure virtual

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