Show a number slider.
More...
#include <CSMAPI_types.h>
◆ calculate()
virtual void SliderIntInfo::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* SliderIntInfo::getClassName |
( |
| ) |
|
|
inlinevirtual |
Get this class' name.
- Returns
- Should return the name of this class.
Reimplemented from GuiBase.
◆ getFont()
virtual FontObject* SliderIntInfo::getFont |
( |
| ) |
|
|
inlinevirtual |
Get the font for this GUI element.
- Returns
- Returns the font object for this element.
Reimplemented from GuiBase.
◆ getHoverableCount()
virtual int SliderIntInfo::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 SliderIntInfo::getSelectableCount |
( |
| ) |
|
|
inlinevirtual |
Get the selectable number of elements in this element.
- Returns
- Returns the amount of selectable elements in this element.
Reimplemented from GuiBase.
◆ getValue()
int SliderIntInfo::getValue |
( |
| ) |
|
Get the value.
- Returns
- Returns the integer value for this element
◆ importantRender()
virtual void SliderIntInfo::importantRender |
( |
| ) |
|
|
virtual |
Render the important bits of this element.
- Note
- This function is used to draw things that should be at the front of the screen, so make sure to call it AFTER rendering everything else.
Reimplemented from GuiBase.
◆ isHoverable()
virtual bool SliderIntInfo::isHoverable |
( |
| ) |
|
|
virtual |
Check hoverability status.
- Returns
- Returns true if this element can be hovered over.
Implements GuiBase.
◆ isHovered()
virtual bool SliderIntInfo::isHovered |
( |
| ) |
|
|
virtual |
Check hover status.
- Returns
- Returns true if this element is being hovered over.
Implements GuiBase.
◆ isSelected()
virtual bool SliderIntInfo::isSelected |
( |
| ) |
|
|
virtual |
Check selection status.
- Returns
- Returns true if this element is selected.
Implements GuiBase.
◆ process()
virtual int SliderIntInfo::process |
( |
GUI_POINT |
mouse | ) |
|
|
virtual |
◆ processKeys()
virtual int SliderIntInfo::processKeys |
( |
| ) |
|
|
virtual |
◆ SelectOnMouseUp()
virtual bool SliderIntInfo::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 SliderIntInfo::setFont |
( |
FontObject * |
pFont | ) |
|
|
inlinevirtual |
Set this element's font.
- Parameters
-
Reimplemented from GuiBase.
◆ setHovered()
virtual void SliderIntInfo::setHovered |
( |
int |
value | ) |
|
|
virtual |
Set this GUI element as hovered over or not.
- Parameters
-
Implements GuiBase.
◆ setSelected()
virtual void SliderIntInfo::setSelected |
( |
int |
value | ) |
|
|
virtual |
Set this GUI element as selected or not.
- Parameters
-
value | The selection value. |
Implements GuiBase.
◆ setValue()
void SliderIntInfo::setValue |
( |
int |
val | ) |
|
Set the value.
- Parameters
-
The documentation for this class was generated from the following file: