11#include "../../c-api/gui/controls/text_box.h"
54 m_controlHandle = m_interface->kodi_gui->window->get_control_text_box(
55 m_interface->kodiBase, m_Window->GetControlHandle(), controlId);
58 "kodi::gui::controls::CTextBox can't create control class from Kodi !!!");
77 m_interface->kodi_gui->control_text_box->set_visible(m_interface->kodiBase, m_controlHandle,
86 void Reset() { m_interface->kodi_gui->control_text_box->reset(m_controlHandle, m_controlHandle); }
97 m_interface->kodi_gui->control_text_box->set_text(m_interface->kodiBase, m_controlHandle,
112 m_interface->kodi_gui->control_text_box->get_text(m_interface->kodiBase, m_controlHandle);
115 if (std::strlen(ret))
117 m_interface->free_string(m_interface->kodiBase, ret);
131 m_interface->kodi_gui->control_text_box->scroll(m_interface->kodiBase, m_controlHandle,
154 m_interface->kodi_gui->control_text_box->set_auto_scrolling(
155 m_interface->kodiBase, m_controlHandle, delay, time, repeat);
Definition: ListItem.h:26
@ ADDON_LOG_FATAL
4 : To notify fatal unrecoverable errors, which can may also indicate upcoming crashes.
Definition: addon_base.h:164
void Scroll(unsigned int position)
To scroll text on other position.
Definition: TextBox.h:129
std::string GetText() const
Get the used text from control.
Definition: TextBox.h:108
void Reset()
To reset box an remove all the text.
Definition: TextBox.h:86
void SetVisible(bool visible)
Set the control on window to visible.
Definition: TextBox.h:75
void SetText(const std::string &text)
To set the text on box.
Definition: TextBox.h:95
~CTextBox() override=default
Destructor.
void SetAutoScrolling(int delay, int time, int repeat)
To set automatic scrolling of textbox.
Definition: TextBox.h:152
CTextBox(CWindow *window, int controlId)
Construct a new control.
Definition: TextBox.h:52
void ATTRIBUTE_HIDDEN Log(const AddonLog loglevel, const char *format,...)
Add a message to Kodi's log.
Definition: AddonBase.h:749