Add Menu
functionality (#65)
* 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.
This commit is contained in:
parent
ae49310ee1
commit
6c75037edd
1 changed files with 3 additions and 3 deletions
|
@ -95,7 +95,7 @@ pub(crate) struct WindowLabel {
|
||||||
label: String,
|
label: String,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Clone, Debug)]
|
||||||
pub enum DragDropEvent {
|
pub enum DragDropEvent {
|
||||||
Enter(DragDropPayload),
|
Enter(DragDropPayload),
|
||||||
Over(DragOverPayload),
|
Over(DragOverPayload),
|
||||||
|
@ -103,7 +103,7 @@ pub enum DragDropEvent {
|
||||||
Leave,
|
Leave,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Clone, Debug)]
|
||||||
pub struct DragDropPayload {
|
pub struct DragDropPayload {
|
||||||
paths: Vec<PathBuf>,
|
paths: Vec<PathBuf>,
|
||||||
position: dpi::PhysicalPosition,
|
position: dpi::PhysicalPosition,
|
||||||
|
@ -119,7 +119,7 @@ impl DragDropPayload {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Clone, Debug)]
|
||||||
pub struct DragOverPayload {
|
pub struct DragOverPayload {
|
||||||
position: dpi::PhysicalPosition,
|
position: dpi::PhysicalPosition,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue