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 | _assignListener (TrayListener *listener) |
|
void | _assignToTray (TrayLocation trayLoc) |
|
void | _cursorMoved (const Ogre::Vector2 &cursorPos, float wheelDelta) |
|
void | _cursorPressed (const Ogre::Vector2 &cursorPos) |
|
void | _cursorReleased (const Ogre::Vector2 &cursorPos) |
|
void | _focusLost () |
|
void | cleanup () |
|
const Ogre::DisplayString & | getCaption () |
|
const Ogre::String & | getName () |
|
Ogre::OverlayElement * | getOverlayElement () |
|
TrayLocation | getTrayLocation () |
|
Ogre::Real | getValue () |
|
const Ogre::DisplayString & | getValueCaption () |
|
void | hide () |
|
bool | isVisible () |
|
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...
|
|
void | show () |
|
Do not instantiate any widgets directly. Use TrayManager.
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.
You can use this method to manually format how the value is displayed.
void OgreBites::Slider::setValue |
( |
Ogre::Real |
value, |
|
|
bool |
notifyListener = true |
|
) |
| |
void OgreBites::Slider::_cursorPressed |
( |
const Ogre::Vector2 & |
cursorPos | ) |
|
|
virtual |
void OgreBites::Slider::_cursorReleased |
( |
const Ogre::Vector2 & |
cursorPos | ) |
|
|
virtual |
void OgreBites::Slider::_cursorMoved |
( |
const Ogre::Vector2 & |
cursorPos, |
|
|
float |
wheelDelta |
|
) |
| |
|
virtual |
void OgreBites::Slider::_focusLost |
( |
| ) |
|
|
inlinevirtual |
void OgreBites::Widget::cleanup |
( |
| ) |
|
|
inherited |
Static utility method to recursively delete an overlay element plus all of its children from the system.
Static utility method to check if the cursor is over an overlay element.
Static utility method used to get the cursor's offset from the center of an overlay element in pixels.
Static utility method used to get the width of a caption in a text area.
Static utility method to cut off a string to fit in a text area.
void OgreBites::Widget::hide |
( |
| ) |
|
|
inlineinherited |
void OgreBites::Widget::show |
( |
| ) |
|
|
inlineinherited |
bool OgreBites::Widget::isVisible |
( |
void |
| ) |
|
|
inlineinherited |
void OgreBites::Widget::_assignToTray |
( |
TrayLocation |
trayLoc | ) |
|
|
inlineinherited |
void OgreBites::Widget::_assignListener |
( |
TrayListener * |
listener | ) |
|
|
inlineinherited |
The documentation for this class was generated from the following file: