class
#include <Magnum/Platform/Sdl2Application.h>
TextEditingEvent Text editing event.
Constructors, destructors, conversion operators
- TextEditingEvent(const TextEditingEvent&) deleted
- Copying is not allowed.
- TextEditingEvent(TextEditingEvent&&) deleted
- Moving is not allowed.
Public functions
- auto operator=(const TextEditingEvent&) -> TextEditingEvent& deleted
- Copying is not allowed.
- auto operator=(TextEditingEvent&&) -> TextEditingEvent& 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 start() const -> Int
- Location to begin editing from.
- auto length() const -> Int
- Number of characters to edit from the start point.
- auto event() const -> const SDL_Event&
- Underlying SDL event.
Function documentation
void Magnum:: Platform:: Sdl2Application:: TextEditingEvent:: setAccepted(bool accepted = true)
Set event as accepted.
If the event is ignored (i.e., not set as accepted), it might be propagated elsewhere, for example to another screen when using ScreenedApplication. By default is each event ignored and thus propagated.
Containers:: StringView Magnum:: Platform:: Sdl2Application:: TextEditingEvent:: text() const
Input text.
The returned view is in UTF-8 and is always Containers::
const SDL_Event& Magnum:: Platform:: Sdl2Application:: TextEditingEvent:: event() const
Underlying SDL event.
Of type SDL_TEXTEDITING
.