Class: TCOD::TCODStructIntT

Inherits:
MethodStruct show all
Defined in:
lib/libtcod/bindings.rb

Instance Method Summary collapse

Methods inherited from MethodStruct

layout, old_layout

Instance Method Details

#nameObject



393
394
395
# File 'lib/libtcod/bindings.rb', line 393

def name
  @name.get_string(0)
end

#name=(str) ⇒ Object



389
390
391
392
# File 'lib/libtcod/bindings.rb', line 389

def name=(str)
  @name = FFI::MemoryPointer.from_string(str)
  self[:name] = @name
end