Class: Roebe::Mouse

Inherits:
Object show all
Defined in:
lib/roebe/mouse/libffi_is_not_available.rb

Overview

Roebe::Mouse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeMouse

#

initialize

#


14
15
16
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 14

def initialize
  @has_libffi = false
end

Class Method Details

.click_at(x = 8, y = 8) ⇒ Object

#

Roebe::Mouse.click_at

#

Raises:

  • (NotImplementedError)


45
46
47
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 45

def self.click_at(x = 8, y = 8)
  raise NotImplementedError
end

Instance Method Details

#click(x, y, button = 1, n = 1) ⇒ Object

#

click

#


35
36
37
38
39
40
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 35

def click(x, y, button = 1, n = 1)
  n.times {
    press   x, y, button
    release x, y, button
  }
end

#move(x, y) ⇒ Object

#

move

#

Raises:

  • (NotImplementedError)


52
53
54
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 52

def move(x, y)
  raise NotImplementedError
end

#positionObject

#

position

#

Raises:

  • (NotImplementedError)


59
60
61
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 59

def position
  raise NotImplementedError
end

#press(x, y, button = 1) ⇒ Object

#

press

#

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 21

def press(x, y, button = 1)
  raise NotImplementedError
end

#release(x, y, button = 1) ⇒ Object

#

release

#

Raises:

  • (NotImplementedError)


28
29
30
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 28

def release(x, y, button = 1)
  raise NotImplementedError
end

#screen_sizeObject

#

screen_size

#

Raises:

  • (NotImplementedError)


66
67
68
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 66

def screen_size
  raise NotImplementedError
end