scoop:scoop.ui:0.1.0
src/interaction/native_drop.scoop
Selected production source · src/interaction/native_drop.scoop
1
package scoop.ui3
import scoop.surface.InputArea4
import scoop.window.*6
/** Receives native drops through the root's accepted input scene and logical parent path. */7
public fun ComponentScope.dropTarget(8
area: InputArea,9
handlers: DropAreaHandlers,10
enabled: Boolean = true11
): DropArea =12
createDropArea(area, handlers, enabled) {13
callbacks ->14
val target = nativeWindow.registerDropTarget(callbacks)15
target.periodicUpdates = true16
target17
}