5#ifndef FLUTTER_LIB_UI_TEXT_PARAGRAPH_BUILDER_H_
6#define FLUTTER_LIB_UI_TEXT_PARAGRAPH_BUILDER_H_
10#include "flutter/lib/ui/dart_wrapper.h"
11#include "flutter/lib/ui/painting/paint.h"
12#include "flutter/lib/ui/text/paragraph.h"
13#include "flutter/third_party/txt/src/txt/paragraph_builder.h"
21 DEFINE_WRAPPERTYPEINFO();
28 const std::string& fontFamily,
29 const std::vector<std::string>& strutFontFamilies,
32 const std::u16string& ellipsis,
33 const std::string& locale);
37 void pushStyle(
const tonic::Int32List& encoded,
38 const std::vector<std::string>& fontFamilies,
43 double decorationThickness,
44 const std::string& locale,
66 double baseline_offset,
74 const std::string& fontFamily,
75 const std::vector<std::string>& strutFontFamilies,
78 const std::u16string& ellipsis,
79 const std::string& locale);
81 std::unique_ptr<txt::ParagraphBuilder> m_paragraph_builder_;
static void Create(Dart_Handle wrapper, Dart_Handle encoded_handle, Dart_Handle strutData, const std::string &fontFamily, const std::vector< std::string > &strutFontFamilies, double fontSize, double height, const std::u16string &ellipsis, const std::string &locale)
void build(Dart_Handle paragraph_handle)
void pushStyle(const tonic::Int32List &encoded, const std::vector< std::string > &fontFamilies, double fontSize, double letterSpacing, double wordSpacing, double height, double decorationThickness, const std::string &locale, Dart_Handle background_objects, Dart_Handle background_data, Dart_Handle foreground_objects, Dart_Handle foreground_data, Dart_Handle shadows_data, Dart_Handle font_features_data, Dart_Handle font_variations_data)
~ParagraphBuilder() override
void addPlaceholder(double width, double height, unsigned alignment, double baseline_offset, unsigned baseline)
Dart_Handle addText(const std::u16string &text)
struct _Dart_Handle * Dart_Handle