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:51
Properties
nonisolated(unsafe) static var startFileDrag: Provider?
Installed by a compositor client to carry the drag to the compositor.
nil, as in a windowed app, makes .onFileDrag do nothing.
Sources/LavaUI/DragSource.swift:66
Type aliases
typealias Provider = (_ paths: [String], _ chip: DragChipImage?, _ offsetX: Float, _ offsetY: Float, _ window: UInt32) -> 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. The last argument is the engine window the drag started in.
Sources/LavaUI/DragSource.swift:59