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


34
35
36
# File 'opal/browser/event/drag.rb', line 34

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

#button=(value) ⇒ Object


46
47
48
# File 'opal/browser/event/drag.rb', line 46

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

#clientObject


50
51
52
# File 'opal/browser/event/drag.rb', line 50

def client
  Client.new(@native)
end

#ctrl!Object


38
39
40
# File 'opal/browser/event/drag.rb', line 38

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

#meta!Object


42
43
44
# File 'opal/browser/event/drag.rb', line 42

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

#related=(elem) ⇒ Object


58
59
60
# File 'opal/browser/event/drag.rb', line 58

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

#screenObject


54
55
56
# File 'opal/browser/event/drag.rb', line 54

def screen
  Screen.new(@native)
end

#transfer=(value) ⇒ Object


62
63
64
# File 'opal/browser/event/drag.rb', line 62

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