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 () | 
|  | 
◆ 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 | 
 
 
◆ cleanup()
  
  | 
        
          | void OgreBites::Widget::cleanup | ( |  | ) |  |  | inherited | 
 
 
◆ nukeOverlayElement()
Static utility method to recursively delete an overlay element plus all of its children from the system. 
 
 
◆ isCursorOver()
Static utility method to check if the cursor is over an overlay element. 
 
 
◆ cursorOffset()
Static utility method used to get the cursor's offset from the center of an overlay element in pixels. 
 
 
◆ getCaptionWidth()
Static utility method used to get the width of a caption in a text area. 
 
 
◆ fitCaptionToArea()
Static utility method to cut off a string to fit in a text area. 
 
 
◆ getOverlayElement()
◆ getName()
◆ getTrayLocation()
◆ hide()
  
  | 
        
          | void OgreBites::Widget::hide | ( |  | ) |  |  | inlineinherited | 
 
 
◆ show()
  
  | 
        
          | void OgreBites::Widget::show | ( |  | ) |  |  | inlineinherited | 
 
 
◆ isVisible()
  
  | 
        
          | bool OgreBites::Widget::isVisible | ( | void |  | ) |  |  | inlineinherited | 
 
 
◆ _assignToTray()
  
  | 
        
          | void OgreBites::Widget::_assignToTray | ( | TrayLocation | trayLoc | ) |  |  | inlineinherited | 
 
 
◆ _assignListener()
  
  | 
        
          | void OgreBites::Widget::_assignListener | ( | TrayListener * | listener | ) |  |  | inlineinherited | 
 
 
The documentation for this class was generated from the following file: