Kodi Documentation  20.0 Kodi is an open source media player and entertainment hub.
Subclass - ControlSpin

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

Collaboration diagram for Subclass - ControlSpin:

## Functions

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

Sets textures for this control. More...

## 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.

## ◆ 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
 up label - for the up arrow when it doesn't have focus. down label - for the down button when it is not focused. upFocus label - for the up button when it has focus. downFocus label - for the down button when it has focus. upDisabled label - for the up arrow when the button is disabled. downDisabled label - for the up arrow when the button is disabled.

Example:

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