Skip to main content

FileDropState

Type Alias FileDropState 

Source
pub type FileDropState = FileDropDrag;
Expand description

State of file(s) being dragged from OS over the window DEPRECATED: Use DragContext with ActiveDragType::FileDrop instead.

Aliased Type§

#[repr(C)]
pub struct FileDropState { pub files: StringVec, pub position: LogicalPosition, pub drop_target: OptionDomNodeId, pub drop_effect: DropEffect, }

Fields§

§files: StringVec

Files being dragged (as string paths)

§position: LogicalPosition

Current position of drag cursor

§drop_target: OptionDomNodeId

DOM node under cursor (potential drop target)

§drop_effect: DropEffect

Allowed drop effect