Added Debug to DragDropEvent.

This commit is contained in:
Brian Carlsen 2024-07-23 11:45:32 +02:00
parent 9c3cd94275
commit 694a3f6f87
No known key found for this signature in database
GPG key ID: B14D281A79B2DDB7

View file

@ -95,7 +95,7 @@ struct WindowLabel {
label: String,
}
#[derive(Deserialize)]
#[derive(Deserialize, Debug)]
pub enum DragDropEvent {
Dragged(DragDropPayload),
DragOver(DragOverPayload),
@ -103,7 +103,7 @@ pub enum DragDropEvent {
Cancelled,
}
#[derive(Deserialize)]
#[derive(Deserialize, Debug)]
pub struct DragDropPayload {
paths: Vec<String>,
position: dpi::PhysicalPosition,
@ -119,7 +119,7 @@ impl DragDropPayload {
}
}
#[derive(Deserialize)]
#[derive(Deserialize, Debug)]
pub struct DragOverPayload {
position: dpi::PhysicalPosition,
}