Class: SDL2::TypedPointer
Direct Known Subclasses
FloatPointer, IntStruct, UInt16Struct, UInt32Struct, UInt8Struct
Class Method Summary collapse
Instance Method Summary collapse
- #value ⇒ Object (also: #deref)
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
#value ⇒ Object Also known as: deref
177 178 179 |
# File 'lib/sdl2.rb', line 177 def value self[value] end |