71 void updateHintVisibility();
183 virtual void onPointerOut(
int pointerId,
float pointerX,
float pointerY);
187 virtual void onPointerUp(
int pointerId,
float pointerX,
float pointerY);
This is the base object class from which other GUIs inherit. It's an empty GUI and can contain child ...
Definition CGUIElement.h:51
This is the object class for displaying a text.
Definition CGUIText.h:60
CUIBase(CUIContainer *container, CGUIElement *element)
Constructor.
Top-level UI container and event router.
Definition CUIContainer.h:59
virtual void onKeyEvent(const SEvent &event)
Keyboard event handler for navigation and editing.
bool isPassword()
Returns true when the control is password.
virtual void onLostFocus()
Called when element loses focus.
std::function< void(CUIBase *)> OnTextChanged
Callback fired when the text content changes.
Definition CUITextBox.h:81
void setPassword(bool b)
Enable or disable user editing password.
void setText(const wchar_t *text)
Set the text content (wide string).
const char * getText()
Get the current text (UTF-8 / narrow C string). Returns empty string if no m_text.
void setHintText(const wchar_t *text)
Set the hint text content (wide string).
virtual void onPointerUp(int pointerId, float pointerX, float pointerY)
Called when pointer is released over the element.
CGUIText * getTextGUI()
Get the underlying CGUIText used by this text box.
Definition CUITextBox.h:113
virtual void onPointerDown(int pointerId, float pointerX, float pointerY)
Called when pointer is pressed down on the element.
bool isEditable()
Returns true when the control is editable.
Definition CUITextBox.h:158
int getMaxLength()
Get maximum allowed characters.
Definition CUITextBox.h:176
CUITextBox(CUIContainer *container, CGUIElement *element)
Create a CUITextBox by locating child elements named "Background", "Text", and "Hint".
virtual void onPointerMove(int pointerId, float pointerX, float pointerY)
Called when pointer moves while over or dragging the element.
const wchar_t * getTextW()
Get the current text (wide string). Returns empty wide string if no m_text.
void setMaxLength(int l)
Set maximum allowed characters that can be inserted.
Definition CUITextBox.h:170
virtual void onFocus()
Called when element receives focus.
virtual void onPointerHover(int pointerId, float pointerX, float pointerY)
Called when pointer enters or hovers over the element.
void setEditable(bool b)
Enable or disable user editing.
Definition CUITextBox.h:152
CGUIElement * getBackground()
Get the background GUI element (may be null).
Definition CUITextBox.h:107
void setHintText(const char *text)
Set the hint text content (UTF-8 / narrow string).
void setText(const char *text)
Set the text content (UTF-8 / narrow string).
int getTextLength()
Get the current text length in characters.
CUITextBox(CUIContainer *container, CGUIElement *element, CGUIElement *background, CGUIText *text, CGUIText *hint)
Create a CUITextBox with explicitly supplied background and text elements.
virtual void onPointerOut(int pointerId, float pointerX, float pointerY)
Called when pointer leaves the element.
Classes used to build the User Interface (UI).
Definition CAlphaMotion.h:32
Everything in the Skylicht Engine. You can start by looking at the topics.
Definition AudioDebugLog.h:29
SEvents hold information about an event. See irr::IEventReceiver for details on event handling.
Definition IEventReceiver.h:273