Scoop API

scoop:scoop.ui:0.1.0

src/text/native_drag_drop.scoop

Selected production source · src/text/native_drag_drop.scoop

1package scoop.ui.text
3import scoop.ui.*
5internal fun createEditorDropTarget(host: TextEditHost): EditorDropTarget? =
6 Some(
7 EditorDropTarget(host) {
8 handlers,
9 enabled -> host.scope.dropTarget(host.area, handlers, enabled)
10 }
11 )
13internal fun createEditorDragSource(host: TextEditHost): EditorDragSource? =
14 Some(
15 EditorDragSource(host) {
16 options,
17 prepare -> host.scope.dragSource(host.area, options, prepare)
18 }
19 )
21internal fun createSelectableDragSource(host: SelectableTextHost): SelectableDragSource? =
22 Some(
23 SelectableDragSource(host) {
24 options,
25 prepare -> host.scope.dragSource(host.area, options, prepare)
26 }
27 )