Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
kodi::gui::CListItem Class Reference

#include <ListItem.h>

Inheritance diagram for kodi::gui::CListItem:
kodi::gui::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)
 
 ~CListItem () override
 Class destructor.
 
std::string GetLabel ()
 Returns the listitem label.
 
void SetLabel (const std::string &label)
 Sets the listitem label.
 
std::string GetLabel2 ()
 Returns the second listitem label.
 
void SetLabel2 (const std::string &label)
 Sets the listitem's label2.
 
std::string GetArt (const std::string &type)
 Sets the listitem's art.
 
void SetArt (const std::string &type, const std::string &url)
 Sets the listitem's art.
 
std::string GetPath ()
 Returns the path / filename of this listitem.
 
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.
 
std::string GetProperty (const std::string &key)
 Returns a listitem property as a string, similar to an infolabel.
 
void Select (bool selected)
 To control selection of item in list (also multiple selection, in list on several items possible).
 
bool IsSelected ()
 Returns the listitem's selected status.
 
- Public Member Functions inherited from kodi::gui::CAddonGUIControlBase
KODI_GUI_LISTITEM_HANDLE GetControlHandle () const
 

Additional Inherited Members

- Protected Member Functions inherited from kodi::gui::CAddonGUIControlBase
 CAddonGUIControlBase (CAddonGUIControlBase *window)
 
virtual ~CAddonGUIControlBase ()=default
 
- Protected Attributes inherited from kodi::gui::CAddonGUIControlBase
KODI_GUI_LISTITEM_HANDLE m_controlHandle
 
AddonToKodiFuncTable_Addonm_interface
 
CAddonGUIControlBasem_Window
 

Constructor & Destructor Documentation

◆ CListItem()

kodi::gui::CListItem::CListItem ( KODI_GUI_LISTITEM_HANDLE listItemHandle)
inlineexplicit

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