Entry
Single-line text input view.
| Header | #include "nativeui/entry.h" |
| Namespace | namespace nu |
| Type | class (RefCounted) |
| Inherits | View |
Constructors
Entry(Entry::Type type)
Create a new Entry with type.
By default type is Normal.
Parameters
Entry::Typetype
Class properties
const char* kClassName
The class name of this view.
Methods
void SetText(const std::string& text)
Change the text in the view.
Parameters
const std::string&text
std::string GetText() const
Return currently displayed text.
Return
std::stringEvents
void on_text_change(Entry* self)
Emitted when user has changed text.
Parameters
Entry*self
Preventable
No.void on_activate(Entry* self)
Emitted when user has pressed Enter in the view.
Parameters
Entry*self