Kodi Documentation  18.0
Kodi is an open source media player and entertainment hub.
XBMCAddon::xbmcgui::ControlButton Class Reference

#include <Control.h>

Inheritance diagram for XBMCAddon::xbmcgui::ControlButton:
XBMCAddon::xbmcgui::Control XBMCAddon::AddonClass CCriticalSection XbmcThreads::CountingLockable< XbmcThreads::CRecursiveMutex >

Public Member Functions

 ControlButton (long x, long y, long width, long height, const String &label, const char *focusTexture=NULL, const char *noFocusTexture=NULL, long textOffsetX=CONTROL_TEXT_OFFSET_X, long textOffsetY=CONTROL_TEXT_OFFSET_Y, long alignment=(XBFONT_LEFT|XBFONT_CENTER_Y), const char *font=NULL, const char *textColor=NULL, const char *disabledColor=NULL, long angle=0, const char *shadowColor=NULL, const char *focusedColor=NULL)
 
 setLabel (...)
 

Function: setLabel([label, font, textColor, disabledColor, shadowColor, focusedColor, label2])


Set's this buttons text attributes. More...

 
 setDisabledColor (...)
 

Function: setDisabledColor(disabledColor)


More...
 
 getLabel ()
 

Function: getLabel()


Returns the buttons label as a unicode string. More...

 
 getLabel2 ()
 

Function: getLabel2()


Returns the buttons label2 as a unicode string. More...

 
SWIGHIDDENVIRTUAL bool canAcceptMessages (int actionId) override
 
SWIGHIDDENVIRTUAL CGUIControlCreate () override
 
 ControlButton ()=default
 
- Public Member Functions inherited from XBMCAddon::xbmcgui::Control
 ~Control () override
 
 getId () inline bool operator
 

Function: getId()


Returns the control's current id as an integer. More...

 
 getX ()
 

Function: getX()


Returns the control's current X position. More...

 
 getY ()
 

Function: getY()


Returns the control's current Y position. More...

 
 getHeight ()
 

Function: getHeight()


Returns the control's current height as an integer. More...

 
 getWidth ()
 

Function: getWidth()


Returns the control's current width as an integer. More...

 
 setEnabled (...)
 

Function: setEnabled(enabled)


Set's the control's enabled/disabled state. More...

 
 setVisible (...)
 

Function: setVisible(visible)


Set's the control's visible/hidden state. More...

 
 isVisible (...)
 

Function: isVisible()


Get the control's visible/hidden state. More...

 
 setVisibleCondition (...)
 

Function: setVisibleCondition(visible[,allowHiddenFocus])


Set's the control's visible condition. More...

 
 setEnableCondition (...)
 

Function: setEnableCondition(enable)


Set's the control's enabled condition. More...

 
 setAnimations (...)
 

Function: setAnimations([(event, attr,)*])


Set's the control's animations. More...

 
 setPosition (...)
 

Function: setPosition(x, y)


Set's the controls position. More...

 
 setWidth (...)
 

Function: setWidth(width)


Set's the controls width. More...

 
 setHeight (...)
 

Function: setHeight(height)


Set's the controls height. More...

 
 setNavigation (...)
 

Function: setNavigation(up, down, left, right)


Set's the controls navigation. More...

 
 controlUp (...)
 

Function: controlUp(control)


Set's the controls up navigation. More...

 
 controlDown (...)
 

Function: controlDown(control)


Set's the controls down navigation. More...

 
 controlLeft (...)
 

Function: controlLeft(control)


Set's the controls left navigation. More...

 
 controlRight (...)
 

Function: controlRight(control)


Set's the controls right navigation. More...

 
- Public Member Functions inherited from XBMCAddon::AddonClass
 AddonClass ()
 
virtual ~AddonClass ()
 
const char * GetClassname () const
 
LanguageHookGetLanguageHook ()
 
bool isDeallocating ()
 
void Release () const
 
void Acquire () const
 
- Public Member Functions inherited from XbmcThreads::CountingLockable< XbmcThreads::CRecursiveMutex >
 CountingLockable ()=default
 
void lock ()
 
bool try_lock ()
 
void unlock ()
 
unsigned int exit (unsigned int leave=0)
 
void restore (unsigned int restoreCount)
 
