GL Studio C++ Runtime API
GlsTextGrid::UnderlineStrikeThruHelper Class Reference

#include <gls_text_grid.h>

Public Member Functions

 UnderlineStrikeThruHelper (float cellWidth, float cellHeight, float cellYScale, bool shadow, const Vector &shadowOffset, const GlsColor &shadowColor, float underlineOffset, float underlineSize, bool halo, float haloOffset, GlsColor haloColor, bool leftToRight)
 
void NewRow (void)
 
void ProcessCharacter (const CharAttr_t &charAttr, float cellX, float nextCellX, float charY, bool endOfLine)
 
void RenderLineSegments (void)
 

Detailed Description

helper class for processing underline and strike-thru when drawing text grid

Constructor & Destructor Documentation

UnderlineStrikeThruHelper ( float  cellWidth,
float  cellHeight,
float  cellYScale,
bool  shadow,
const Vector shadowOffset,
const GlsColor shadowColor,
float  underlineOffset,
float  underlineSize,
bool  halo,
float  haloOffset,
GlsColor  haloColor,
bool  leftToRight 
)
Parameters
cellWidthwidth of a character cell in the text grid
cellHeightheight of a character cell in the text grid
cellYScaleunused
shadowtrue if text grid has shadow enabled
shadowOffsetoffset for shadow
shadowColorcolor of shadow in text grid
underlineOffsetoffset of underline
underlineSizesize of underline
halotrue if text grid has halo enabled
haloOffsetoffset for halo
haloColorcolor of halo in text grid
leftToRighttrue if text flows left to right else false for right to left

Member Function Documentation

void NewRow ( void  )

Setup to process a new row in the text grid

void ProcessCharacter ( const CharAttr_t charAttr,
float  cellX,
float  nextCellX,
float  charY,
bool  endOfLine 
)

Pre Process the given character attributes

Parameters
charAttrattributes in question
cellXx coord of character cell
nextCellXx coord of character cell one past the given character
charYy coord of character
endOfLinetrue if character was the end of the current line
void RenderLineSegments ( void  )

Render the line segments for the underline / strikethru


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