#include <DisplayString.h>
Inherits MemoryPoolObject.
Inherited by W3DDisplayString.
Public Member Functions | |
| DisplayString (void) | |
| virtual void | setText (UnicodeString text) |
| set text for this string | |
| virtual UnicodeString | getText (void) |
| get text for this string | |
| virtual Int | getTextLength (void) |
| return number of chars in string | |
| virtual void | notifyTextChanged (void) |
| called when text has changed | |
| virtual void | reset (void) |
| reset all contents of string | |
| virtual void | setFont (GameFont *font) |
| set a font for display | |
| virtual GameFont * | getFont (void) |
| return font in string | |
| virtual void | setWordWrap (Int wordWrap)=0 |
| Set the width that we want to start wrapping text. | |
| virtual void | setWordWrapCentered (Bool isCentered)=0 |
| If this is set to true, the text on a new line is centered. | |
| virtual void | draw (Int x, Int y, Color color, Color dropColor)=0 |
| render text | |
| virtual void | draw (Int x, Int y, Color color, Color dropColor, Int xDrop, Int yDrop)=0 |
| render text with the drop shadow being at the offsets passed in | |
| virtual void | getSize (Int *width, Int *height)=0 |
| get render size | |
| virtual Int | getWidth (Int charPos=-1)=0 |
| get text with up to charPos characters, 1- = all characters | |
| virtual void | setUseHotkey (Bool useHotkey, Color hotKeyColor)=0 |
| virtual void | setClipRegion (IRegion2D *region) |
| clip text in this region | |
| virtual void | removeLastChar (void) |
| remove the last character | |
| virtual void | appendChar (WideChar c) |
| append character to end | |
| DisplayString * | next (void) |
| return next string | |
Public Member Functions inherited from MemoryPoolObject | |
| void | deleteInstance () |
Public Attributes | |
| friend | DisplayStringManager |
Protected Attributes | |
| UnicodeString | m_textString |
| GameFont * | m_font |
| font to display this string with | |
| DisplayString * | m_next |
| for the display string factory list ONLY | |
| DisplayString * | m_prev |
| for the display string factory list ONLY | |
Additional Inherited Members | |
Protected Member Functions inherited from MemoryPoolObject | |
| virtual | ~MemoryPoolObject () |
| void * | operator new (size_t s) |
| void | operator delete (void *p) |
| virtual MemoryPool * | getObjectMemoryPool ()=0 |
String representation that can also has additional information and methods for drawing to the screen
Definition at line 71 of file DisplayString.h.
| DisplayString::DisplayString | ( | void | ) |
Definition at line 74 of file DisplayString.cpp.
|
virtual |
append character to end
Append character to the end of the string
Definition at line 139 of file DisplayString.cpp.
render text
Implemented in W3DDisplayString.
|
pure virtual |
render text with the drop shadow being at the offsets passed in
Implemented in W3DDisplayString.
|
inlinevirtual |
return font in string
Definition at line 123 of file DisplayString.h.
get render size
Implemented in W3DDisplayString.
|
inlinevirtual |
get text for this string
Definition at line 120 of file DisplayString.h.
|
inlinevirtual |
return number of chars in string
Definition at line 121 of file DisplayString.h.
get text with up to charPos characters, 1- = all characters
Implemented in W3DDisplayString.
|
inline |
return next string
Definition at line 126 of file DisplayString.h.
|
inlinevirtual |
called when text has changed
Reimplemented in W3DDisplayString.
Definition at line 125 of file DisplayString.h.
|
virtual |
remove the last character
Remove the last character from the string text
Definition at line 127 of file DisplayString.cpp.
|
virtual |
reset all contents of string
Free and reset all the data for this string, effectively making this instance like brand new
Definition at line 114 of file DisplayString.cpp.
|
inlinevirtual |
clip text in this region
Reimplemented in W3DDisplayString.
Definition at line 124 of file DisplayString.h.
|
inlinevirtual |
set a font for display
Reimplemented in W3DDisplayString.
Definition at line 122 of file DisplayString.h.
|
virtual |
set text for this string
Copy the text to this instance
Definition at line 98 of file DisplayString.cpp.
Implemented in W3DDisplayString.
|
pure virtual |
Set the width that we want to start wrapping text.
Implemented in W3DDisplayString.
|
pure virtual |
If this is set to true, the text on a new line is centered.
Implemented in W3DDisplayString.
| friend DisplayString::DisplayStringManager |
Definition at line 78 of file DisplayString.h.
|
protected |
font to display this string with
Definition at line 110 of file DisplayString.h.
|
protected |
for the display string factory list ONLY
Definition at line 112 of file DisplayString.h.
|
protected |
for the display string factory list ONLY
Definition at line 113 of file DisplayString.h.
|
protected |
Definition at line 109 of file DisplayString.h.