|
Cavestory Mod API
|
A cache object to store parsed special text. More...
#include <CSMAPI_drawing.h>
Public Member Functions | |
| SpecialTextCache () | |
| Constructor. | |
| ~SpecialTextCache () | |
| Deconstructor. | |
| bool | Parse (FontObject *pFont, const char *pString, int iLength=-1, unsigned long iColor=0xFFFFFFFF, int iDestWidth=0) |
| Parse a string. More... | |
| void | Free () |
| Free this object's cache. | |
Public Attributes | |
| GUI_RECT | rect |
| The draw rect. More... | |
| GUI_POINT | mTotalSize |
| The total size of the text, including font changes, new lines, etc. | |
| List< SpecialTextNode * > | mTextList |
| Node list for this cache. | |
| char * | mFullText |
| The full text for this cache. | |
| int | mFullTextSize |
| int | mFullTextLen |
A cache object to store parsed special text.
| bool SpecialTextCache::Parse | ( | FontObject * | pFont, |
| const char * | pString, | ||
| int | iLength = -1, |
||
| unsigned long | iColor = 0xFFFFFFFF, |
||
| int | iDestWidth = 0 |
||
| ) |
Parse a string.
| pFont | The font to draw the string with. |
| pString | The string to parse. |
| iLength | The length of the string. If -1, then it will be determined using 'strlen()'. |
| iColor | The starting color of the text. |
| iDestWidth | The width of the rect where the text will be drawn. If you want to enable text wrapping, then set this to anything but 0. |
| GUI_RECT SpecialTextCache::rect |
The draw rect.
This doesn't affect anything at the moment.