Scoop API

scoop:scoop.ui:0.1.0

TextDragOptions

class TextDragOptions

source · line 12
public
public class TextDragOptions public constructor(
    public val enabled: Boolean = true,
    public val threshold: Double = 4.0,
    public val effects: DragEffects = DragEffects(true, true, false),
    public val copyPolicy: TextCopyPolicy = TextCopyPolicy.Default,
    /** Uses the platform default when the callback returns None; absent draws the visible selection. */
    public val preview: ((DragSourceStart, String) -> DragPreview?)? = None,
    public val onCompleted: (TextDragResult) -> Unit = {}
)

Selection export is independent of paste and drop acceptance.

Extensions

constructor constructor

source · line 12
public
constructor(public val enabled: Boolean = true, public val threshold: Double = 4.0, public val effects: DragEffects = DragEffects(true, true, false), public val copyPolicy: TextCopyPolicy = TextCopyPolicy.Default, public val preview: ((DragSourceStart, String) -> DragPreview?)? = None, public val onCompleted: (TextDragResult) -> Unit = {})