Enum smithay_client_toolkit::data_device::DndEvent[][src]

pub enum DndEvent<'a> {
    Enter {
        offer: Option<&'a DataOffer>,
        serial: u32,
        surface: Proxy<WlSurface>,
        x: f64,
        y: f64,
    },
    Motion {
        offer: Option<&'a DataOffer>,
        time: u32,
        x: f64,
        y: f64,
    },
    Leave,
    Drop {
        offer: Option<&'a DataOffer>,
    },
}

Possible events generated during a drag'n'drop session

Variants

A new drag'n'drop entered your surfaces

Fields of Enter

The associated data offer

Is None if it is an internal drag'n'drop you started with no source. See DataDevice::start_drag for details.

A serial associated with the entry of this dnd

The entered surface

horizontal location on the surface

vertical location on the surface

The drag'n'drop offer moved on the surface

Fields of Motion

The associated data offer

Is None if it is an internal drag'n'drop you started with no source. See DataDevice::start_drag for details.

The time of this motion

new horizontal location

new vertical location

The drag'n'drop offer left your surface

The drag'n'drop was dropped on your surface

Fields of Drop

The associated data offer

Is None if it is an internal drag'n'drop you started with no source. See DataDevice::start_drag for details.

Auto Trait Implementations

impl<'a> Send for DndEvent<'a>

impl<'a> Sync for DndEvent<'a>