#include <paragraph_builder.h>
Public Member Functions | |
| ~ParagraphBuilder () override | |
| 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) |
| void | pop () |
| Dart_Handle | addText (const std::u16string &text) |
| void | addPlaceholder (double width, double height, unsigned alignment, double baseline_offset, unsigned baseline) |
| void | build (Dart_Handle paragraph_handle) |
Public Member Functions inherited from flutter::RefCountedDartWrappable< ParagraphBuilder > | |
| 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 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) |
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 20 of file paragraph_builder.h.
|
overridedefault |
References build().
| void flutter::ParagraphBuilder::addPlaceholder | ( | double | width, |
| double | height, | ||
| unsigned | alignment, | ||
| double | baseline_offset, | ||
| unsigned | baseline | ||
| ) |
Definition at line 515 of file paragraph_builder.cc.
| Dart_Handle flutter::ParagraphBuilder::addText | ( | const std::u16string & | text | ) |
Definition at line 495 of file paragraph_builder.cc.
References text, and tonic::ToDart().
| void flutter::ParagraphBuilder::build | ( | Dart_Handle | paragraph_handle | ) |
Definition at line 527 of file paragraph_builder.cc.
References tonic::DartWrappable::ClearDartWrapper(), and flutter::Paragraph::Create().
Referenced by ~ParagraphBuilder().
|
static |
Definition at line 148 of file paragraph_builder.cc.
References height, and flutter::UIDartState::ThrowIfUIOperationsProhibited().
| void flutter::ParagraphBuilder::pop | ( | ) |
Definition at line 491 of file paragraph_builder.cc.
| void flutter::ParagraphBuilder::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 | ||
| ) |
Definition at line 363 of file paragraph_builder.cc.
References txt::TextStyle::background, txt::TextStyle::color, flutter::decodeFontFeatures(), flutter::decodeFontVariations(), flutter::decodeTextShadows(), txt::TextStyle::decoration, txt::TextStyle::decoration_color, txt::TextStyle::decoration_style, txt::TextStyle::decoration_thickness_multiplier, FML_DCHECK, txt::TextStyle::font_families, txt::TextStyle::font_features, txt::TextStyle::font_size, txt::TextStyle::font_style, txt::TextStyle::font_variations, txt::TextStyle::font_weight, txt::TextStyle::foreground, txt::TextStyle::half_leading, txt::TextStyle::has_height_override, height, txt::TextStyle::height, flutter::kDecal, flutter::DisplayListOpFlags::kDrawParagraphFlags, txt::TextStyle::letter_spacing, txt::TextStyle::locale, txt::TextStyle::text_shadows, and txt::TextStyle::word_spacing.