gdk4/
dnd_event.rs

1// Take a look at the license at the top of the repository in the LICENSE file.
2
3use std::fmt;
4
5use crate::{DNDEvent, EventType};
6
7define_event! {
8    DNDEvent,
9    crate::ffi::GdkDNDEvent,
10    &[EventType::DragEnter, EventType::DragLeave, EventType::DragMotion, EventType::DropStart]
11}
12
13impl fmt::Debug for DNDEvent {
14    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
15        f.debug_struct("DNDEvent")
16            .field("drop", &self.drop())
17            .finish()
18    }
19}