6#include "../wrappers.h"
36 std::u16string*
text) {
41 uint32_t* outLength) {
43 *outLength = span.size();
57 auto [words, graphemeBreaks, lineBreaks] =
builder->getClientICUData();
62 return builder->Build().release();
67 return new std::vector<SkUnicode::Position>(
length);
71 std::vector<SkUnicode::Position>*
buffer) {
76 std::vector<SkUnicode::Position>*
buffer) {
82 return new std::vector<SkUnicode::LineBreakBefore>(
87 std::vector<SkUnicode::LineBreakBefore>*
buffer) {
92 std::vector<SkUnicode::LineBreakBefore>*
buffer) {
98 std::vector<SkUnicode::Position>* breaks) {
99 builder->setGraphemeBreaksUtf16(std::move(*breaks));
104 std::vector<SkUnicode::Position>* breaks) {
105 builder->setWordsUtf16(std::move(*breaks));
110 std::vector<SkUnicode::LineBreakBefore>* breaks) {
111 builder->setLineBreaksUtf16(std::move(*breaks));
SKUNICODE_API sk_sp< SkUnicode > Make(SkSpan< char > text, std::vector< SkUnicode::Position > words, std::vector< SkUnicode::Position > graphemeBreaks, std::vector< SkUnicode::LineBreakBefore > lineBreaks)
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
PlaceholderAlignment
Where to vertically align the placeholder relative to the surrounding text.
static void make(SkBitmap *bitmap, SkColorType colorType, SkAlphaType alphaType, sk_sp< SkColorSpace > colorSpace)
SKWASM_EXPORT SkUnicode::Position * unicodePositionBuffer_getDataPointer(std::vector< SkUnicode::Position > *buffer)
SKWASM_EXPORT std::vector< SkUnicode::Position > * unicodePositionBuffer_create(size_t length)
SKWASM_EXPORT SkUnicode::LineBreakBefore * lineBreakBuffer_getDataPointer(std::vector< SkUnicode::LineBreakBefore > *buffer)
SKWASM_EXPORT ParagraphBuilder * paragraphBuilder_create(ParagraphStyle *style, FlutterFontCollection *collection)
SKWASM_EXPORT void lineBreakBuffer_free(std::vector< SkUnicode::LineBreakBefore > *buffer)
SKWASM_EXPORT void paragraphBuilder_setGraphemeBreaksUtf16(ParagraphBuilder *builder, std::vector< SkUnicode::Position > *breaks)
SKWASM_EXPORT void paragraphBuilder_pop(ParagraphBuilder *builder)
SKWASM_EXPORT void paragraphBuilder_setWordBreaksUtf16(ParagraphBuilder *builder, std::vector< SkUnicode::Position > *breaks)
SKWASM_EXPORT void paragraphBuilder_pushStyle(ParagraphBuilder *builder, TextStyle *style)
SKWASM_EXPORT char * paragraphBuilder_getUtf8Text(ParagraphBuilder *builder, uint32_t *outLength)
SKWASM_EXPORT void paragraphBuilder_dispose(ParagraphBuilder *builder)
SKWASM_EXPORT void unicodePositionBuffer_free(std::vector< SkUnicode::Position > *buffer)
SKWASM_EXPORT Paragraph * paragraphBuilder_build(ParagraphBuilder *builder)
SKWASM_EXPORT std::vector< SkUnicode::LineBreakBefore > * lineBreakBuffer_create(size_t length)
SKWASM_EXPORT void paragraphBuilder_addText(ParagraphBuilder *builder, std::u16string *text)
SKWASM_EXPORT void paragraphBuilder_addPlaceholder(ParagraphBuilder *builder, SkScalar width, SkScalar height, PlaceholderAlignment alignment, SkScalar baselineOffset, TextBaseline baseline)
SKWASM_EXPORT void paragraphBuilder_setLineBreaksUtf16(ParagraphBuilder *builder, std::vector< SkUnicode::LineBreakBefore > *breaks)
sk_sp< skia::textlayout::FontCollection > collection