Class: SDL2::TypedPointer
- Defined in:
- lib/sdl2/typed_pointer.rb,
lib/sdl2/pixels.rb,
lib/sdl2/render.rb
Overview
BadQuanta says: “Typed pointes let you get to the value.”
Direct Known Subclasses
BlendMode, Float, Int, PixelFormat, Pointer, TextureAccess, UInt16, UInt32, UInt8, TypedPointer::EventFilter
Defined Under Namespace
Classes: BlendMode, EventFilter, Float, Int, PixelFormat, Pointer, TextureAccess, UInt16, UInt32, UInt8
Class Method Summary collapse
Instance Method Summary collapse
- #value ⇒ Object (also: #deref)
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
Class Method Details
.type(kind) ⇒ Object
5 6 7 |
# File 'lib/sdl2/typed_pointer.rb', line 5 def self.type(kind) layout :value, kind end |
Instance Method Details
#value ⇒ Object Also known as: deref
9 10 11 |
# File 'lib/sdl2/typed_pointer.rb', line 9 def value self[:value] end |