Class: Browser::Event::Mouse::Definition
Defined Under Namespace
Classes: Ancestor, Client, Layer, Offset, Page, Screen
Instance Method Summary
collapse
#detail=, #view=
Methods inherited from Definition
#bubbles=, #cancelable=
Instance Method Details
89
90
91
|
# File 'opal/browser/event/mouse.rb', line 89
def alt!
`#@native.altKey = true`
end
|
125
126
127
|
# File 'opal/browser/event/mouse.rb', line 125
def ancestor
Ancestor.new(@native)
end
|
101
102
103
|
# File 'opal/browser/event/mouse.rb', line 101
def button=(value)
`#@native.button = #{value}`
end
|
105
106
107
|
# File 'opal/browser/event/mouse.rb', line 105
def client
Client.new(@native)
end
|
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
|
109
110
111
|
# File 'opal/browser/event/mouse.rb', line 109
def layer
Layer.new(@native)
end
|
97
98
99
|
# File 'opal/browser/event/mouse.rb', line 97
def meta!
`#@native.metaKey = true`
end
|
113
114
115
|
# File 'opal/browser/event/mouse.rb', line 113
def offset
Offset.new(@native)
end
|
117
118
119
|
# File 'opal/browser/event/mouse.rb', line 117
def page
Page.new(@native)
end
|
129
130
131
|
# File 'opal/browser/event/mouse.rb', line 129
def related=(elem)
`#@native.relatedTarget = #{Native.try_convert(elem)}`
end
|
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
|