Draw centered text.
More...
#include <CSMAPI_types.h>
Draw centered text.
- Examples
- WelcomeMode.cpp.
◆ calculate()
virtual void CenteredTextInfo::calculate |
( |
| ) |
|
|
virtual |
Re-calculate this element's data.
- Warning
- You should ALWAYS call this at least once BEFORE you call render()!
Implements GuiBase.
◆ getClassName()
virtual const char* CenteredTextInfo::getClassName |
( |
| ) |
|
|
inlinevirtual |
Get this class' name.
- Returns
- Should return the name of this class.
Reimplemented from GuiBase.
◆ getFont()
FontObject* CenteredTextInfo::getFont |
( |
| ) |
|
|
inlinevirtual |
Get this element's font.
- Returns
- Returns the font.
Reimplemented from GuiBase.
◆ getLineCount()
int CenteredTextInfo::getLineCount |
( |
| ) |
|
Get new line count.
- Returns
- Returns new line count
◆ getLineLength()
int CenteredTextInfo::getLineLength |
( |
int |
index | ) |
|
Check line length.
- Parameters
-
index | The index of the line of text |
- Returns
- Returns the length of a line of text
◆ getLineSize()
GUI_POINT CenteredTextInfo::getLineSize |
( |
int |
index | ) |
|
Fetch line graphical size.
- Parameters
-
index | The index of the line of text |
- Returns
- Returns calculated size of the text using this element's font.
◆ getLineText()
void CenteredTextInfo::getLineText |
( |
int |
index, |
|
|
char * |
buffer, |
|
|
int |
buffer_len |
|
) |
| |
Fetch line text.
- Parameters
-
index | The index of the line of text |
buffer | The buffer that will hold the line. |
buffer_len | Size of buffer |
◆ getText()
const char* CenteredTextInfo::getText |
( |
| ) |
|
|
inline |
Get this object's text.
- Returns
- Returns this element's text.
◆ isHoverable()
virtual bool CenteredTextInfo::isHoverable |
( |
| ) |
|
|
virtual |
Check hoverability status.
- Returns
- Returns true if this element can be hovered over.
Implements GuiBase.
◆ isHovered()
virtual bool CenteredTextInfo::isHovered |
( |
| ) |
|
|
virtual |
Check hover status.
- Returns
- Returns true if this element is being hovered over.
Implements GuiBase.
◆ isSelected()
virtual bool CenteredTextInfo::isSelected |
( |
| ) |
|
|
virtual |
Check selection status.
- Returns
- Returns true if this element is selected.
Implements GuiBase.
◆ process()
virtual int CenteredTextInfo::process |
( |
GUI_POINT |
mouse | ) |
|
|
virtual |
◆ setFont()
virtual void CenteredTextInfo::setFont |
( |
FontObject * |
pFont | ) |
|
|
inlinevirtual |
Set this element's font.
- Parameters
-
Reimplemented from GuiBase.
◆ setHovered()
virtual void CenteredTextInfo::setHovered |
( |
int |
value | ) |
|
|
virtual |
Set this GUI element as hovered over or not.
- Parameters
-
Implements GuiBase.
◆ setSelected()
virtual void CenteredTextInfo::setSelected |
( |
int |
value | ) |
|
|
virtual |
Set this GUI element as selected or not.
- Parameters
-
value | The selection value. |
Implements GuiBase.
◆ setText()
void CenteredTextInfo::setText |
( |
const char * |
text | ) |
|
Set the text of this element.
- Parameters
-
◆ mNewLineCount
int CenteredTextInfo::mNewLineCount |
The list size of mNewLines.
- Warning
- Do not directly modify this variable.
◆ mNewLines
char* CenteredTextInfo::mNewLines[8] |
A list of pointers to the new lines in mText.
- Warning
- Do not directly modify this variable.
The documentation for this class was generated from the following file: