abstract struct SDL::Event

Direct Known Subclasses

Defined in:

events.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(event : LibSDL::Event) #

[View source]

Class Method Detail

def self.enable(type : Type) : Nil #

Enables an event type. They will be pushed to the event queue.


[View source]
def self.enabled?(type : Type) : Nil #

Returns true if an event type is enabled.


[View source]
def self.ignore(type : Type) : Nil #

Ignores an event type. They will no longer be pushed to the queue event.


[View source]
def self.ignored?(type : Type) #

Returns true if an event type is ignored.


[View source]
def self.poll #

Tries to pull an event from the event queue; returns nil immediately if the queue is empty.


[View source]
def self.wait(timeout = nil) #

Tries to pull an event from the event queue; blocks until an event is added to the queue, indefinitely, or for a given timeout.


[View source]

Instance Method Detail

def timestamp #

[View source]
def type #

[View source]