17#ifndef LIB_TXT_SRC_PARAGRAPH_BUILDER_H_
18#define LIB_TXT_SRC_PARAGRAPH_BUILDER_H_
23#include "flutter/fml/macros.h"
36 std::shared_ptr<FontCollection> font_collection,
37 const bool impeller_enabled);
56 virtual void Pop() = 0;
75 virtual std::unique_ptr<Paragraph>
Build() = 0;
virtual std::unique_ptr< Paragraph > Build()=0
virtual void AddText(const std::u16string &text)=0
virtual void AddPlaceholder(PlaceholderRun &span)=0
virtual void PushStyle(const TextStyle &style)=0
ParagraphBuilder()=default
static std::unique_ptr< ParagraphBuilder > CreateSkiaBuilder(const ParagraphStyle &style, std::shared_ptr< FontCollection > font_collection, const bool impeller_enabled)
Creates a |ParagraphBuilder| based on Skia's text layout module.
virtual const TextStyle & PeekStyle()=0
virtual ~ParagraphBuilder()=default