Class: Roebe::Mouse
- Defined in:
- lib/roebe/mouse/libffi_is_not_available.rb
Overview
Roebe::Mouse
Class Method Summary collapse
-
.click_at(x = 8, y = 8) ⇒ Object
# === Roebe::Mouse.click_at ========================================================================= #.
Instance Method Summary collapse
-
#click(x, y, button = 1, n = 1) ⇒ Object
# === click ========================================================================= #.
-
#initialize ⇒ Mouse
constructor
# === initialize ========================================================================= #.
-
#move(x, y) ⇒ Object
# === move ========================================================================= #.
-
#position ⇒ Object
# === position ========================================================================= #.
-
#press(x, y, button = 1) ⇒ Object
# === press ========================================================================= #.
-
#release(x, y, button = 1) ⇒ Object
# === release ========================================================================= #.
-
#screen_size ⇒ Object
# === screen_size ========================================================================= #.
Constructor Details
#initialize ⇒ Mouse
#
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
#
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, = 1, n = 1) n.times { press x, y, release x, y, } end |
#move(x, y) ⇒ Object
#
move
#
52 53 54 |
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 52 def move(x, y) raise NotImplementedError end |
#position ⇒ Object
#
position
#
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
#
21 22 23 |
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 21 def press(x, y, = 1) raise NotImplementedError end |
#release(x, y, button = 1) ⇒ Object
#
release
#
28 29 30 |
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 28 def release(x, y, = 1) raise NotImplementedError end |
#screen_size ⇒ Object
#
screen_size
#
66 67 68 |
# File 'lib/roebe/mouse/libffi_is_not_available.rb', line 66 def screen_size raise NotImplementedError end |