Flutter Engine
The Flutter Engine
|
#include <SkShaperJSONWriter.h>
Public Types | |
using | BreakupClustersCallback = std::function< void(size_t, size_t, uint32_t, uint32_t)> |
using | VisualizeClustersCallback = std::function< void(size_t, SkSpan< const char >, SkSpan< const SkGlyphID >)> |
Public Member Functions | |
SkShaperJSONWriter (SkJSONWriter *JSONWriter, const char *utf8, size_t size) | |
void | beginLine () override |
void | runInfo (const RunInfo &info) override |
void | commitRunInfo () override |
Buffer | runBuffer (const RunInfo &info) override |
void | commitRunBuffer (const RunInfo &info) override |
void | commitLine () override |
Public Member Functions inherited from SkShaper::RunHandler | |
virtual | ~RunHandler ()=default |
virtual void | beginLine ()=0 |
virtual void | runInfo (const RunInfo &)=0 |
virtual void | commitRunInfo ()=0 |
virtual Buffer | runBuffer (const RunInfo &)=0 |
virtual void | commitRunBuffer (const RunInfo &)=0 |
virtual void | commitLine ()=0 |
Static Public Member Functions | |
static void | BreakupClusters (size_t utf8Begin, size_t utf8End, SkSpan< const uint32_t > clusters, const BreakupClustersCallback &processMToN) |
static void | VisualizeClusters (const char utf8[], size_t utf8Begin, size_t utf8End, SkSpan< const SkGlyphID > glyphIDs, SkSpan< const uint32_t > clusters, const VisualizeClustersCallback &processMToN) |
Definition at line 23 of file SkShaperJSONWriter.h.
using SkShaperJSONWriter::BreakupClustersCallback = std::function<void(size_t, size_t, uint32_t, uint32_t)> |
Definition at line 37 of file SkShaperJSONWriter.h.
using SkShaperJSONWriter::VisualizeClustersCallback = std::function<void(size_t, SkSpan<const char>, SkSpan<const SkGlyphID>)> |
Definition at line 46 of file SkShaperJSONWriter.h.
SkShaperJSONWriter::SkShaperJSONWriter | ( | SkJSONWriter * | JSONWriter, |
const char * | utf8, | ||
size_t | size | ||
) |
Definition at line 24 of file SkShaperJSONWriter.cpp.
|
overridevirtual |
Called when beginning a line.
Implements SkShaper::RunHandler.
Definition at line 28 of file SkShaperJSONWriter.cpp.
|
static |
Definition at line 137 of file SkShaperJSONWriter.cpp.
|
inlineoverridevirtual |
Called when ending a line.
Implements SkShaper::RunHandler.
Definition at line 35 of file SkShaperJSONWriter.h.
|
overridevirtual |
Called after each runBuffer is filled out.
Implements SkShaper::RunHandler.
Definition at line 75 of file SkShaperJSONWriter.cpp.
|
overridevirtual |
Called after all runInfo calls for a line.
Implements SkShaper::RunHandler.
Definition at line 32 of file SkShaperJSONWriter.cpp.
|
overridevirtual |
Called for each run in a line after commitRunInfo. The buffer will be filled out.
Implements SkShaper::RunHandler.
Definition at line 35 of file SkShaperJSONWriter.cpp.
|
overridevirtual |
Called once for each run in a line. Can compute baselines and offsets.
Implements SkShaper::RunHandler.
Definition at line 30 of file SkShaperJSONWriter.cpp.
|
static |
Definition at line 175 of file SkShaperJSONWriter.cpp.