|
| ParagraphImpl (const SkString &text, ParagraphStyle style, skia_private::TArray< Block, true > blocks, skia_private::TArray< Placeholder, true > placeholders, sk_sp< FontCollection > fonts, sk_sp< SkUnicode > unicode) |
|
| ParagraphImpl (const std::u16string &utf16text, ParagraphStyle style, skia_private::TArray< Block, true > blocks, skia_private::TArray< Placeholder, true > placeholders, sk_sp< FontCollection > fonts, sk_sp< SkUnicode > unicode) |
|
| ~ParagraphImpl () override |
|
void | layout (SkScalar width) override |
|
void | paint (SkCanvas *canvas, SkScalar x, SkScalar y) override |
|
void | paint (ParagraphPainter *canvas, SkScalar x, SkScalar y) override |
|
std::vector< TextBox > | getRectsForRange (unsigned start, unsigned end, RectHeightStyle rectHeightStyle, RectWidthStyle rectWidthStyle) override |
|
std::vector< TextBox > | getRectsForPlaceholders () override |
|
void | getLineMetrics (std::vector< LineMetrics > &) override |
|
PositionWithAffinity | getGlyphPositionAtCoordinate (SkScalar dx, SkScalar dy) override |
|
SkRange< size_t > | getWordBoundary (unsigned offset) override |
|
bool | getApplyRoundingHack () const |
|
size_t | lineNumber () override |
|
TextLine & | addLine (SkVector offset, SkVector advance, TextRange textExcludingSpaces, TextRange text, TextRange textIncludingNewlines, ClusterRange clusters, ClusterRange clustersWithGhosts, SkScalar widthWithSpaces, InternalLineMetrics sizes) |
|
SkSpan< const char > | text () const |
|
InternalState | state () const |
|
SkSpan< Run > | runs () |
|
SkSpan< Block > | styles () |
|
SkSpan< Placeholder > | placeholders () |
|
SkSpan< TextLine > | lines () |
|
const ParagraphStyle & | paragraphStyle () const |
|
SkSpan< Cluster > | clusters () |
|
sk_sp< FontCollection > | fontCollection () const |
|
void | formatLines (SkScalar maxWidth) |
|
void | ensureUTF16Mapping () |
|
skia_private::TArray< TextIndex > | countSurroundingGraphemes (TextRange textRange) const |
|
TextIndex | findNextGraphemeBoundary (TextIndex utf8) const |
|
TextIndex | findPreviousGraphemeBoundary (TextIndex utf8) const |
|
TextIndex | findNextGlyphClusterBoundary (TextIndex utf8) const |
|
TextIndex | findPreviousGlyphClusterBoundary (TextIndex utf8) const |
|
size_t | getUTF16Index (TextIndex index) const |
|
bool | strutEnabled () const |
|
bool | strutForceHeight () const |
|
bool | strutHeightOverride () const |
|
InternalLineMetrics | strutMetrics () const |
|
SkString | getEllipsis () const |
|
SkSpan< const char > | text (TextRange textRange) |
|
SkSpan< Cluster > | clusters (ClusterRange clusterRange) |
|
Cluster & | cluster (ClusterIndex clusterIndex) |
|
ClusterIndex | clusterIndex (TextIndex textIndex) |
|
Run & | run (RunIndex runIndex) |
|
Run & | runByCluster (ClusterIndex clusterIndex) |
|
SkSpan< Block > | blocks (BlockRange blockRange) |
|
Block & | block (BlockIndex blockIndex) |
|
skia_private::TArray< ResolvedFontDescriptor > | resolvedFonts () const |
|
void | markDirty () override |
|
int32_t | unresolvedGlyphs () override |
|
std::unordered_set< SkUnichar > | unresolvedCodepoints () override |
|
void | addUnresolvedCodepoints (TextRange textRange) |
|
void | setState (InternalState state) |
|
sk_sp< SkPicture > | getPicture () |
|
SkScalar | widthWithTrailingSpaces () |
|
void | resetContext () |
|
void | resolveStrut () |
|
bool | computeCodeUnitProperties () |
|
void | applySpacingAndBuildClusterTable () |
|
void | buildClusterTable () |
|
bool | shapeTextIntoEndlessLine () |
|
void | breakShapedTextIntoLines (SkScalar maxWidth) |
|
void | updateTextAlign (TextAlign textAlign) override |
|
void | updateFontSize (size_t from, size_t to, SkScalar fontSize) override |
|
void | updateForegroundPaint (size_t from, size_t to, SkPaint paint) override |
|
void | updateBackgroundPaint (size_t from, size_t to, SkPaint paint) override |
|
void | visit (const Visitor &) override |
|
void | extendedVisit (const ExtendedVisitor &) override |
|
int | getPath (int lineNumber, SkPath *dest) override |
|
bool | containsColorFontOrBitmap (SkTextBlob *textBlob) override |
|
bool | containsEmoji (SkTextBlob *textBlob) override |
|
int | getLineNumberAt (TextIndex codeUnitIndex) const override |
|
int | getLineNumberAtUTF16Offset (size_t codeUnitIndex) override |
|
bool | getLineMetricsAt (int lineNumber, LineMetrics *lineMetrics) const override |
|
TextRange | getActualTextRange (int lineNumber, bool includeSpaces) const override |
|
bool | getGlyphClusterAt (TextIndex codeUnitIndex, GlyphClusterInfo *glyphInfo) override |
|
bool | getClosestGlyphClusterAt (SkScalar dx, SkScalar dy, GlyphClusterInfo *glyphInfo) override |
|
bool | getGlyphInfoAtUTF16Offset (size_t codeUnitIndex, GlyphInfo *graphemeInfo) override |
|
bool | getClosestUTF16GlyphInfoAt (SkScalar dx, SkScalar dy, GlyphInfo *graphemeInfo) override |
|
SkFont | getFontAt (TextIndex codeUnitIndex) const override |
|
SkFont | getFontAtUTF16Offset (size_t codeUnitIndex) override |
|
std::vector< FontInfo > | getFonts () const override |
|
InternalLineMetrics | getEmptyMetrics () const |
|
InternalLineMetrics | getStrutMetrics () const |
|
BlockRange | findAllBlocks (TextRange textRange) |
|
void | resetShifts () |
|
bool | codeUnitHasProperty (size_t index, SkUnicode::CodeUnitFlags property) const |
|
sk_sp< SkUnicode > | getUnicode () |
|
| Paragraph (ParagraphStyle style, sk_sp< FontCollection > fonts) |
|
virtual | ~Paragraph ()=default |
|
SkScalar | getMaxWidth () |
|
SkScalar | getHeight () |
|
SkScalar | getMinIntrinsicWidth () |
|
SkScalar | getMaxIntrinsicWidth () |
|
SkScalar | getAlphabeticBaseline () |
|
SkScalar | getIdeographicBaseline () |
|
SkScalar | getLongestLine () |
|
bool | didExceedMaxLines () |
|
virtual void | layout (SkScalar width)=0 |
|
virtual void | paint (SkCanvas *canvas, SkScalar x, SkScalar y)=0 |
|
virtual void | paint (ParagraphPainter *painter, SkScalar x, SkScalar y)=0 |
|
virtual std::vector< TextBox > | getRectsForRange (unsigned start, unsigned end, RectHeightStyle rectHeightStyle, RectWidthStyle rectWidthStyle)=0 |
|
virtual std::vector< TextBox > | getRectsForPlaceholders ()=0 |
|
virtual PositionWithAffinity | getGlyphPositionAtCoordinate (SkScalar dx, SkScalar dy)=0 |
|
virtual SkRange< size_t > | getWordBoundary (unsigned offset)=0 |
|
virtual void | getLineMetrics (std::vector< LineMetrics > &)=0 |
|
virtual size_t | lineNumber ()=0 |
|
virtual void | markDirty ()=0 |
|
virtual int32_t | unresolvedGlyphs ()=0 |
|
virtual std::unordered_set< SkUnichar > | unresolvedCodepoints ()=0 |
|
virtual void | updateTextAlign (TextAlign textAlign)=0 |
|
virtual void | updateFontSize (size_t from, size_t to, SkScalar fontSize)=0 |
|
virtual void | updateForegroundPaint (size_t from, size_t to, SkPaint paint)=0 |
|
virtual void | updateBackgroundPaint (size_t from, size_t to, SkPaint paint)=0 |
|
virtual void | visit (const Visitor &)=0 |
|
virtual void | extendedVisit (const ExtendedVisitor &)=0 |
|
virtual int | getPath (int lineNumber, SkPath *dest)=0 |
|
virtual bool | containsEmoji (SkTextBlob *textBlob)=0 |
|
virtual bool | containsColorFontOrBitmap (SkTextBlob *textBlob)=0 |
|
virtual int | getLineNumberAt (TextIndex codeUnitIndex) const =0 |
|
virtual int | getLineNumberAtUTF16Offset (size_t codeUnitIndex)=0 |
|
virtual bool | getLineMetricsAt (int lineNumber, LineMetrics *lineMetrics) const =0 |
|
virtual TextRange | getActualTextRange (int lineNumber, bool includeSpaces) const =0 |
|
virtual bool | getGlyphClusterAt (TextIndex codeUnitIndex, GlyphClusterInfo *glyphInfo)=0 |
|
virtual bool | getClosestGlyphClusterAt (SkScalar dx, SkScalar dy, GlyphClusterInfo *glyphInfo)=0 |
|
virtual bool | getGlyphInfoAtUTF16Offset (size_t codeUnitIndex, GlyphInfo *glyphInfo)=0 |
|
virtual bool | getClosestUTF16GlyphInfoAt (SkScalar dx, SkScalar dy, GlyphInfo *glyphInfo)=0 |
|
virtual SkFont | getFontAt (TextIndex codeUnitIndex) const =0 |
|
virtual SkFont | getFontAtUTF16Offset (size_t codeUnitIndex)=0 |
|
virtual std::vector< FontInfo > | getFonts () const =0 |
|
Definition at line 88 of file ParagraphImpl.h.