Module: VRDragFileSource
- Includes:
- VRDragDropSource
- Defined in:
- lib/vr/vrddrop.rb
Constant Summary
Constants included from VRDragDropSource
VRDragDropSource::DragDetect, VRDragDropSource::GetCursorPos, VRDragDropSource::GetParent, VRDragDropSource::WindowFromPoint
Constants included from VRMessageHandler
VRMessageHandler::PREHANDLERSTR
Instance Method Summary collapse
- #createDropItem ⇒ Object
-
#dragStart(paths) ⇒ Object
VRDragFileSource This module prepares the feature to start dragging files.
Methods included from VRDragDropSource
#dragDetect, #dragdropsourceinit, #dropToplevel, #dropToplevel=, #self__vrdsrclbuttonup, #vrinit
Methods included from VRMessageHandler
#acceptEvents, #addHandler, #addNoRelayMessages, #controlmsg_dispatching, #deleteHandler, #msghandlerinit, #selfmsg_dispatching, #vrinit
Instance Method Details
#createDropItem ⇒ Object
167 168 169 170 |
# File 'lib/vr/vrddrop.rb', line 167 def createDropItem hDrop = DragDropFiles.set(@_vr_dragpaths).handle return WMsg::WM_DROPFILES, hDrop, 0 end |
#dragStart(paths) ⇒ Object
VRDragFileSource
This module prepares the feature to start dragging files. This is the result of quick-hacking. Are you so kind that teach me the structure of “internal structure describing the dropped files?”
Event handler(s)
— dragStart(files)
Starts file dragging with ((|files|)) that is an Array including
the filenames to be dragged.
162 163 164 165 |
# File 'lib/vr/vrddrop.rb', line 162 def dragStart(paths) @_vr_dragpaths=paths super() end |