Class: Glimmer::Tk::WidgetProxy::DragAndDropEvent
- Inherits:
-
Struct
- Object
- Struct
- Glimmer::Tk::WidgetProxy::DragAndDropEvent
- Defined in:
- lib/glimmer/tk/drag_and_drop_extension.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#drop_accepted ⇒ Object
(also: #drop_accepted?)
Returns the value of attribute drop_accepted.
-
#source ⇒ Object
Returns the value of attribute source.
-
#target ⇒ Object
Returns the value of attribute target.
-
#tooltip ⇒ Object
Returns the value of attribute tooltip.
-
#x_root ⇒ Object
Returns the value of attribute x_root.
-
#y_root ⇒ Object
Returns the value of attribute y_root.
Class Method Summary collapse
Instance Method Summary collapse
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data
121 122 123 |
# File 'lib/glimmer/tk/drag_and_drop_extension.rb', line 121 def data @data end |
#drop_accepted ⇒ Object Also known as: drop_accepted?
Returns the value of attribute drop_accepted
121 122 123 |
# File 'lib/glimmer/tk/drag_and_drop_extension.rb', line 121 def drop_accepted @drop_accepted end |
#source ⇒ Object
Returns the value of attribute source
121 122 123 |
# File 'lib/glimmer/tk/drag_and_drop_extension.rb', line 121 def source @source end |
#target ⇒ Object
Returns the value of attribute target
121 122 123 |
# File 'lib/glimmer/tk/drag_and_drop_extension.rb', line 121 def target @target end |
#tooltip ⇒ Object
Returns the value of attribute tooltip
121 122 123 |
# File 'lib/glimmer/tk/drag_and_drop_extension.rb', line 121 def tooltip @tooltip end |
#x_root ⇒ Object
Returns the value of attribute x_root
121 122 123 |
# File 'lib/glimmer/tk/drag_and_drop_extension.rb', line 121 def x_root @x_root end |
#y_root ⇒ Object
Returns the value of attribute y_root
121 122 123 |
# File 'lib/glimmer/tk/drag_and_drop_extension.rb', line 121 def y_root @y_root end |
Class Method Details
.json_create(object) ⇒ Object
136 137 138 |
# File 'lib/glimmer/tk/drag_and_drop_extension.rb', line 136 def self.json_create(object) new(*[ObjectSpace._id2ref(object["v"][0]), ObjectSpace._id2ref(object["v"][1]).proxy, ObjectSpace._id2ref(object["v"][2])].concat(object["v"].drop 3)) end |
Instance Method Details
#as_json ⇒ Object
124 125 126 127 128 129 130 |
# File 'lib/glimmer/tk/drag_and_drop_extension.rb', line 124 def as_json(*) klass = self.class.name { JSON.create_id => klass, "v" => [values[0].object_id, values[1].object_id, values[2].object_id].concat(values.drop 3), } end |
#to_json(*args) ⇒ Object
132 133 134 |
# File 'lib/glimmer/tk/drag_and_drop_extension.rb', line 132 def to_json(*args) as_json.to_json(*args) end |