Basic slider widget.
More...
#include <OgreTrays.h>
|
| | Slider (const Ogre::String &name, const Ogre::DisplayString &caption, Ogre::Real width, Ogre::Real trackWidth, Ogre::Real valueBoxWidth, float minValue, float maxValue, unsigned int snaps) |
| | Do not instantiate any widgets directly. Use TrayManager.
|
| |
| void | _cursorMoved (const Ogre::Vector2 &cursorPos, float wheelDelta) override |
| |
| void | _cursorPressed (const Ogre::Vector2 &cursorPos) override |
| |
| void | _cursorReleased (const Ogre::Vector2 &cursorPos) override |
| |
| void | _focusLost () override |
| |
| const Ogre::DisplayString & | getCaption () |
| |
| float | getValue () |
| |
| const Ogre::DisplayString & | getValueCaption () |
| |
| void | setCaption (const Ogre::DisplayString &caption) |
| |
| void | setRange (float minValue, float maxValue, unsigned int snaps, bool notifyListener=true) |
| | Sets the minimum value, maximum value, and the number of snapping points.
|
| |
| void | setValue (float value, bool notifyListener=true) |
| |
| void | setValueCaption (const Ogre::DisplayString &caption) |
| | You can use this method to manually format how the value is displayed.
|
| |
| | Widget () |
| |
| virtual | ~Widget () |
| |
| void | _assignListener (TrayListener *listener) |
| |
| void | _assignToTray (TrayLocation trayLoc) |
| |
| void | cleanup () |
| |
| const Ogre::String & | getName () |
| |
| Ogre::OverlayElement * | getOverlayElement () |
| |
| TrayLocation | getTrayLocation () |
| |
| void | hide () |
| |
| bool | isVisible () |
| |
| void | show () |
| |
◆ Slider()
Do not instantiate any widgets directly. Use TrayManager.
◆ setRange()
| void OgreBites::Slider::setRange |
( |
float | minValue, |
|
|
float | maxValue, |
|
|
unsigned int | snaps, |
|
|
bool | notifyListener = true ) |
Sets the minimum value, maximum value, and the number of snapping points.
◆ getValueCaption()
◆ setValueCaption()
You can use this method to manually format how the value is displayed.
◆ setValue()
| void OgreBites::Slider::setValue |
( |
float | value, |
|
|
bool | notifyListener = true ) |
◆ getValue()
| float OgreBites::Slider::getValue |
( |
| ) |
|
|
inline |
◆ getCaption()
◆ setCaption()
◆ _cursorPressed()
| void OgreBites::Slider::_cursorPressed |
( |
const Ogre::Vector2 & | cursorPos | ) |
|
|
overridevirtual |
◆ _cursorReleased()
| void OgreBites::Slider::_cursorReleased |
( |
const Ogre::Vector2 & | cursorPos | ) |
|
|
overridevirtual |
◆ _cursorMoved()
| void OgreBites::Slider::_cursorMoved |
( |
const Ogre::Vector2 & | cursorPos, |
|
|
float | wheelDelta ) |
|
overridevirtual |
◆ _focusLost()
| void OgreBites::Slider::_focusLost |
( |
| ) |
|
|
inlineoverridevirtual |
The documentation for this class was generated from the following file: