5#ifndef FLUTTER_LIB_UI_TEXT_PARAGRAPH_H_
6#define FLUTTER_LIB_UI_TEXT_PARAGRAPH_H_
8#include "flutter/fml/message_loop.h"
9#include "flutter/lib/ui/dart_wrapper.h"
10#include "flutter/lib/ui/painting/canvas.h"
11#include "flutter/third_party/txt/src/txt/paragraph.h"
16 DEFINE_WRAPPERTYPEINFO();
21 std::unique_ptr<txt::Paragraph> txt_paragraph) {
22 auto paragraph = fml::MakeRefCounted<Paragraph>(std::move(txt_paragraph));
23 paragraph->AssociateWithDartWrapper(paragraph_handle);
42 unsigned boxHeightStyle,
43 unsigned boxWidthStyle);
61 std::unique_ptr<txt::Paragraph> m_paragraph_;
63 explicit Paragraph(std::unique_ptr<txt::Paragraph> paragraph);
Dart_Handle getLineBoundary(unsigned offset)
static void Create(Dart_Handle paragraph_handle, std::unique_ptr< txt::Paragraph > txt_paragraph)
tonic::Float32List getRectsForPlaceholders()
tonic::Float32List getRectsForRange(unsigned start, unsigned end, unsigned boxHeightStyle, unsigned boxWidthStyle)
Dart_Handle getGlyphInfoAt(unsigned utf16Offset, Dart_Handle constructor) const
size_t getNumberOfLines() const
Dart_Handle getPositionForOffset(double dx, double dy)
void paint(Canvas *canvas, double x, double y)
double alphabeticBaseline()
tonic::Float64List computeLineMetrics() const
double maxIntrinsicWidth()
double ideographicBaseline()
void layout(double width)
Dart_Handle getWordBoundary(unsigned offset)
double minIntrinsicWidth()
Dart_Handle getClosestGlyphInfo(double dx, double dy, Dart_Handle constructor) const
Dart_Handle getLineMetricsAt(int lineNumber, Dart_Handle constructor) const
int getLineNumberAt(size_t utf16Offset) const
struct _Dart_Handle * Dart_Handle
skia_private::AutoTArray< sk_sp< SkImageFilter > > filters TypedMatrix matrix TypedMatrix matrix SkScalar dx