namespace Text
{
+struct BidirectionalLineInfoRun;
+
/**
* @brief Struct used to pass parameters.
*/
* Constructor with the needed parameters to layout the text.
*
* @param[in] boundingBox The size of the box containing the text.
+ * @param[in] textBuffer The text buffer.
* @param[in] lineBreakInfoBuffer The line break info.
* @param[in] wordBreakInfoBuffer The word break info.
* @param[in] totalNumberOfGlyphs The number of glyphs.
* @param[in] charactersPerGlyphBuffer Vector with the number of characters that forms each glyph.
*/
LayoutParameters( const Vector2& boundingBox,
+ const Character* const textBuffer,
const LineBreakInfo* const lineBreakInfoBuffer,
const WordBreakInfo* const wordBreakInfoBuffer,
Length totalNumberOfGlyphs,
const CharacterIndex* const glyphsToCharactersBuffer,
const Length* const charactersPerGlyphBuffer )
: boundingBox( boundingBox ),
+ textBuffer( textBuffer ),
lineBreakInfoBuffer( lineBreakInfoBuffer ),
wordBreakInfoBuffer( wordBreakInfoBuffer ),
totalNumberOfGlyphs( totalNumberOfGlyphs ),
glyphsBuffer( glyphsBuffer ),
glyphsToCharactersBuffer( glyphsToCharactersBuffer ),
- charactersPerGlyphBuffer( charactersPerGlyphBuffer )
+ charactersPerGlyphBuffer( charactersPerGlyphBuffer ),
+ charactersToGlyphsBuffer( NULL ),
+ glyphsPerCharacterBuffer( NULL ),
+ lineBidirectionalInfoRunsBuffer( NULL ),
+ numberOfBidirectionalInfoRuns( 0u )
{}
Vector2 boundingBox;
+ const Character* const textBuffer;
const LineBreakInfo* const lineBreakInfoBuffer;
const WordBreakInfo* const wordBreakInfoBuffer;
Length totalNumberOfGlyphs;
const GlyphInfo* const glyphsBuffer;
const CharacterIndex* const glyphsToCharactersBuffer;
const Length* const charactersPerGlyphBuffer;
+ GlyphIndex* charactersToGlyphsBuffer; ///< The character to glyph conversion table.
+ Length* glyphsPerCharacterBuffer; ///< The number of glyphs per character.
+ BidirectionalLineInfoRun* lineBidirectionalInfoRunsBuffer; ///< Bidirectional conversion tables per line.
+ Length numberOfBidirectionalInfoRuns; ///< The number of lines with bidirectional info.
};
} // namespace Text