Class: Browser::Event::Drag::Definition

Inherits:
Browser::Event::Definition show all
Defined in:
opal/browser/event/drag.rb

Defined Under Namespace

Classes: Client, Screen

Instance Method Summary collapse

Methods inherited from Browser::Event::Definition

#bubbles=, #cancelable=

Instance Method Details

#alt!Object


36
37
38
# File 'opal/browser/event/drag.rb', line 36

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

#button=(value) ⇒ Object


48
49
50
# File 'opal/browser/event/drag.rb', line 48

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

#clientObject


52
53
54
# File 'opal/browser/event/drag.rb', line 52

def client
  Client.new(@native)
end

#ctrl!Object


40
41
42
# File 'opal/browser/event/drag.rb', line 40

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

#meta!Object


44
45
46
# File 'opal/browser/event/drag.rb', line 44

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

#related=(elem) ⇒ Object


60
61
62
# File 'opal/browser/event/drag.rb', line 60

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

#screenObject


56
57
58
# File 'opal/browser/event/drag.rb', line 56

def screen
  Screen.new(@native)
end

#transfer=(value) ⇒ Object


64
65
66
# File 'opal/browser/event/drag.rb', line 64

def transfer=(value)
  `#@native.dataTransfer = #{Native.convert(value)}`
end