Flutter Engine
The Flutter Engine
|
#include <OneLineShaper.h>
Public Member Functions | |
OneLineShaper (ParagraphImpl *paragraph) | |
bool | shape () |
size_t | unresolvedGlyphs () |
Public Member Functions inherited from SkShaper::RunHandler | |
virtual | ~RunHandler ()=default |
Static Public Member Functions | |
static SkUnichar | getEmojiSequenceStart (SkUnicode *unicode, const char **begin, const char *end) |
Private Member Functions | |
void | beginLine () override |
void | runInfo (const RunInfo &) override |
void | commitRunInfo () override |
void | commitLine () override |
Buffer | runBuffer (const RunInfo &info) override |
void | commitRunBuffer (const RunInfo &) override |
Definition at line 16 of file OneLineShaper.h.
|
inlineexplicit |
Definition at line 18 of file OneLineShaper.h.
|
inlineoverrideprivatevirtual |
Called when beginning a line.
Implements SkShaper::RunHandler.
Definition at line 86 of file OneLineShaper.h.
|
inlineoverrideprivatevirtual |
Called when ending a line.
Implements SkShaper::RunHandler.
Definition at line 89 of file OneLineShaper.h.
|
overrideprivatevirtual |
Called after each runBuffer is filled out.
Implements SkShaper::RunHandler.
Definition at line 17 of file OneLineShaper.cpp.
|
inlineoverrideprivatevirtual |
Called after all runInfo calls for a line.
Implements SkShaper::RunHandler.
Definition at line 88 of file OneLineShaper.h.
|
static |
This method is based on definition of https://unicode.org/reports/tr51/#def_emoji_sequence It determines if the string begins with an emoji sequence and, if so, return the first codepoint, moving 'begin' pointer to the next once. Otherwise it does not move the pointer and returns -1.
Definition at line 805 of file OneLineShaper.cpp.
|
inlineoverrideprivatevirtual |
Called for each run in a line after commitRunInfo. The buffer will be filled out.
Implements SkShaper::RunHandler.
Definition at line 91 of file OneLineShaper.h.
|
inlineoverrideprivatevirtual |
Called once for each run in a line. Can compute baselines and offsets.
Implements SkShaper::RunHandler.
Definition at line 87 of file OneLineShaper.h.
bool skia::textlayout::OneLineShaper::shape | ( | ) |
Definition at line 617 of file OneLineShaper.cpp.
|
inline |
Definition at line 29 of file OneLineShaper.h.