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,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
#[derive(Deserialize, Clone, Debug)]
|
||||
pub enum DragDropEvent {
|
||||
Enter(DragDropPayload),
|
||||
Over(DragOverPayload),
|
||||
|
@ -103,7 +103,7 @@ pub enum DragDropEvent {
|
|||
Leave,
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
#[derive(Deserialize, Clone, Debug)]
|
||||
pub struct DragDropPayload {
|
||||
paths: Vec<PathBuf>,
|
||||
position: dpi::PhysicalPosition,
|
||||
|
@ -119,7 +119,7 @@ impl DragDropPayload {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Deserialize, Debug)]
|
||||
#[derive(Deserialize, Clone, Debug)]
|
||||
pub struct DragOverPayload {
|
||||
position: dpi::PhysicalPosition,
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue