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



376
377
378
# File 'lib/libtcod/bindings.rb', line 376

def name
  @name.get_string(0)
end

#name=(str) ⇒ Object



372
373
374
375
# File 'lib/libtcod/bindings.rb', line 372

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