Flutter Engine
The Flutter Engine
|
#include <paragraph_skia.h>
Public Member Functions | |
ParagraphSkia (std::unique_ptr< skia::textlayout::Paragraph > paragraph, std::vector< flutter::DlPaint > &&dl_paints, bool impeller_enabled) | |
virtual | ~ParagraphSkia ()=default |
double | GetMaxWidth () override |
double | GetHeight () override |
double | GetLongestLine () override |
double | GetMinIntrinsicWidth () override |
double | GetMaxIntrinsicWidth () override |
double | GetAlphabeticBaseline () override |
double | GetIdeographicBaseline () override |
std::vector< LineMetrics > & | GetLineMetrics () override |
bool | GetLineMetricsAt (int lineNumber, skia::textlayout::LineMetrics *lineMetrics) const override |
size_t | GetNumberOfLines () const override |
int | GetLineNumberAt (size_t utf16Offset) const override |
bool | DidExceedMaxLines () override |
void | Layout (double width) override |
bool | Paint (flutter::DisplayListBuilder *builder, double x, double y) override |
std::vector< TextBox > | GetRectsForRange (size_t start, size_t end, RectHeightStyle rect_height_style, RectWidthStyle rect_width_style) override |
std::vector< TextBox > | GetRectsForPlaceholders () override |
PositionWithAffinity | GetGlyphPositionAtCoordinate (double dx, double dy) override |
bool | GetGlyphInfoAt (unsigned offset, skia::textlayout::Paragraph::GlyphInfo *glyphInfo) const override |
bool | GetClosestGlyphInfoAtCoordinate (double dx, double dy, skia::textlayout::Paragraph::GlyphInfo *glyphInfo) const override |
Range< size_t > | GetWordBoundary (size_t offset) override |
Public Member Functions inherited from flutter::Paragraph | |
~Paragraph () override | |
double | width () |
double | height () |
double | longestLine () |
double | minIntrinsicWidth () |
double | maxIntrinsicWidth () |
double | alphabeticBaseline () |
double | ideographicBaseline () |
bool | didExceedMaxLines () |
void | layout (double width) |
void | paint (Canvas *canvas, double x, double y) |
tonic::Float32List | getRectsForRange (unsigned start, unsigned end, unsigned boxHeightStyle, unsigned boxWidthStyle) |
tonic::Float32List | getRectsForPlaceholders () |
Dart_Handle | getPositionForOffset (double dx, double dy) |
Dart_Handle | getGlyphInfoAt (unsigned utf16Offset, Dart_Handle constructor) const |
Dart_Handle | getClosestGlyphInfo (double dx, double dy, Dart_Handle constructor) const |
Dart_Handle | getWordBoundary (unsigned offset) |
Dart_Handle | getLineBoundary (unsigned offset) |
tonic::Float64List | computeLineMetrics () const |
Dart_Handle | getLineMetricsAt (int lineNumber, Dart_Handle constructor) const |
size_t | getNumberOfLines () const |
int | getLineNumberAt (size_t utf16Offset) const |
void | dispose () |
Public Member Functions inherited from flutter::RefCountedDartWrappable< Paragraph > | |
virtual void | RetainDartWrappableReference () const override |
virtual void | ReleaseDartWrappableReference () const override |
Public Member Functions inherited from fml::RefCountedThreadSafe< Paragraph > | |
void | Release () const |
Public Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
void | AddRef () const |
bool | HasOneRef () const |
void | AssertHasOneRef () const |
Public Member Functions inherited from tonic::DartWrappable | |
DartWrappable () | |
virtual const DartWrapperInfo & | GetDartWrapperInfo () const =0 |
virtual void | RetainDartWrappableReference () const =0 |
virtual void | ReleaseDartWrappableReference () const =0 |
Dart_Handle | CreateDartWrapper (DartState *dart_state) |
void | AssociateWithDartWrapper (Dart_Handle wrappable) |
void | ClearDartWrapper () |
Dart_WeakPersistentHandle | dart_wrapper () const |
Additional Inherited Members | |
Public Types inherited from tonic::DartWrappable | |
enum | DartNativeFields { kPeerIndex , kNumberOfNativeFields } |
Static Public Member Functions inherited from flutter::Paragraph | |
static void | Create (Dart_Handle paragraph_handle, std::unique_ptr< txt::Paragraph > txt_paragraph) |
Protected Member Functions inherited from fml::RefCountedThreadSafe< Paragraph > | |
RefCountedThreadSafe () | |
~RefCountedThreadSafe () | |
Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
RefCountedThreadSafeBase () | |
~RefCountedThreadSafeBase () | |
bool | Release () const |
void | Adopt () |
Protected Member Functions inherited from tonic::DartWrappable | |
virtual | ~DartWrappable () |
Static Protected Member Functions inherited from tonic::DartWrappable | |
static Dart_PersistentHandle | GetTypeForWrapper (tonic::DartState *dart_state, const tonic::DartWrapperInfo &wrapper_info) |
Definition at line 29 of file paragraph_skia.h.
txt::ParagraphSkia::ParagraphSkia | ( | std::unique_ptr< skia::textlayout::Paragraph > | paragraph, |
std::vector< flutter::DlPaint > && | dl_paints, | ||
bool | impeller_enabled | ||
) |
Definition at line 207 of file paragraph_skia.cc.
|
virtualdefault |
|
override |
Definition at line 286 of file paragraph_skia.cc.
|
override |
Definition at line 278 of file paragraph_skia.cc.
|
override |
Definition at line 348 of file paragraph_skia.cc.
|
override |
Definition at line 342 of file paragraph_skia.cc.
|
override |
Definition at line 332 of file paragraph_skia.cc.
|
override |
Definition at line 218 of file paragraph_skia.cc.
|
override |
Definition at line 282 of file paragraph_skia.cc.
|
override |
Definition at line 226 of file paragraph_skia.cc.
|
override |
Definition at line 265 of file paragraph_skia.cc.
|
override |
Definition at line 364 of file paragraph_skia.cc.
|
override |
Definition at line 222 of file paragraph_skia.cc.
|
override |
Definition at line 274 of file paragraph_skia.cc.
|
override |
Definition at line 214 of file paragraph_skia.cc.
|
override |
Definition at line 270 of file paragraph_skia.cc.
|
override |
Definition at line 360 of file paragraph_skia.cc.
|
override |
Definition at line 320 of file paragraph_skia.cc.
|
override |
Definition at line 302 of file paragraph_skia.cc.
|
override |
Definition at line 355 of file paragraph_skia.cc.
|
override |
Definition at line 290 of file paragraph_skia.cc.
|
override |
Definition at line 296 of file paragraph_skia.cc.