Class: VBox::Mouse

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

Instance Attribute Summary

Attributes inherited from Base

#ref

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 Method Details

#absolute_supportedObject

Attributes



6
7
8
# File 'lib/virtualbox/classes/mouse.rb', line 6

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

#event_sourceObject



18
19
20
21
# File 'lib/virtualbox/classes/mouse.rb', line 18

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

#needs_host_cursorObject



14
15
16
# File 'lib/virtualbox/classes/mouse.rb', line 14

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

#put_mouse_event(args = {}) ⇒ Object

Methods



25
26
27
28
# File 'lib/virtualbox/classes/mouse.rb', line 25

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



30
31
32
33
# File 'lib/virtualbox/classes/mouse.rb', line 30

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

#relative_supportedObject



10
11
12
# File 'lib/virtualbox/classes/mouse.rb', line 10

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