Kodi Development 22.0
for Binary and Script based Add-Ons
 
Loading...
Searching...
No Matches
CListItem

Inherits CAddonGUIControlBase.

Public Member Functions

 CListItem (const std::string &label="", const std::string &label2="", const std::string &path="")
 Class constructor with parameters.
 
 CListItem (KODI_GUI_LISTITEM_HANDLE listItemHandle)
 
std::string GetArt (const std::string &type)
 Sets the listitem's art.
 
std::string GetLabel ()
 Returns the listitem label.
 
std::string GetLabel2 ()
 Returns the second listitem label.
 
std::string GetPath ()
 Returns the path / filename of this listitem.
 
std::string GetProperty (const std::string &key)
 Returns a listitem property as a string, similar to an infolabel.
 
bool IsSelected ()
 Returns the listitem's selected status.
 
void Select (bool selected)
 To control selection of item in list (also multiple selection, in list on several items possible).
 
void SetArt (const std::string &type, const std::string &url)
 Sets the listitem's art.
 
void SetLabel (const std::string &label)
 Sets the listitem label.
 
void SetLabel2 (const std::string &label)
 Sets the listitem's label2.
 
void SetPath (const std::string &path)
 Sets the listitem's path.
 
void SetProperty (const std::string &key, const std::string &value)
 Sets a listitem property, similar to an infolabel.
 
 ~CListItem () override
 Class destructor.
 
- Public Member Functions inherited from CAddonGUIControlBase
KODI_GUI_LISTITEM_HANDLE GetControlHandle () const
 

Additional Inherited Members

- Protected Member Functions inherited from CAddonGUIControlBase
 CAddonGUIControlBase (CAddonGUIControlBase *window)
 
- Protected Attributes inherited from CAddonGUIControlBase
KODI_GUI_LISTITEM_HANDLE m_controlHandle
 
AddonToKodiFuncTable_Addonm_interface
 
CAddonGUIControlBasem_Window
 

The documentation for this class was generated from the following file: