Skia
2D Graphics Library
SkShaper::RunHandler Class Referenceabstract

#include <SkShaper.h>

Inheritance diagram for SkShaper::RunHandler:

Classes

struct  Buffer
 
struct  Range
 
struct  RunInfo
 

Public Member Functions

virtual ~RunHandler ()=default
 
virtual void beginLine ()=0
 Called when beginning a line. More...
 
virtual void runInfo (const RunInfo &)=0
 Called once for each run in a line. More...
 
virtual void commitRunInfo ()=0
 Called after all runInfo calls for a line. More...
 
virtual Buffer runBuffer (const RunInfo &)=0
 Called for each run in a line after commitRunInfo. More...
 
virtual void commitRunBuffer (const RunInfo &)=0
 Called after each runBuffer is filled out. More...
 
virtual void commitLine ()=0
 Called when ending a line. More...
 

Constructor & Destructor Documentation

◆ ~RunHandler()

virtual SkShaper::RunHandler::~RunHandler ( )
virtualdefault

Member Function Documentation

◆ beginLine()

virtual void SkShaper::RunHandler::beginLine ( )
pure virtual

Called when beginning a line.

Implemented in SkTextBlobBuilderRunHandler.

◆ commitLine()

virtual void SkShaper::RunHandler::commitLine ( )
pure virtual

Called when ending a line.

Implemented in SkTextBlobBuilderRunHandler.

◆ commitRunBuffer()

virtual void SkShaper::RunHandler::commitRunBuffer ( const RunInfo )
pure virtual

Called after each runBuffer is filled out.

Implemented in SkTextBlobBuilderRunHandler.

◆ commitRunInfo()

virtual void SkShaper::RunHandler::commitRunInfo ( )
pure virtual

Called after all runInfo calls for a line.

Implemented in SkTextBlobBuilderRunHandler.

◆ runBuffer()

virtual Buffer SkShaper::RunHandler::runBuffer ( const RunInfo )
pure virtual

Called for each run in a line after commitRunInfo.

The buffer will be filled out.

Implemented in SkTextBlobBuilderRunHandler.

◆ runInfo()

virtual void SkShaper::RunHandler::runInfo ( const RunInfo )
pure virtual

Called once for each run in a line.

Can compute baselines and offsets.

Implemented in SkTextBlobBuilderRunHandler.


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