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, #initialize, release

Methods included from StructHelper

#member_readers, #member_writers

Constructor Details

This class inherits a constructor from SDL2::Struct

Class Method Details

.type(kind) ⇒ Object



173
174
175
# File 'lib/sdl2.rb', line 173

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

Instance Method Details

#valueObject Also known as: deref



177
178
179
# File 'lib/sdl2.rb', line 177

def value
  self[value]
end