enum DragBridge
Swift
enum DragBridge
How a view starts an OS drag.
DropBridge's shape, facing the other way. Unset means windowed, and there
is no engine fallback this time: GLFW can receive a drop but has no way to
start one. So a windowed app's .onFileDrag does nothing, and the press
stays an ordinary press.
Sources/LavaUI/DragSource.swift:44
Properties
nonisolated(unsafe) static var startFileDrag: Provider?
Not documented.
Sources/LavaUI/DragSource.swift:55
Type aliases
typealias Provider = (_ paths: [String], _ chip: DragChipImage?, _ offsetX: Float, _ offsetY: Float) -> Bool
Starts a drag of paths with chip, if any, hung offsetX,offsetY
from the pointer, while the button that pressed is still held.
True when the request was delivered — not that a drag started, which is the compositor's to decide: the button may already be up, or another drag running.
Sources/LavaUI/DragSource.swift:51