Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Menu functionality #65

Merged
merged 8 commits into from
Nov 15, 2024
6 changes: 3 additions & 3 deletions src/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,15 @@
label: String,
}

#[derive(Deserialize, Debug)]
#[derive(Deserialize, Clone, Debug)]
pub enum DragDropEvent {
Enter(DragDropPayload),
Over(DragOverPayload),
Drop(DragDropPayload),
Leave,
}

#[derive(Deserialize, Debug)]
#[derive(Deserialize, Clone, Debug)]
pub struct DragDropPayload {
paths: Vec<PathBuf>,
position: dpi::PhysicalPosition,
Expand All @@ -119,7 +119,7 @@
}
}

#[derive(Deserialize, Debug)]
#[derive(Deserialize, Clone, Debug)]
pub struct DragOverPayload {
position: dpi::PhysicalPosition,
}
Expand All @@ -139,7 +139,7 @@
/// Create a new Window.
///
/// # Arguments
/// + `label`: Unique window label. Must be alphanumberic: `a-zA-Z-/:_`.

Check warning on line 142 in src/window.rs

View workflow job for this annotation

GitHub Actions / Spell Check with Typos

"alphanumberic" should be "alphanumeric".
pub fn new(label: impl Into<String>) -> Self {
Self {
label: label.into(),
Expand Down
Loading