Menu

Struct

DragEnter

kurogane::DragEnterSource
pub struct DragEnter { /* private fields */ }

A drag entering a window, passed to App::on_drag_enter.

Methods

#pub fn files(&self) -> &[PathBuf]

The paths of the files dragged, as the system gives them; empty for a drag of no file.

#pub fn text(&self) -> Option<&str>

The text dragged, if it is some.

#pub fn origin(&self) -> &Origin

The origin of the page the drag enters. It is the window’s own page.

#pub fn browser(&self) -> Option<BrowserId>

The browser the drag enters.

Trait implementations