Method: XDo::Window#location
- Defined in:
- lib/x_do/window.rb
#location ⇒ Object
- x, y
-
array containing the window’s coordinates.
38 39 40 41 42 43 44 |
# File 'lib/x_do/window.rb', line 38 def location x_pointer = FFI::MemoryPointer.new :int, 1 y_pointer = FFI::MemoryPointer.new :int, 1 XDo::FFILib.xdo_get_window_location @_xdo_pointer, @_window, x_pointer, y_pointer, nil [x_pointer.read_int, y_pointer.read_int] end |