Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Used to show the progress of a particular operation. More...
Classes | |
class | XBMCAddon::xbmcgui::ControlProgress |
Functions | |
XBMCAddon::xbmcgui::ControlProgress::setPercent (...) | |
| |
XBMCAddon::xbmcgui::ControlProgress::getPercent () | |
| |
Used to show the progress of a particular operation.
Class: ControlProgress(x, y, width, height, filename[, texturebg, textureleft, texturemid, textureright, textureoverlay])
The progress control is used to show the progress of an item that may take a long time, or to show how far through a movie you are. You can choose the position, size, and look of the progress control.
x | integer - x coordinate of control. |
y | integer - y coordinate of control. |
width | integer - width of control. |
height | integer - height of control. |
filename | string - image filename. |
texturebg | [opt] string - specifies the image file whichshould be displayed in the background of the progress control. |
textureleft | [opt] string - specifies the image file whichshould be displayed for the left side of the progress bar. This is rendered on the left side of the bar. |
texturemid | [opt] string - specifies the image file which should be displayed for the middl portion of the progress bar. This is the fill texture used to fill up the bar. It's positioned on the right of the <lefttexture> texture, and fills the gap between the <lefttexture> and <righttexture> textures, depending on how far progressed the item is. |
textureright | [opt] string - specifies the image file which should be displayed for the right side of the progress bar. This is rendered on the right side of the bar. |
textureoverlay | [opt] string - specifies the image file which should be displayed over the top of all other images in the progress bar. It is centered vertically and horizontally within the space taken up by the background image. |
Example:
float XBMCAddon::xbmcgui::ControlProgress::getPercent | ( | ) |
Function: getPercent()
Example:
void XBMCAddon::xbmcgui::ControlProgress::setPercent | ( | ... | ) |
Function: setPercent(percent)
percent | float - percentage of the bar to show. |
Example: