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 constexpr
Whether the event is accepted.
void setAccepted(bool accepted = true)
Set event as accepted.
auto text() const -> Containers::ArrayView<const char> constexpr
Input text in UTF-8.
auto start() const -> Int constexpr
Location to begin editing from.
auto length() const -> Int constexpr
Number of characters to edit from the start point.

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.