Text.
More...
#include <CSMAPI_types.h>
|
FontObject * | mFont |
| Font for this element.
|
|
char | mText [256] |
| The text that this element should display.
|
|
◆ calculate()
virtual void SelectableLabelInfo::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* SelectableLabelInfo::getClassName |
( |
| ) |
|
|
inlinevirtual |
Get this class' name.
- Returns
- Should return the name of this class.
Reimplemented from GuiBase.
◆ getFont()
virtual FontObject* SelectableLabelInfo::getFont |
( |
| ) |
|
|
inlinevirtual |
Get the font for this GUI element.
- Returns
- Returns the font object for this element.
Reimplemented from GuiBase.
◆ getHoverableCount()
virtual int SelectableLabelInfo::getHoverableCount |
( |
| ) |
|
|
inlinevirtual |
Get the number of elements that can be hovered over in this element.
- Returns
- Returns the amount of elements that can be hovered over in this element.
Reimplemented from GuiBase.
◆ getSelectableCount()
virtual int SelectableLabelInfo::getSelectableCount |
( |
| ) |
|
|
inlinevirtual |
Get the selectable number of elements in this element.
- Returns
- Returns the amount of selectable elements in this element.
Reimplemented from GuiBase.
◆ getText()
const char* SelectableLabelInfo::getText |
( |
| ) |
|
|
inline |
Get the text of this element.
- Returns
- Returns this element's text.
◆ isHoverable()
virtual bool SelectableLabelInfo::isHoverable |
( |
| ) |
|
|
virtual |
Check hoverability status.
- Returns
- Returns true if this element can be hovered over.
Implements GuiBase.
◆ isHovered()
virtual bool SelectableLabelInfo::isHovered |
( |
| ) |
|
|
virtual |
Check hover status.
- Returns
- Returns true if this element is being hovered over.
Implements GuiBase.
◆ isSelected()
virtual bool SelectableLabelInfo::isSelected |
( |
| ) |
|
|
virtual |
Check selection status.
- Returns
- Returns true if this element is selected.
Implements GuiBase.
◆ process()
virtual int SelectableLabelInfo::process |
( |
GUI_POINT |
mouse | ) |
|
|
virtual |
◆ SelectOnMouseUp()
virtual bool SelectableLabelInfo::SelectOnMouseUp |
( |
| ) |
|
|
inlinevirtual |
Select on mouse up.
- Returns
- Return false if you want this element to be selected on mousedown instead of mouseup
Reimplemented from GuiBase.
◆ setFont()
virtual void SelectableLabelInfo::setFont |
( |
FontObject * |
pFont | ) |
|
|
inlinevirtual |
Set this element's font.
- Parameters
-
Reimplemented from GuiBase.
◆ setHovered()
virtual void SelectableLabelInfo::setHovered |
( |
int |
value | ) |
|
|
virtual |
Set this GUI element as hovered over or not.
- Parameters
-
Implements GuiBase.
◆ setSelected()
virtual void SelectableLabelInfo::setSelected |
( |
int |
value | ) |
|
|
virtual |
Set this GUI element as selected or not.
- Parameters
-
value | The selection value. |
Implements GuiBase.
◆ setText()
void SelectableLabelInfo::setText |
( |
const char * |
text | ) |
|
Set the text of this element.
- Parameters
-
The documentation for this class was generated from the following file: