Skia
2D Graphics Library
SkTextBlobBuilderRunHandler Class Referencefinal

Helper for shaping text directly into a SkTextBlob. More...

#include <SkShaper.h>

Inheritance diagram for SkTextBlobBuilderRunHandler:

Public Member Functions

 SkTextBlobBuilderRunHandler (const char *utf8Text, SkPoint offset)
 
sk_sp< SkTextBlobmakeBlob ()
 
SkPoint endPoint ()
 
void beginLine () override
 Called when beginning a line. More...
 
void runInfo (const RunInfo &) override
 Called once for each run in a line. More...
 
void commitRunInfo () override
 Called after all runInfo calls for a line. More...
 
Buffer runBuffer (const RunInfo &) override
 Called for each run in a line after commitRunInfo. More...
 
void commitRunBuffer (const RunInfo &) override
 Called after each runBuffer is filled out. More...
 
void commitLine () override
 Called when ending a line. More...
 

Detailed Description

Helper for shaping text directly into a SkTextBlob.

Constructor & Destructor Documentation

◆ SkTextBlobBuilderRunHandler()

SkTextBlobBuilderRunHandler::SkTextBlobBuilderRunHandler ( const char *  utf8Text,
SkPoint  offset 
)
inline

Member Function Documentation

◆ beginLine()

void SkTextBlobBuilderRunHandler::beginLine ( )
overridevirtual

Called when beginning a line.

Implements SkShaper::RunHandler.

◆ commitLine()

void SkTextBlobBuilderRunHandler::commitLine ( )
overridevirtual

Called when ending a line.

Implements SkShaper::RunHandler.

◆ commitRunBuffer()

void SkTextBlobBuilderRunHandler::commitRunBuffer ( const RunInfo )
overridevirtual

Called after each runBuffer is filled out.

Implements SkShaper::RunHandler.

◆ commitRunInfo()

void SkTextBlobBuilderRunHandler::commitRunInfo ( )
overridevirtual

Called after all runInfo calls for a line.

Implements SkShaper::RunHandler.

◆ endPoint()

SkPoint SkTextBlobBuilderRunHandler::endPoint ( )
inline

◆ makeBlob()

sk_sp<SkTextBlob> SkTextBlobBuilderRunHandler::makeBlob ( )

◆ runBuffer()

Buffer SkTextBlobBuilderRunHandler::runBuffer ( const RunInfo )
overridevirtual

Called for each run in a line after commitRunInfo.

The buffer will be filled out.

Implements SkShaper::RunHandler.

◆ runInfo()

void SkTextBlobBuilderRunHandler::runInfo ( const RunInfo )
overridevirtual

Called once for each run in a line.

Can compute baselines and offsets.

Implements SkShaper::RunHandler.


The documentation for this class was generated from the following file: