Class: Browser::Event::Mouse::Definition

Inherits:
UI::Definition show all
Defined in:
opal/browser/event/mouse.rb

Defined Under Namespace

Classes: Ancestor, Client, Layer, Offset, Page, Screen

Instance Method Summary collapse

Methods inherited from UI::Definition

#detail=, #view=

Methods inherited from Definition

#bubbles=, #cancelable=

Instance Method Details

#alt!Object



89
90
91
# File 'opal/browser/event/mouse.rb', line 89

def alt!
  `#@native.altKey = true`
end

#ancestorObject



125
126
127
# File 'opal/browser/event/mouse.rb', line 125

def ancestor
  Ancestor.new(@native)
end

#button=(value) ⇒ Object



101
102
103
# File 'opal/browser/event/mouse.rb', line 101

def button=(value)
  `#@native.button = #{value}`
end

#clientObject



105
106
107
# File 'opal/browser/event/mouse.rb', line 105

def client
  Client.new(@native)
end

#ctrl!Object



93
94
95
# File 'opal/browser/event/mouse.rb', line 93

def ctrl!
  `#@native.ctrlKey = true`
end

#from=(elem) ⇒ Object



133
134
135
# File 'opal/browser/event/mouse.rb', line 133

def from=(elem)
  `#@native.fromElement = #{Native.try_convert(elem)}`
end

#layerObject



109
110
111
# File 'opal/browser/event/mouse.rb', line 109

def layer
  Layer.new(@native)
end

#meta!Object



97
98
99
# File 'opal/browser/event/mouse.rb', line 97

def meta!
  `#@native.metaKey = true`
end

#offsetObject



113
114
115
# File 'opal/browser/event/mouse.rb', line 113

def offset
  Offset.new(@native)
end

#pageObject



117
118
119
# File 'opal/browser/event/mouse.rb', line 117

def page
  Page.new(@native)
end

#related=(elem) ⇒ Object



129
130
131
# File 'opal/browser/event/mouse.rb', line 129

def related=(elem)
  `#@native.relatedTarget = #{Native.try_convert(elem)}`
end

#screenObject



121
122
123
# File 'opal/browser/event/mouse.rb', line 121

def screen
  Screen.new(@native)
end

#to=(elem) ⇒ Object



137
138
139
# File 'opal/browser/event/mouse.rb', line 137

def to=(elem)
  `#@native.toElement = #{Native.try_convert(elem)}`
end

#x=(value) ⇒ Object



81
82
83
# File 'opal/browser/event/mouse.rb', line 81

def x=(value)
  `#@native.screenX = #{value}`
end

#y=(value) ⇒ Object



85
86
87
# File 'opal/browser/event/mouse.rb', line 85

def y=(value)
  `#@native.screenY = #{value}`
end