Class: Console::Windows::Coord

Inherits:
FFI::Struct
  • Object
show all
Defined in:
lib/console/platform/windows.rb

Overview

FFI structure used to get/set buffer co-ordinates

Instance Method Summary collapse

Constructor Details

#initialize(x, y) ⇒ Coord

Returns a new instance of Coord.



37
38
39
40
# File 'lib/console/platform/windows.rb', line 37

def initialize(x, y)
    self[:x] = x
    self[:y] = y
end