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