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.
More...
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()
kodi::gui::controls::CEdit::CEdit |
( |
CWindow * | window, |
|
|
int | controlId ) |
|
inline |
Construct a new control.
- Parameters
-
[in] | window | Related window control class |
[in] | controlId | Used skin xml control id |
◆ GetCursorPosition()
unsigned int kodi::gui::controls::CEdit::GetCursorPosition |
( |
| ) |
|
|
inline |
To get current cursor position on text field.
- Returns
- The current cursor position
◆ GetLabel()
std::string kodi::gui::controls::CEdit::GetLabel |
( |
| ) |
const |
|
inline |
Returns the text heading for this edit control.
- Returns
- Heading text
◆ GetText()
std::string kodi::gui::controls::CEdit::GetText |
( |
| ) |
const |
|
inline |
Returns the text value for this edit control.
- Returns
- Text value of control
◆ SetCursorPosition()
void kodi::gui::controls::CEdit::SetCursorPosition |
( |
unsigned int | position | ) |
|
|
inline |
Set the cursor position on text.
- Parameters
-
[in] | position | The position to set |
◆ SetEnabled()
void kodi::gui::controls::CEdit::SetEnabled |
( |
bool | enabled | ) |
|
|
inline |
Set's the control's enabled/disabled state.
- Parameters
-
[in] | enabled | If true enabled, otherwise disabled |
◆ SetInputType()
◆ SetLabel()
void kodi::gui::controls::CEdit::SetLabel |
( |
const std::string & | label | ) |
|
|
inline |
To set the text string on edit control.
- Parameters
-
◆ SetText()
void kodi::gui::controls::CEdit::SetText |
( |
const std::string & | text | ) |
|
|
inline |
Set's text heading for this edit control.
- Parameters
-
[in] | text | string or unicode - text string. |
◆ SetVisible()
void kodi::gui::controls::CEdit::SetVisible |
( |
bool | visible | ) |
|
|
inline |
Set the control on window to visible.
- Parameters
-
[in] | visible | If true visible, otherwise hidden |
◆ ~CEdit()
kodi::gui::controls::CEdit::~CEdit |
( |
| ) |
|
|
overridedefault |