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, Ogre::Real minValue, Ogre::Real maxValue, unsigned int snaps) |
| Do not instantiate any widgets directly. Use TrayManager. More...
|
|
void | _cursorMoved (const Ogre::Vector2 &cursorPos, float wheelDelta) |
|
void | _cursorPressed (const Ogre::Vector2 &cursorPos) |
|
void | _cursorReleased (const Ogre::Vector2 &cursorPos) |
|
void | _focusLost () |
|
const Ogre::DisplayString & | getCaption () |
|
Ogre::Real | getValue () |
|
const Ogre::DisplayString & | getValueCaption () |
|
void | setCaption (const Ogre::DisplayString &caption) |
|
void | setRange (Ogre::Real minValue, Ogre::Real maxValue, unsigned int snaps, bool notifyListener=true) |
| Sets the minimum value, maximum value, and the number of snapping points. More...
|
|
void | setValue (Ogre::Real value, bool notifyListener=true) |
|
void | setValueCaption (const Ogre::DisplayString &caption) |
| You can use this method to manually format how the value is displayed. More...
|
|
| 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 |
( |
Ogre::Real |
minValue, |
|
|
Ogre::Real |
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 |
( |
Ogre::Real |
value, |
|
|
bool |
notifyListener = true |
|
) |
| |
◆ getValue()
◆ getCaption()
◆ setCaption()
◆ _cursorPressed()
void OgreBites::Slider::_cursorPressed |
( |
const Ogre::Vector2 & |
cursorPos | ) |
|
|
virtual |
◆ _cursorReleased()
void OgreBites::Slider::_cursorReleased |
( |
const Ogre::Vector2 & |
cursorPos | ) |
|
|
virtual |
◆ _cursorMoved()
void OgreBites::Slider::_cursorMoved |
( |
const Ogre::Vector2 & |
cursorPos, |
|
|
float |
wheelDelta |
|
) |
| |
|
virtual |
◆ _focusLost()
void OgreBites::Slider::_focusLost |
( |
| ) |
|
|
inlinevirtual |
The documentation for this class was generated from the following file: