Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Class: kodi::gui::controls::CTextBox
Functions | |
kodi::gui::controls::CTextBox::CTextBox (CWindow *window, int controlId) | |
Construct a new control. | |
kodi::gui::controls::CTextBox::~CTextBox () override=default | |
Destructor. | |
void | kodi::gui::controls::CTextBox::SetVisible (bool visible) |
Set the control on window to visible. | |
void | kodi::gui::controls::CTextBox::Reset () |
To reset box an remove all the text. | |
void | kodi::gui::controls::CTextBox::SetText (const std::string &text) |
To set the text on box. | |
std::string | kodi::gui::controls::CTextBox::GetText () const |
Get the used text from control. | |
void | kodi::gui::controls::CTextBox::Scroll (unsigned int position) |
To scroll text on other position. | |
void | kodi::gui::controls::CTextBox::SetAutoScrolling (int delay, int time, int repeat) |
To set automatic scrolling of textbox. | |
Class: kodi::gui::controls::CTextBox
It corresponds to the representation which is also to be seen on the CDialogTextViewer.
It has the header #include <kodi/gui/controls/TextBox.h> be included to enjoy it.
Here you find the needed skin part for a textbox control.
Construct a new control.
[in] | window | related window control class |
[in] | controlId | Used skin xml control id |
|
inline |
Get the used text from control.
|
inline |
To reset box an remove all the text.
To scroll text on other position.
[in] | position | The line position to scroll to |
To set automatic scrolling of textbox.
Specifies the timing and conditions of any autoscrolling this textbox should have. Times are in milliseconds. The content is delayed for the given delay, then scrolls at a rate of one line per time interval until the end. If the repeat tag is present, it then delays for the repeat time, fades out over 1 second, and repeats. It does not wrap or reset to the top at the end of the scroll.
[in] | delay | Content delay |
[in] | time | One line per time interval |
[in] | repeat | Delays with given time, fades out over 1 second, and repeats |
|
inline |
To set the text on box.
[in] | text | Text to show |
Set the control on window to visible.
[in] | visible | If true visible, otherwise hidden |
|
overridedefault |
Destructor.