Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
Subclass - ControlSpin

Used for cycling up/down controls. More...

Classes

class  XBMCAddon::xbmcgui::ControlSpin
 

Functions

 XBMCAddon::xbmcgui::ControlSpin::setTextures (...)
 

Function: setTextures(up, down, upFocus, downFocus)


Sets textures for this control.
 

Detailed Description

Used for cycling up/down controls.

Offers classes and functions that manipulate the add-on gui controls.


Class: ControlSpin()

Code based skin access.

The spin control is used for when a list of options can be chosen (such as a page up/down control). You can choose the position, size, and look of the spin control.

Note
This class include also all calls from Control
Warning
Not working yet. You can't create this object, it is returned by objects like ControlTextBox and ControlList.

Function Documentation

◆ setTextures()

void XBMCAddon::xbmcgui::ControlSpin::setTextures ( ...)

Function: setTextures(up, down, upFocus, downFocus)


Sets textures for this control.

Texture are image files that are used for example in the skin

Warning
Not working yet.
Parameters
uplabel - for the up arrow when it doesn't have focus.
downlabel - for the down button when it is not focused.
upFocuslabel - for the up button when it has focus.
downFocuslabel - for the down button when it has focus.
upDisabledlabel - for the up arrow when the button is disabled.
downDisabledlabel - for the up arrow when the button is disabled.

Example:

...
# setTextures(up, down, upFocus, downFocus, upDisabled, downDisabled)
...