Flutter Engine
The Flutter Engine
|
#include <SkSVGTextPriv.h>
Classes | |
class | PosAttrs |
class | ScopedPosResolver |
Public Types | |
using | ShapedTextCallback = std::function< void(const SkSVGRenderContext &, const sk_sp< SkTextBlob > &, const SkPaint *, const SkPaint *)> |
Public Member Functions | |
SkSVGTextContext (const SkSVGRenderContext &, const ShapedTextCallback &, const SkSVGTextPath *=nullptr) | |
~SkSVGTextContext () override | |
void | shapeFragment (const SkString &, const SkSVGRenderContext &, SkSVGXmlSpace) |
void | flushChunk (const SkSVGRenderContext &ctx) |
const ShapedTextCallback & | getCallback () const |
Private Member Functions | |
void | beginLine () override |
void | runInfo (const RunInfo &) override |
void | commitRunInfo () override |
Buffer | runBuffer (const RunInfo &ri) override |
void | commitRunBuffer (const RunInfo &ri) override |
void | commitLine () override |
Definition at line 34 of file SkSVGTextPriv.h.
using SkSVGTextContext::ShapedTextCallback = std::function<void(const SkSVGRenderContext&, const sk_sp<SkTextBlob>&, const SkPaint*, const SkPaint*)> |
Definition at line 36 of file SkSVGTextPriv.h.
SkSVGTextContext::SkSVGTextContext | ( | const SkSVGRenderContext & | ctx, |
const ShapedTextCallback & | cb, | ||
const SkSVGTextPath * | tpath = nullptr |
||
) |
Definition at line 274 of file SkSVGText.cpp.
|
override |
Definition at line 310 of file SkSVGText.cpp.
|
inlineoverrideprivatevirtual |
Called when beginning a line.
Implements SkShaper::RunHandler.
Definition at line 177 of file SkSVGTextPriv.h.
|
overrideprivatevirtual |
Called when ending a line.
Implements SkShaper::RunHandler.
Definition at line 524 of file SkSVGText.cpp.
|
overrideprivatevirtual |
Called after each runBuffer is filled out.
Implements SkShaper::RunHandler.
Definition at line 512 of file SkSVGText.cpp.
|
inlineoverrideprivatevirtual |
Called after all runInfo calls for a line.
Implements SkShaper::RunHandler.
Definition at line 179 of file SkSVGTextPriv.h.
void SkSVGTextContext::flushChunk | ( | const SkSVGRenderContext & | ctx | ) |
Definition at line 463 of file SkSVGText.cpp.
|
inline |
Definition at line 120 of file SkSVGTextPriv.h.
|
overrideprivatevirtual |
Called for each run in a line after commitRunInfo. The buffer will be filled out.
Implements SkShaper::RunHandler.
Definition at line 486 of file SkSVGText.cpp.
|
inlineoverrideprivatevirtual |
Called once for each run in a line. Can compute baselines and offsets.
Implements SkShaper::RunHandler.
Definition at line 178 of file SkSVGTextPriv.h.
void SkSVGTextContext::shapeFragment | ( | const SkString & | txt, |
const SkSVGRenderContext & | ctx, | ||
SkSVGXmlSpace | xs | ||
) |
Definition at line 314 of file SkSVGText.cpp.