Magnum::Platform::Sdl2Application::ExitEvent class

Exit event.

Constructors, destructors, conversion operators

ExitEvent(const ExitEvent&) deleted
Copying is not allowed.
ExitEvent(ExitEvent&&) deleted
Moving is not allowed.

Public functions

auto operator=(const ExitEvent&) -> ExitEvent& deleted
Copying is not allowed.
auto operator=(ExitEvent&&) -> ExitEvent& deleted
Moving is not allowed.
auto isAccepted() const -> bool
Whether the event is accepted.
void setAccepted(bool accepted = true)
Set event as accepted.

Function documentation

void Magnum::Platform::Sdl2Application::ExitEvent::setAccepted(bool accepted = true)

Set event as accepted.

If the event is ignored (i.e., not set as accepted) in exitEvent(), the application won't exit. Default implementation of exitEvent() accepts the event.