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


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

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

#ancestorObject


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

def ancestor
  Ancestor.new(@native)
end

#button=(value) ⇒ Object


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

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

#clientObject


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

def client
  Client.new(@native)
end

#ctrl!Object


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

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

#from=(elem) ⇒ Object


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

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

#layerObject


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

def layer
  Layer.new(@native)
end

#meta!Object


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

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

#offsetObject


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

def offset
  Offset.new(@native)
end

#pageObject


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

def page
  Page.new(@native)
end

#related=(elem) ⇒ Object


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

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

#screenObject


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

def screen
  Screen.new(@native)
end

#to=(elem) ⇒ Object


141
142
143
# File 'opal/browser/event/mouse.rb', line 141

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

#x=(value) ⇒ Object


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

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

#y=(value) ⇒ Object


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

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