AUI Framework  develop
Cross-platform base for C++ UI apps
Loading...
Searching...
No Matches
SoftwareMultiStringCanvas Class Reference

Public Member Functions

 SoftwareMultiStringCanvas (SoftwareRenderer *renderer, const AFontStyle &fontStyle)
 
void addString (const glm::ivec2 &position, const AString &text) noexcept override
 Bakes a string with some position.
 
_< IRenderer::IPrerenderedStringfinalize () noexcept override
 Bakes multi string canvas to IPrerenderedString which can be used for drawing text.
 
- Public Member Functions inherited from IRenderer::IMultiStringCanvas
void enableCachingForTextLayoutHelper () noexcept
 Notifies IMultiStringCanvas that getTextLayoutHelper() will be used.
 
void nextLine () noexcept
 When caching for text layout helper is enabled, a new line added.
 
ATextLayoutHelper getTextLayoutHelper () noexcept
 Returns text layout helper.
 

Additional Inherited Members

- Protected Member Functions inherited from IRenderer::IMultiStringCanvas
void notifySymbolAdded (const ATextLayoutHelper::Boundary &symbol) noexcept
 Notifies IMultiStringCanvas than a symbol was added used to construct a ATextLayoutHelper.
 

Member Function Documentation

◆ addString()

void SoftwareMultiStringCanvas::addString ( const glm::ivec2 & position,
const AString & text )
inlineoverridevirtualnoexcept

Bakes a string with some position.

Parameters
positionposition
texttext

Implements IRenderer::IMultiStringCanvas.

◆ finalize()

_< IRenderer::IPrerenderedString > SoftwareMultiStringCanvas::finalize ( )
inlineoverridevirtualnoexcept

Bakes multi string canvas to IPrerenderedString which can be used for drawing text.

Note
invalidates IMultiStringCanvas which speeds up some implementations of IMultiStringCanvas.
Returns
instance of _<IRenderer::IPrerenderedString> to drawElements with.

Implements IRenderer::IMultiStringCanvas.


The documentation for this class was generated from the following file:
Inheritance diagram for SoftwareMultiStringCanvas:
Collaboration diagram for SoftwareMultiStringCanvas: