Skip to content

Commit

Permalink
Add Menu functionality (#65)
Browse files Browse the repository at this point in the history
* Added core::Channel and menu functionality. core::Channel may leak memory.

* Added leptos example.

* Updated Channel to stream over message. Added Menu::with_items.

* Updated examples to v2 using Leptos.

* Added Menu::with_id_and_items.

* Derived Clone for drag drop events.
  • Loading branch information
bicarlsen authored Nov 15, 2024
1 parent ae49310 commit 6c75037
Showing 1 changed file with 3 additions and 3 deletions.
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 @@ pub(crate) struct WindowLabel {
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 @@ impl DragDropPayload {
}
}

#[derive(Deserialize, Debug)]
#[derive(Deserialize, Clone, Debug)]
pub struct DragOverPayload {
position: dpi::PhysicalPosition,
}
Expand Down

0 comments on commit 6c75037

Please sign in to comment.