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
#==, #initialize, #inspect, release
Constructor Details
This class inherits a constructor from SDL2::Struct
Class Method Details
.type(kind) ⇒ Object
170 171 172 |
# File 'lib/sdl2.rb', line 170 def self.type(kind) layout :value, kind end |
Instance Method Details
#value ⇒ Object Also known as: deref
174 175 176 |
# File 'lib/sdl2.rb', line 174 def value self[value] end |