![]() |
Kodi Documentation
18.0
Kodi is an open source media player and entertainment hub.
|
Used for a scrolling lists of items. Replaces the list control. More...
Classes | |
class | XBMCAddon::xbmcgui::ControlList |
Functions | |
XBMCAddon::xbmcgui::ControlList::addItem (...) | |
| |
XBMCAddon::xbmcgui::ControlList::addItems (...) | |
| |
XBMCAddon::xbmcgui::ControlList::selectItem (...) | |
| |
XBMCAddon::xbmcgui::ControlList::removeItem (...) | |
| |
XBMCAddon::xbmcgui::ControlList::reset () | |
| |
XBMCAddon::xbmcgui::ControlList::getSpinControl () | |
| |
XBMCAddon::xbmcgui::ControlList::getSelectedPosition () | |
| |
XBMCAddon::xbmcgui::ControlList::getSelectedItem () | |
| |
XBMCAddon::xbmcgui::ControlList::setImageDimensions (...) | |
| |
XBMCAddon::xbmcgui::ControlList::setSpace (...) | |
| |
XBMCAddon::xbmcgui::ControlList::setPageControlVisible (...) | |
| |
XBMCAddon::xbmcgui::ControlList::size () | |
| |
XBMCAddon::xbmcgui::ControlList::getItemHeight () | |
| |
XBMCAddon::xbmcgui::ControlList::getSpace () | |
| |
XBMCAddon::xbmcgui::ControlList::getListItem (...) | |
| |
XBMCAddon::xbmcgui::ControlList::setStaticContent (...) | |
| |
Used for a scrolling lists of items. Replaces the list control.
Class: ControlList(x, y, width, height[, font, textColor, buttonTexture, buttonFocusTexture,
selectedColor, imageWidth, imageHeight, itemTextXOffset, itemTextYOffset,
itemHeight, space, alignmentY, shadowColor])
The list container is one of several containers used to display items from file lists in various ways. The list container is very flexible - it's only restriction is that it is a list - i.e. a single column or row of items. The layout of the items is very flexible and is up to the skinner.
x | integer - x coordinate of control. | |||||||||||||||||||||
y | integer - y coordinate of control. | |||||||||||||||||||||
width | integer - width of control. | |||||||||||||||||||||
height | integer - height of control. | |||||||||||||||||||||
font | [opt] string - font used for items label. (e.g. 'font13') | |||||||||||||||||||||
textColor | [opt] hexstring - color of items label. (e.g. '0xFFFFFFFF') | |||||||||||||||||||||
buttonTexture | [opt] string - filename for focus texture. | |||||||||||||||||||||
buttonFocusTexture | [opt] string - filename for no focus texture. | |||||||||||||||||||||
selectedColor | [opt] integer - x offset of label. | |||||||||||||||||||||
imageWidth | [opt] integer - width of items icon or thumbnail. | |||||||||||||||||||||
imageHeight | [opt] integer - height of items icon or thumbnail. | |||||||||||||||||||||
itemTextXOffset | [opt] integer - x offset of items label. | |||||||||||||||||||||
itemTextYOffset | [opt] integer - y offset of items label. | |||||||||||||||||||||
itemHeight | [opt] integer - height of items. | |||||||||||||||||||||
space | [opt] integer - space between items. | |||||||||||||||||||||
alignmentY | [opt] integer - Y-axis alignment of items label
| |||||||||||||||||||||
shadowColor | [opt] hexstring - color of items label's shadow. (e.g. '0xFF000000') |
Example:
void XBMCAddon::xbmcgui::ControlList::addItem | ( | ... | ) |
Function: addItem(item)
Add a new item to this list control.
item | string, unicode or ListItem - item to add. |
Example:
void XBMCAddon::xbmcgui::ControlList::addItems | ( | ... | ) |
Function: addItems(items)
Adds a list of listitems or strings to this list control.
items | List - list of strings, unicode objects or ListItems to add. |
Large lists benefit considerably, than using the standard addItem()
Example:
long XBMCAddon::xbmcgui::ControlList::getItemHeight | ( | ) |
Function: getItemHeight()
Returns the control's current item height as an integer.
Example:
XBMCAddon::xbmcgui::ListItem * XBMCAddon::xbmcgui::ControlList::getListItem | ( | ... | ) |
XBMCAddon::xbmcgui::ListItem * XBMCAddon::xbmcgui::ControlList::getSelectedItem | ( | ) |
Function: getSelectedItem()
Returns the selected item as a ListItem object.
Example:
long XBMCAddon::xbmcgui::ControlList::getSelectedPosition | ( | ) |
Function: getSelectedPosition()
Returns the position of the selected item as an integer.
Example:
long XBMCAddon::xbmcgui::ControlList::getSpace | ( | ) |
Function: getSpace()
Returns the control's space between items as an integer.
Example:
Control * XBMCAddon::xbmcgui::ControlList::getSpinControl | ( | ) |
Function: getSpinControl()
Returns the associated ControlSpin object.
Example:
void XBMCAddon::xbmcgui::ControlList::removeItem | ( | ... | ) |
Function: removeItem(index)
Remove an item by index number.
index | integer - index number of the item to remove. |
Example:
void XBMCAddon::xbmcgui::ControlList::reset | ( | ) |
Function: reset()
Clear all ListItems in this control list.
Example:
void XBMCAddon::xbmcgui::ControlList::selectItem | ( | ... | ) |
Function: selectItem(item)
Select an item by index number.
item | integer - index number of the item to select. |
Example:
void XBMCAddon::xbmcgui::ControlList::setImageDimensions | ( | ... | ) |
Function: setImageDimensions(imageWidth, imageHeight)
Sets the width/height of items icon or thumbnail.
imageWidth | [opt] integer - width of items icon or thumbnail. |
imageHeight | [opt] integer - height of items icon or thumbnail. |
Example:
void XBMCAddon::xbmcgui::ControlList::setPageControlVisible | ( | ... | ) |
Function: setPageControlVisible(visible)
Sets the spin control's visible/hidden state.
visible | boolean - True=visible / False=hidden. |
Example:
void XBMCAddon::xbmcgui::ControlList::setSpace | ( | ... | ) |
Function: setSpace(space)
Set's the space between items.
space | [opt] integer - space between items. |
Example:
void XBMCAddon::xbmcgui::ControlList::setStaticContent | ( | ... | ) |
Function: setStaticContent(items)
Fills a static list with a list of listitems.
items | List - list of listitems to add. |
Example:
long XBMCAddon::xbmcgui::ControlList::size | ( | ) |
Function: size()
Returns the total number of items in this list control as an integer.
Example: