| 
    Kodi Documentation 22.0
    
   Kodi is an open source media player and entertainment hub. 
   | 
 
Classes | |
| class | XBMCAddon::xbmcgui::ControlEdit | 
Functions | |
| XBMCAddon::xbmcgui::ControlEdit::setLabel (...) | |
 
 | |
| XBMCAddon::xbmcgui::ControlEdit::getLabel () | |
 
 | |
| XBMCAddon::xbmcgui::ControlEdit::setText (...) | |
 
 | |
| XBMCAddon::xbmcgui::ControlEdit::getText () | |
 
 | |
| XBMCAddon::xbmcgui::ControlEdit::setType (...) | |
 
 | |
Used as an input control for the osd keyboard and other input fields.
Class:  ControlEdit(x, y, width, height, label[, font, textColor,
///              disabledColor, alignment, focusTexture, noFocusTexture]) The edit control allows a user to input text in Kodi. You can choose the font, size, colour, location and header of the text to be displayed.
| x | integer - x coordinate of control. | ||||||||||||||||||||||||
| y | integer - y coordinate of control. | ||||||||||||||||||||||||
| width | integer - width of control. | ||||||||||||||||||||||||
| height | integer - height of control. | ||||||||||||||||||||||||
| label | string or unicode - text string. | ||||||||||||||||||||||||
| font | [opt] string - font used for label text. (e.g. 'font13') | ||||||||||||||||||||||||
| textColor | [opt] hexstring - color of enabled label's label. (e.g. '0xFFFFFFFF') | ||||||||||||||||||||||||
| disabledColor | [opt] hexstring - color of disabled label's label. (e.g. '0xFFFF3300') | ||||||||||||||||||||||||
| alignment | [opt] integer - alignment of label
  | ||||||||||||||||||||||||
| focusTexture | [opt] string - filename for focus texture. | ||||||||||||||||||||||||
| noFocusTexture | [opt] string - filename for no focus texture. | 
Example:
| String XBMCAddon::xbmcgui::ControlEdit::getLabel | ( | ) | 
Function:  getLabel() Example:
| String XBMCAddon::xbmcgui::ControlEdit::getText | ( | ) | 
Function:  getText() Example:
| void XBMCAddon::xbmcgui::ControlEdit::setLabel | ( | ... | ) | 
Function:  setLabel(label[, font, textColor, disabledColor, shadowColor, focusedColor, label2]) | label | string or unicode - text string. | 
| font | [opt] string - font used for label text. (e.g. 'font13') | 
| textColor | [opt] hexstring - color of enabled label's label. (e.g. '0xFFFFFFFF') | 
| disabledColor | [opt] hexstring - color of disabled label's label. (e.g. '0xFFFF3300') | 
| shadowColor | [opt] hexstring - color of button's label's shadow. (e.g. '0xFF000000') | 
| focusedColor | [opt] hexstring - color of focused button's label. (e.g. '0xFF00FFFF') | 
| label2 | [opt] string or unicode - text string. | 
Example:
| void XBMCAddon::xbmcgui::ControlEdit::setText | ( | ... | ) | 
Function:  setText(value) | value | string or unicode - text string. | 
Example:
| void XBMCAddon::xbmcgui::ControlEdit::setType | ( | ... | ) | 
Function:  setType(type, heading) | type | integer - type of the edit control. 
  | ||||||||||||||||||||
| heading | string or unicode - heading that will be used for to numeric or keyboard dialog when the edit control is clicked. | 
Example: