Class: SDL2::TypedPointer

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

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Struct

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

Methods included from StructHelper

#member_readers, #member_writers

Constructor Details

This class inherits a constructor from SDL2::Struct

Class Method Details

.type(kind) ⇒ Object



210
211
212
# File 'lib/sdl2.rb', line 210

def self.type(kind)
  layout :value, kind
end

Instance Method Details

#valueObject Also known as: deref



214
215
216
# File 'lib/sdl2.rb', line 214

def value
  self[value]
end