#include <paragraph.h>
Public Member Functions | |
| ~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< T > | |
| 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 |
| Dart_Handle | CreateDartWrapper (DartState *dart_state) |
| void | AssociateWithDartWrapper (Dart_Handle wrappable) |
| void | ClearDartWrapper () |
| Dart_WeakPersistentHandle | dart_wrapper () const |
Static Public Member Functions | |
| static void | Create (Dart_Handle paragraph_handle, std::unique_ptr< txt::Paragraph > txt_paragraph) |
Additional Inherited Members | |
Public Types inherited from tonic::DartWrappable | |
| enum | DartNativeFields { kPeerIndex , kNumberOfNativeFields } |
Protected Member Functions inherited from fml::RefCountedThreadSafe< T > | |
| 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 15 of file paragraph.h.
|
overridedefault |
| double flutter::Paragraph::alphabeticBaseline | ( | ) |
Definition at line 49 of file paragraph.cc.
| tonic::Float64List flutter::Paragraph::computeLineMetrics | ( | ) | const |
Definition at line 187 of file paragraph.cc.
References txt::LineMetrics::ascent, txt::LineMetrics::baseline, txt::LineMetrics::descent, txt::LineMetrics::hard_break, i, txt::LineMetrics::left, txt::LineMetrics::line_number, txt::LineMetrics::unscaled_ascent, and txt::LineMetrics::width.
|
inlinestatic |
Definition at line 20 of file paragraph.h.
Referenced by flutter::ParagraphBuilder::build().
| bool flutter::Paragraph::didExceedMaxLines | ( | ) |
Definition at line 57 of file paragraph.cc.
| void flutter::Paragraph::dispose | ( | ) |
Definition at line 251 of file paragraph.cc.
| Dart_Handle flutter::Paragraph::getClosestGlyphInfo | ( | double | dx, |
| double | dy, | ||
| Dart_Handle | constructor | ||
| ) | const |
Definition at line 151 of file paragraph.cc.
References tonic::CheckAndHandleError(), and flutter::glyphInfoFrom().
| Dart_Handle flutter::Paragraph::getGlyphInfoAt | ( | unsigned | utf16Offset, |
| Dart_Handle | constructor | ||
| ) | const |
Definition at line 139 of file paragraph.cc.
References tonic::CheckAndHandleError(), and flutter::glyphInfoFrom().
| Dart_Handle flutter::Paragraph::getLineBoundary | ( | unsigned | offset | ) |
Definition at line 172 of file paragraph.cc.
| Dart_Handle flutter::Paragraph::getLineMetricsAt | ( | int | lineNumber, |
| Dart_Handle | constructor | ||
| ) | const |
Definition at line 215 of file paragraph.cc.
References tonic::CheckAndHandleError().
| int flutter::Paragraph::getLineNumberAt | ( | size_t | utf16Offset | ) | const |
Definition at line 247 of file paragraph.cc.
| size_t flutter::Paragraph::getNumberOfLines | ( | ) | const |
Definition at line 243 of file paragraph.cc.
| Dart_Handle flutter::Paragraph::getPositionForOffset | ( | double | dx, |
| double | dy | ||
| ) |
Definition at line 113 of file paragraph.cc.
References txt::Paragraph::PositionWithAffinity::affinity, and txt::Paragraph::PositionWithAffinity::position.
| tonic::Float32List flutter::Paragraph::getRectsForPlaceholders | ( | ) |
Definition at line 107 of file paragraph.cc.
References flutter::EncodeTextBoxes().
| tonic::Float32List flutter::Paragraph::getRectsForRange | ( | unsigned | start, |
| unsigned | end, | ||
| unsigned | boxHeightStyle, | ||
| unsigned | boxWidthStyle | ||
| ) |
Definition at line 97 of file paragraph.cc.
References flutter::EncodeTextBoxes(), end, and start.
| Dart_Handle flutter::Paragraph::getWordBoundary | ( | unsigned | offset | ) |
Definition at line 165 of file paragraph.cc.
References txt::Paragraph::Range< T >::end, and txt::Paragraph::Range< T >::start.
| double flutter::Paragraph::height | ( | ) |
Definition at line 33 of file paragraph.cc.
| double flutter::Paragraph::ideographicBaseline | ( | ) |
Definition at line 53 of file paragraph.cc.
| void flutter::Paragraph::layout | ( | double | width | ) |
Definition at line 61 of file paragraph.cc.
References width.
| double flutter::Paragraph::longestLine | ( | ) |
Definition at line 37 of file paragraph.cc.
| double flutter::Paragraph::maxIntrinsicWidth | ( | ) |
Definition at line 45 of file paragraph.cc.
| double flutter::Paragraph::minIntrinsicWidth | ( | ) |
Definition at line 41 of file paragraph.cc.
| void flutter::Paragraph::paint | ( | Canvas * | canvas, |
| double | x, | ||
| double | y | ||
| ) |
Definition at line 65 of file paragraph.cc.
| double flutter::Paragraph::width | ( | ) |
Definition at line 29 of file paragraph.cc.
Referenced by txt::ParagraphSkia::Layout().