Class: SDL2::Event::Abstract

Inherits:
Struct
  • Object
show all
Defined in:
lib/sdl2/event/abstract.rb

Constant Summary collapse

SHARED =
[:type, :event_type, :timestamp, :uint32]

Instance Method Summary collapse

Methods inherited from Struct

#==, cast, create, #free, #initialize, release, #to_s, #update_members

Methods included from StructHelper

#member_readers, #member_writers

Constructor Details

This class inherits a constructor from SDL2::Struct

Instance Method Details

#to_eventObject



6
7
8
# File 'lib/sdl2/event/abstract.rb', line 6

def to_event
  SDL2::Event.new(self.pointer)
end