Flutter Engine
The Flutter Engine
|
ParagraphBuilder implementation using Skia's text layout module. More...
#include <paragraph_builder_skia.h>
Public Member Functions | |
ParagraphBuilderSkia (const ParagraphStyle &style, std::shared_ptr< FontCollection > font_collection, const bool impeller_enabled) | |
virtual | ~ParagraphBuilderSkia () |
virtual void | PushStyle (const TextStyle &style) override |
virtual void | Pop () override |
virtual const TextStyle & | PeekStyle () override |
virtual void | AddText (const std::u16string &text) override |
virtual void | AddPlaceholder (PlaceholderRun &span) override |
virtual std::unique_ptr< Paragraph > | Build () override |
Public Member Functions inherited from flutter::ParagraphBuilder | |
~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< ParagraphBuilder > | |
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 |
Friends | |
class | SkiaParagraphBuilderTests_ParagraphStrutStyle_Test |
Additional Inherited Members | |
Public Types inherited from tonic::DartWrappable | |
enum | DartNativeFields { kPeerIndex , kNumberOfNativeFields } |
Static Public Member Functions inherited from flutter::ParagraphBuilder | |
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) |
Protected Member Functions inherited from fml::RefCountedThreadSafe< ParagraphBuilder > | |
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) |
ParagraphBuilder implementation using Skia's text layout module.
Definition at line 32 of file paragraph_builder_skia.h.
txt::ParagraphBuilderSkia::ParagraphBuilderSkia | ( | const ParagraphStyle & | style, |
std::shared_ptr< FontCollection > | font_collection, | ||
const bool | impeller_enabled | ||
) |
Definition at line 48 of file paragraph_builder_skia.cc.
|
virtualdefault |
|
overridevirtual |
Definition at line 79 of file paragraph_builder_skia.cc.
|
overridevirtual |
Definition at line 75 of file paragraph_builder_skia.cc.
|
overridevirtual |
Definition at line 91 of file paragraph_builder_skia.cc.
|
overridevirtual |
Definition at line 71 of file paragraph_builder_skia.cc.
|
overridevirtual |
Definition at line 66 of file paragraph_builder_skia.cc.
|
overridevirtual |
Definition at line 61 of file paragraph_builder_skia.cc.
|
friend |
Definition at line 48 of file paragraph_builder_skia.h.