Flutter Engine
The Flutter Engine
|
#include <ParagraphImpl.h>
Friends | |
class | ParagraphBuilder |
class | ParagraphCacheKey |
class | ParagraphCacheValue |
class | ParagraphCache |
class | TextWrapper |
class | OneLineShaper |
Additional Inherited Members | |
Public Types inherited from skia::textlayout::Paragraph | |
enum | VisitorFlags { kWhiteSpace_VisitorFlag = 1 << 0 } |
using | Visitor = std::function< void(int lineNumber, const VisitorInfo *)> |
using | ExtendedVisitor = std::function< void(int lineNumber, const ExtendedVisitorInfo *)> |
Static Public Member Functions inherited from skia::textlayout::Paragraph | |
static SkPath | GetPath (SkTextBlob *textBlob) |
Protected Attributes inherited from skia::textlayout::Paragraph | |
sk_sp< FontCollection > | fFontCollection |
ParagraphStyle | fParagraphStyle |
SkScalar | fAlphabeticBaseline |
SkScalar | fIdeographicBaseline |
SkScalar | fHeight |
SkScalar | fWidth |
SkScalar | fMaxIntrinsicWidth |
SkScalar | fMinIntrinsicWidth |
SkScalar | fLongestLine |
bool | fExceededMaxLines |
Definition at line 88 of file ParagraphImpl.h.
skia::textlayout::ParagraphImpl::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 | ||
) |
Definition at line 73 of file ParagraphImpl.cpp.
skia::textlayout::ParagraphImpl::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 | ||
) |
Definition at line 97 of file ParagraphImpl.cpp.
|
overridedefault |
TextLine & skia::textlayout::ParagraphImpl::addLine | ( | SkVector | offset, |
SkVector | advance, | ||
TextRange | textExcludingSpaces, | ||
TextRange | text, | ||
TextRange | textIncludingNewlines, | ||
ClusterRange | clusters, | ||
ClusterRange | clustersWithGhosts, | ||
SkScalar | widthWithSpaces, | ||
InternalLineMetrics | sizes | ||
) |
Definition at line 763 of file ParagraphImpl.cpp.
void skia::textlayout::ParagraphImpl::addUnresolvedCodepoints | ( | TextRange | textRange | ) |
Definition at line 128 of file ParagraphImpl.cpp.
void skia::textlayout::ParagraphImpl::applySpacingAndBuildClusterTable | ( | ) |
Definition at line 397 of file ParagraphImpl.cpp.
Block & skia::textlayout::ParagraphImpl::block | ( | BlockIndex | blockIndex | ) |
SkSpan< Block > skia::textlayout::ParagraphImpl::blocks | ( | BlockRange | blockRange | ) |
Definition at line 960 of file ParagraphImpl.cpp.
void skia::textlayout::ParagraphImpl::breakShapedTextIntoLines | ( | SkScalar | maxWidth | ) |
Definition at line 573 of file ParagraphImpl.cpp.
void skia::textlayout::ParagraphImpl::buildClusterTable | ( | ) |
Definition at line 499 of file ParagraphImpl.cpp.
Cluster & skia::textlayout::ParagraphImpl::cluster | ( | ClusterIndex | clusterIndex | ) |
Definition at line 950 of file ParagraphImpl.cpp.
|
inline |
Definition at line 167 of file ParagraphImpl.h.
Definition at line 140 of file ParagraphImpl.h.
SkSpan< Cluster > skia::textlayout::ParagraphImpl::clusters | ( | ClusterRange | clusterRange | ) |
Definition at line 944 of file ParagraphImpl.cpp.
|
inline |
Definition at line 243 of file ParagraphImpl.h.
bool skia::textlayout::ParagraphImpl::computeCodeUnitProperties | ( | ) |
Definition at line 267 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1545 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1529 of file ParagraphImpl.cpp.
TArray< TextIndex > skia::textlayout::ParagraphImpl::countSurroundingGraphemes | ( | TextRange | textRange | ) | const |
Definition at line 1123 of file ParagraphImpl.cpp.
void skia::textlayout::ParagraphImpl::ensureUTF16Mapping | ( | ) |
Definition at line 1170 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1390 of file ParagraphImpl.cpp.
BlockRange skia::textlayout::ParagraphImpl::findAllBlocks | ( | TextRange | textRange | ) |
Definition at line 737 of file ParagraphImpl.cpp.
Definition at line 1154 of file ParagraphImpl.cpp.
Definition at line 1146 of file ParagraphImpl.cpp.
Definition at line 1162 of file ParagraphImpl.cpp.
Definition at line 1138 of file ParagraphImpl.cpp.
|
inline |
Definition at line 141 of file ParagraphImpl.h.
void skia::textlayout::ParagraphImpl::formatLines | ( | SkScalar | maxWidth | ) |
Definition at line 670 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1270 of file ParagraphImpl.cpp.
|
inline |
Definition at line 120 of file ParagraphImpl.h.
|
overridevirtual |
Finds the closest glyph cluster for a visual text position
dx | x coordinate |
dy | y coordinate |
glyphInfo | a glyph cluster info filled if not null |
Implements skia::textlayout::Paragraph.
Definition at line 1303 of file ParagraphImpl.cpp.
|
overridevirtual |
Finds the information associated with the closest glyph to the given paragraph coordinates.
dx | x coordinate |
dy | y coordinate |
glyphInfo | an optional GlyphInfo struct to hold the information associated with the glyph found. The text indices and text ranges are described using UTF-16 offsets |
Implements skia::textlayout::Paragraph.
Definition at line 1350 of file ParagraphImpl.cpp.
SkString skia::textlayout::ParagraphImpl::getEllipsis | ( | ) | const |
Definition at line 1066 of file ParagraphImpl.cpp.
|
inline |
Definition at line 232 of file ParagraphImpl.h.
Returns the font that is used to shape the text at the position
codeUnitIndex | text index |
Implements skia::textlayout::Paragraph.
Definition at line 1357 of file ParagraphImpl.cpp.
|
overridevirtual |
Returns the font used to shape the text at the given UTF-16 offset.
codeUnitIndex | a UTF-16 offset in the paragraph |
Implements skia::textlayout::Paragraph.
Definition at line 1367 of file ParagraphImpl.cpp.
|
overridevirtual |
Returns the information about all the fonts used to shape the paragraph text
Implements skia::textlayout::Paragraph.
Definition at line 1382 of file ParagraphImpl.cpp.
|
overridevirtual |
Finds a glyph cluster for text index
codeUnitIndex | a text index |
glyphInfo | a glyph cluster info filled if not null |
Implements skia::textlayout::Paragraph.
Definition at line 1278 of file ParagraphImpl.cpp.
|
overridevirtual |
Retrives the information associated with the glyph located at the given codeUnitIndex.
codeUnitIndex | a UTF-16 offset into the paragraph |
glyphInfo | an optional GlyphInfo struct to hold the information associated with the glyph found at the given index |
Implements skia::textlayout::Paragraph.
Definition at line 1314 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 875 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 931 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1259 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1224 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1250 of file ParagraphImpl.cpp.
Implements skia::textlayout::Paragraph.
Definition at line 1450 of file ParagraphImpl.cpp.
Definition at line 193 of file ParagraphImpl.h.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 848 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 781 of file ParagraphImpl.cpp.
|
inline |
Definition at line 233 of file ParagraphImpl.h.
Definition at line 247 of file ParagraphImpl.h.
|
inline |
Definition at line 149 of file ParagraphImpl.h.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 906 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 137 of file ParagraphImpl.cpp.
|
inlineoverridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 122 of file ParagraphImpl.h.
Definition at line 138 of file ParagraphImpl.h.
|
inlineoverridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 182 of file ParagraphImpl.h.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 248 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 243 of file ParagraphImpl.cpp.
|
inline |
Definition at line 139 of file ParagraphImpl.h.
|
inline |
Definition at line 135 of file ParagraphImpl.h.
void skia::textlayout::ParagraphImpl::resetContext | ( | ) |
Definition at line 254 of file ParagraphImpl.cpp.
|
inline |
Definition at line 237 of file ParagraphImpl.h.
|
inline |
Definition at line 180 of file ParagraphImpl.h.
void skia::textlayout::ParagraphImpl::resolveStrut | ( | ) |
Definition at line 687 of file ParagraphImpl.cpp.
Definition at line 172 of file ParagraphImpl.h.
Run & skia::textlayout::ParagraphImpl::runByCluster | ( | ClusterIndex | clusterIndex | ) |
Definition at line 955 of file ParagraphImpl.cpp.
Definition at line 131 of file ParagraphImpl.h.
void skia::textlayout::ParagraphImpl::setState | ( | InternalState | state | ) |
Definition at line 971 of file ParagraphImpl.cpp.
bool skia::textlayout::ParagraphImpl::shapeTextIntoEndlessLine | ( | ) |
Definition at line 555 of file ParagraphImpl.cpp.
|
inline |
Definition at line 130 of file ParagraphImpl.h.
|
inline |
Definition at line 153 of file ParagraphImpl.h.
|
inline |
Definition at line 154 of file ParagraphImpl.h.
|
inline |
Definition at line 157 of file ParagraphImpl.h.
|
inline |
Definition at line 160 of file ParagraphImpl.h.
Definition at line 132 of file ParagraphImpl.h.
|
inline |
Definition at line 129 of file ParagraphImpl.h.
Definition at line 938 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 124 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 116 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1112 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1077 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1101 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1093 of file ParagraphImpl.cpp.
|
overridevirtual |
Implements skia::textlayout::Paragraph.
Definition at line 1179 of file ParagraphImpl.cpp.
|
inline |
Definition at line 195 of file ParagraphImpl.h.
|
friend |
Definition at line 256 of file ParagraphImpl.h.
|
friend |
Definition at line 250 of file ParagraphImpl.h.
|
friend |
Definition at line 253 of file ParagraphImpl.h.
|
friend |
Definition at line 251 of file ParagraphImpl.h.
|
friend |
Definition at line 252 of file ParagraphImpl.h.
|
friend |
Definition at line 255 of file ParagraphImpl.h.