Magnum::Platform::Sdl2Application::TextEditingEvent class

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::ArrayView<const char>
Input text in UTF-8.
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.

const SDL_Event& Magnum::Platform::Sdl2Application::TextEditingEvent::event() const

Underlying SDL event.