| 
    Kodi Documentation 22.0
    
   Kodi is an open source media player and entertainment hub. 
   | 
 
Used for a volume slider. More...
Classes | |
| class | XBMCAddon::xbmcgui::ControlSlider | 
Functions | |
| XBMCAddon::xbmcgui::ControlSlider::getPercent () | |
 
 | |
| XBMCAddon::xbmcgui::ControlSlider::setPercent (...) | |
 
 | |
| XBMCAddon::xbmcgui::ControlSlider::getInt () | |
 
 | |
| XBMCAddon::xbmcgui::ControlSlider::setInt (...) | |
 
 | |
| XBMCAddon::xbmcgui::ControlSlider::getFloat () | |
 
 | |
| XBMCAddon::xbmcgui::ControlSlider::setFloat (...) | |
 
 | |
Used for a volume slider.
Class:  ControlSlider(x, y, width, height[, textureback, texture, texturefocus, orientation, texturebackdisabled, texturedisabled]) The slider control is used for things where a sliding bar best represents the operation at hand (such as a volume control or seek control). You can choose the position, size, and look of the slider control.
| x | integer - x coordinate of control | 
| y | integer - y coordinate of control | 
| width | integer - width of control | 
| height | integer - height of control | 
| textureback | [opt] string - image filename | 
| texture | [opt] string - image filename | 
| texturefocus | [opt] string - image filename | 
| orientation | [opt] integer - orientation of slider (xbmcgui.HORIZONTAL / xbmcgui.VERTICAL (default)) | 
| texturebackdisabled | [opt] string - image filename | 
| texturedisabled | [opt] string - image filename | 
Example:
| float XBMCAddon::xbmcgui::ControlSlider::getFloat | ( | ) | 
Function:  getFloat() Example:
| int XBMCAddon::xbmcgui::ControlSlider::getInt | ( | ) | 
Function:  getInt() Example:
| float XBMCAddon::xbmcgui::ControlSlider::getPercent | ( | ) | 
Function:  getPercent() Example:
| void XBMCAddon::xbmcgui::ControlSlider::setFloat | ( | ... | ) | 
Function:  setFloat(value, min, delta, max) | value | float - value of slider | 
| min | float - min of slider | 
| delta | float - step size of slider | 
| max | float - max of slider | 
Example:
| void XBMCAddon::xbmcgui::ControlSlider::setInt | ( | ... | ) | 
Function:  setInt(value, min, delta, max) | value | int - value of slider | 
| min | int - min of slider | 
| delta | int - step size of slider | 
| max | int - max of slider | 
Example:
| void XBMCAddon::xbmcgui::ControlSlider::setPercent | ( | ... | ) | 
Function:  setPercent(pct) | pct | float - Percent value of slider | 
Example: