Class: VBox::Mouse

Inherits:
Base
  • Object
show all
Defined in:
lib/virtualbox/classes/mouse.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#_this, #delete!, #ensure_hash, #initialize, #vbox_class

Constructor Details

This class inherits a constructor from VBox::Base

Instance Attribute Details

#refObject (readonly)

Returns the value of attribute ref.



4
5
6
# File 'lib/virtualbox/classes/mouse.rb', line 4

def ref
  @ref
end

Instance Method Details

#absolute_supportedObject

Attributes



8
9
10
# File 'lib/virtualbox/classes/mouse.rb', line 8

def absolute_supported
  VBox::WebService.send_request(:i_mouse_get_absolute_supported, _this)
end

#event_sourceObject



20
21
22
23
# File 'lib/virtualbox/classes/mouse.rb', line 20

def event_source
  event_source = VBox::WebService.send_request(:i_mouse_get_event_source, _this)
  VBox::EventSource.new(event_source)
end

#needs_host_cursorObject



16
17
18
# File 'lib/virtualbox/classes/mouse.rb', line 16

def needs_host_cursor
  VBox::WebService.send_request(:i_mouse_get_needs_host_cursor, _this)
end

#put_mouse_event(args = {}) ⇒ Object

Methods



27
28
29
30
# File 'lib/virtualbox/classes/mouse.rb', line 27

def put_mouse_event(args={})
  ensure_hash(args)
  VBox::WebService.send_request(:i_mouse_put_mouse_event, _this)
end

#put_mouse_event_absolute(args = {}) ⇒ Object



32
33
34
35
# File 'lib/virtualbox/classes/mouse.rb', line 32

def put_mouse_event_absolute(args={})
  ensure_hash(args)
  VBox::WebService.send_request(:i_mouse_put_mouse_event_absolute, _this)
end

#relative_supportedObject



12
13
14
# File 'lib/virtualbox/classes/mouse.rb', line 12

def relative_supported
  VBox::WebService.send_request(:i_mouse_get_relative_supported, _this)
end