Class: SDL2::Event::Quit

Inherits:
SDL2::Event show all
Defined in:
event.c,
event.c

Overview

This class represents the quit requested event.

This event occurs when a user try to close window, command-Q on OS X, or any other quit request by a user. Normally if your application receive this event, the application should exit. But the application can query something to the users like “save”, or ignore it.

Instance Attribute Summary

Attributes inherited from SDL2::Event

#timestamp, #type

Method Summary

Methods inherited from SDL2::Event

enable=, enabled?, #inspect, poll, #window