class
#include <Magnum/Platform/Sdl2Application.h>
ExitEvent Exit event.
Constructors, destructors, conversion operators
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.
- auto event() const -> const SDL_Event&
- Underlying SDL event.
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.
const SDL_Event& Magnum:: Platform:: Sdl2Application:: ExitEvent:: event() const
Underlying SDL event.
Of type SDL_QUIT
.