Module: Hyalite::DOM::Event::MouseEventInterface
- Included in:
- DragEvent, MouseEvent
- Defined in:
- lib/hyalite/dom/event/mouse_event_interface.rb
Instance Method Summary collapse
- #alt_key ⇒ Object
- #button ⇒ Object
- #buttons ⇒ Object
- #client ⇒ Object
- #ctrl_key ⇒ Object
- #init_mouse_event ⇒ Object
- #meta_key ⇒ Object
- #modifire_state ⇒ Object
- #movement ⇒ Object
- #offset ⇒ Object
- #page ⇒ Object
- #region ⇒ Object
- #related_target ⇒ Object
- #screen ⇒ Object
- #shift_key ⇒ Object
Instance Method Details
#alt_key ⇒ Object
50 51 52 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 50 def alt_key `#@native.altKey` end |
#button ⇒ Object
58 59 60 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 58 def `#@native.button` end |
#buttons ⇒ Object
62 63 64 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 62 def `#@native.buttons` end |
#client ⇒ Object
22 23 24 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 22 def client @client ||= AliasPosition.new(@native, :client) end |
#ctrl_key ⇒ Object
46 47 48 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 46 def ctrl_key `#@native.ctrlKey` end |
#init_mouse_event ⇒ Object
78 79 80 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 78 def init_mouse_event `#@native.initMouseEvent()` end |
#meta_key ⇒ Object
54 55 56 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 54 def `#@native.metaKey` end |
#modifire_state ⇒ Object
74 75 76 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 74 def modifire_state `#@native.getModifierState()` end |
#movement ⇒ Object
26 27 28 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 26 def movement @movement ||= AliasPosition.new(@native, :movement) end |
#offset ⇒ Object
30 31 32 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 30 def offset @offset ||= AliasPosition.new(@native, :offset) end |
#page ⇒ Object
34 35 36 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 34 def page @page ||= AliasPosition.new(@native, :page) end |
#region ⇒ Object
66 67 68 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 66 def region `#@native.region` end |
#related_target ⇒ Object
70 71 72 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 70 def Node.create(`#@native.relatedTarget`) end |
#screen ⇒ Object
38 39 40 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 38 def screen @screen ||= AliasPosition.new(@native, :screen) end |
#shift_key ⇒ Object
42 43 44 |
# File 'lib/hyalite/dom/event/mouse_event_interface.rb', line 42 def shift_key `#@native.shiftKey` end |