Class: SDL::RWops

Inherits:
NiceFFI::Struct
  • Object
show all
Defined in:
lib/ruby-sdl-ffi/sdl/rwops.rb

Instance Method Summary collapse

Instance Method Details

#closeObject



105
106
107
# File 'lib/ruby-sdl-ffi/sdl/rwops.rb', line 105

def close
  @close
end

#close=(cb) ⇒ Object



100
101
102
103
# File 'lib/ruby-sdl-ffi/sdl/rwops.rb', line 100

def close=(cb)
  @close = cb
  self[:close] = @close
end

#readObject



87
88
89
# File 'lib/ruby-sdl-ffi/sdl/rwops.rb', line 87

def read
  @read
end

#read=(cb) ⇒ Object



82
83
84
85
# File 'lib/ruby-sdl-ffi/sdl/rwops.rb', line 82

def read=(cb)
  @read = cb
  self[:read] = @read
end

#seekObject



78
79
80
# File 'lib/ruby-sdl-ffi/sdl/rwops.rb', line 78

def seek
  @seek
end

#seek=(cb) ⇒ Object



73
74
75
76
# File 'lib/ruby-sdl-ffi/sdl/rwops.rb', line 73

def seek=(cb)
  @seek = cb
  self[:seek] = @seek
end

#writeObject



96
97
98
# File 'lib/ruby-sdl-ffi/sdl/rwops.rb', line 96

def write
  @write
end

#write=(cb) ⇒ Object



91
92
93
94
# File 'lib/ruby-sdl-ffi/sdl/rwops.rb', line 91

def write=(cb)
  @write = cb
  self[:write] = @write
end