| 
    Kodi Documentation 22.0
    
   Kodi is an open source media player and entertainment hub. 
   | 
 
#include <Button.h>
  
Public Member Functions | |
| CButton (CWindow *window, int controlId) | |
| Construct a new control.   | |
| ~CButton () override=default | |
| Destructor.   | |
| void | SetVisible (bool visible) | 
| Set the control on window to visible.   | |
| void | SetEnabled (bool enabled) | 
| Set's the control's enabled/disabled state.   | |
| void | SetLabel (const std::string &label) | 
| To set the text string on button.   | |
| std::string | GetLabel () const | 
| Get the used text from button.   | |
| void | SetLabel2 (const std::string &label) | 
| If two labels are used for button becomes it set with them.   | |
| std::string | GetLabel2 () const | 
| Get the second label if present.   | |
  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_Addon * | m_interface | 
| CAddonGUIControlBase * | m_Window |