![]() |
Kodi Documentation
18.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])
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)) |
Example:
float XBMCAddon::xbmcgui::ControlSlider::getFloat | ( | ) |
Function: getFloat()
Returns the value of the slider.
Example:
int XBMCAddon::xbmcgui::ControlSlider::getInt | ( | ) |
Function: getInt()
Returns the value of the slider.
Example:
float XBMCAddon::xbmcgui::ControlSlider::getPercent | ( | ) |
Function: getPercent()
Returns a float of the percent of the slider.
Example:
void XBMCAddon::xbmcgui::ControlSlider::setFloat | ( | ... | ) |
Function: setFloat(value, min, delta, max)
Sets the range, value and step size of the slider.
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)
Sets the range, value and step size of the slider.
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)
Sets the percent of the slider.
pct | float - Percent value of slider |
Example: