Class: kodi::gui::controls::CEdit
Editable window text control used as an input control for the osd keyboard and other input fields
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.
It has the header #include <kodi/gui/controls/Edit.h> be included to enjoy it.
Here you find the needed skin partfor a edit control.
- Note
- The call of the control is only possible from the corresponding window as its class and identification number is required.
◆ CEdit()
Construct a new control.
- Parameters
-
[in] | window | Related window control class |
[in] | controlId | Used skin xml control id |
◆ ~CEdit()
◆ SetVisible()
void SetVisible |
( |
bool | visible | ) |
|
|
inline |
Set the control on window to visible.
- Parameters
-
[in] | visible | If true visible, otherwise hidden |
◆ SetEnabled()
void SetEnabled |
( |
bool | enabled | ) |
|
|
inline |
Set's the control's enabled/disabled state.
- Parameters
-
[in] | enabled | If true enabled, otherwise disabled |
◆ SetLabel()
void SetLabel |
( |
const std::string & | label | ) |
|
|
inline |
To set the text string on edit control.
- Parameters
-
◆ GetLabel()
std::string GetLabel |
( |
| ) |
const |
|
inline |
Returns the text heading for this edit control.
- Returns
- Heading text
◆ SetText()
void SetText |
( |
const std::string & | text | ) |
|
|
inline |
Set's text heading for this edit control.
- Parameters
-
[in] | text | string or unicode - text string. |
◆ GetText()
std::string GetText |
( |
| ) |
const |
|
inline |
Returns the text value for this edit control.
- Returns
- Text value of control
◆ SetCursorPosition()
void SetCursorPosition |
( |
unsigned int | position | ) |
|
|
inline |
Set the cursor position on text.
- Parameters
-
[in] | position | The position to set |
◆ GetCursorPosition()
unsigned int GetCursorPosition |
( |
| ) |
|
|
inline |
To get current cursor position on text field.
- Returns
- The current cursor position
◆ SetInputType()