AUI Framework
master
Cross-platform module-based framework for developing C++20 desktop applications
|
Public Member Functions | |
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. | |
virtual void | addString (const glm::ivec2 &position, const AString &text) noexcept=0 |
Bakes a string with some position. More... | |
virtual _< IRenderer::IPrerenderedString > | finalize () noexcept=0 |
Bakes multi string canvas to IPrerenderedString which can be used for drawing text. More... | |
ATextLayoutHelper | getTextLayoutHelper () noexcept |
Returns text layout helper. More... | |
Protected Member Functions | |
void | notifySymbolAdded (const ATextLayoutHelper::Boundary &symbol) noexcept |
Notifies IMultiStringCanvas than a symbol was added used to construct a ATextLayoutHelper. More... | |
|
pure virtualnoexcept |
Bakes a string with some position.
position | position |
text | text |
Implemented in OpenGLMultiStringCanvas, and SoftwareMultiStringCanvas.
|
pure virtualnoexcept |
Bakes multi string canvas to IPrerenderedString which can be used for drawing text.
_<IRenderer::IPrerenderedString>
to drawElements with. Implemented in OpenGLMultiStringCanvas, and SoftwareMultiStringCanvas.
|
inlinenoexcept |
Returns text layout helper.
IRenderer::ITextLayoutHelper
constructed from IMultiStringCanvas
's cache to efficiently map cursor position to the string index.
|
inlineprotectednoexcept |
Notifies IMultiStringCanvas than a symbol was added used to construct a ATextLayoutHelper.
symbol | symbol data to add |