XbmcThreads::CRecursiveMutex & get_underlying ()
 

Public Attributes

int textOffsetX = 0
 
int textOffsetY = 0
 
UTILS::Color align
 
std::string strFont
 
UTILS::Color textColor
 
UTILS::Color disabledColor
 
int iAngle = 0
 
int shadowColor = 0
 
int focusedColor = 0
 
std::string strText
 
std::string strText2
 
std::string strTextureFocus
 
std::string strTextureNoFocus
 
- Public Attributes inherited from XBMCAddon::xbmcgui::Control
int iControlId = 0
 
int iParentId = 0
 
int dwPosX = 0
 
int dwPosY = 0
 
int dwWidth = 0
 
int dwHeight = 0
 
int iControlUp = 0
 
int iControlDown = 0
 
int iControlLeft = 0
 
int iControlRight = 0
 
CGUIControlpGUIControl = nullptr
 

Additional Inherited Members

- Static Public Member Functions inherited from XBMCAddon::AddonClass
static short getNumAddonClasses ()
 
- Protected Member Functions inherited from XBMCAddon::xbmcgui::Control
 Control ()=default
 
- Protected Member Functions inherited from XBMCAddon::AddonClass
virtual void deallocating ()
 
- Static Protected Member Functions inherited from XBMCAddon::AddonClass
static short getNextClassIndex ()
 
- Protected Attributes inherited from XBMCAddon::AddonClass
LanguageHooklanguageHook
 
- Protected Attributes inherited from XbmcThreads::CountingLockable< XbmcThreads::CRecursiveMutex >
XbmcThreads::CRecursiveMutex mutex
 
unsigned int count
 

Constructor & Destructor Documentation

§ ControlButton() [1/2]

XBMCAddon::xbmcgui::ControlButton::ControlButton ( long  x,
long  y,
long  width,
long  height,
const String label,
const char *  focusTexture = NULL,
const char *  noFocusTexture = NULL,
long  textOffsetX = CONTROL_TEXT_OFFSET_X,
long  textOffsetY = CONTROL_TEXT_OFFSET_Y,
long  alignment = (XBFONT_LEFT | XBFONT_CENTER_Y),
const char *  font = NULL,
const char *  textColor = NULL,
const char *  disabledColor = NULL,
long  angle = 0,
const char *  shadowColor = NULL,
const char *  focusedColor = NULL 
)

§ ControlButton() [2/2]

XBMCAddon::xbmcgui::ControlButton::ControlButton ( )
default

Member Function Documentation

§ canAcceptMessages()

SWIGHIDDENVIRTUAL bool XBMCAddon::xbmcgui::ControlButton::canAcceptMessages ( int  actionId)
inlineoverridevirtual

Reimplemented from XBMCAddon::xbmcgui::Control.

§ Create()

CGUIControl * XBMCAddon::xbmcgui::ControlButton::Create ( )
overridevirtual

Reimplemented from XBMCAddon::xbmcgui::Control.

Member Data Documentation

§ align

UTILS::Color XBMCAddon::xbmcgui::ControlButton::align

§ disabledColor

UTILS::Color XBMCAddon::xbmcgui::ControlButton::disabledColor

§ focusedColor

int XBMCAddon::xbmcgui::ControlButton::focusedColor = 0

§ iAngle

int XBMCAddon::xbmcgui::ControlButton::iAngle = 0

§ shadowColor

int XBMCAddon::xbmcgui::ControlButton::shadowColor = 0

§ strFont

std::string XBMCAddon::xbmcgui::ControlButton::strFont

§ strText

std::string XBMCAddon::xbmcgui::ControlButton::strText

§ strText2

std::string XBMCAddon::xbmcgui::ControlButton::strText2

§ strTextureFocus

std::string XBMCAddon::xbmcgui::ControlButton::strTextureFocus

§ strTextureNoFocus

std::string XBMCAddon::xbmcgui::ControlButton::strTextureNoFocus

§ textColor

UTILS::Color XBMCAddon::xbmcgui::ControlButton::textColor

§ textOffsetX

int XBMCAddon::xbmcgui::ControlButton::textOffsetX = 0

§ textOffsetY

int XBMCAddon::xbmcgui::ControlButton::textOffsetY = 0

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