Scoop API

scoop:scoop.ui:0.1.0

renderSelectionPreview

function renderSelectionPreview

source · line 44
public
public fun DragSourceStart.renderSelectionPreview(regions: Array<Rect>, area: InputArea, draw: (Canvas) -> Unit): DragPreview?

Extension receiver: DragSourceStart

Paints only the visible selected regions, keeping the press anchored even in a scrolled or transformed area.