class
TextInputEventText input event.
Constructors, destructors, conversion operators
- TextInputEvent(const TextInputEvent&) deleted
- Copying is not allowed.
- TextInputEvent(TextInputEvent&&) deleted
- Moving is not allowed.
Public functions
- auto operator=(const TextInputEvent&) -> TextInputEvent& deleted
- Copying is not allowed.
- auto operator=(TextInputEvent&&) -> TextInputEvent& deleted
- Moving is not allowed.
- auto isAccepted() const -> bool
- Whether the event is accepted.
- void setAccepted(bool accepted = true)
- Set event as accepted.
-
auto text() const -> Containers::
StringView - Input text.
- auto event() const -> const EmscriptenKeyboardEvent&
- Underlying Emscripten event.
Function documentation
void Magnum:: Platform:: EmscriptenApplication:: TextInputEvent:: setAccepted(bool accepted = true)
Set event as accepted.
If the event is ignored (i.e., not set as accepted), it is propagated to other elements on the page. By default each event is ignored and thus propagated.
Containers:: StringView Magnum:: Platform:: EmscriptenApplication:: TextInputEvent:: text() const
Input text.
The returned view is in UTF-8 and is always Containers::