refactor: use icon type when starting dnd
This commit is contained in:
parent
5bfbaae180
commit
42a888736b
5 changed files with 43 additions and 9 deletions
|
|
@ -1,7 +1,7 @@
|
|||
use std::borrow::Cow;
|
||||
|
||||
use ::dnd::{DndAction, DndDestinationRectangle, Sender};
|
||||
use dnd::DndSurface;
|
||||
use dnd::{DndSurface, Icon};
|
||||
use mime::{AllowedMimeTypes, AsMimeTypes};
|
||||
|
||||
pub trait DndProvider {
|
||||
|
|
@ -17,7 +17,7 @@ pub trait DndProvider {
|
|||
&self,
|
||||
_internal: bool,
|
||||
_source_surface: DndSurface,
|
||||
_icon_surface: Option<DndSurface>,
|
||||
_icon_surface: Option<Icon>,
|
||||
_content: D,
|
||||
_actions: DndAction,
|
||||
) {
|
||||
|
|
@ -64,7 +64,7 @@ impl<C: DndProvider> DndProvider for crate::PlatformClipboard<C> {
|
|||
&self,
|
||||
internal: bool,
|
||||
source_surface: DndSurface,
|
||||
icon_surface: Option<DndSurface>,
|
||||
icon_surface: Option<Icon>,
|
||||
content: D,
|
||||
actions: DndAction,
|
||||
) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ use crate::{
|
|||
ClipboardProvider,
|
||||
};
|
||||
|
||||
use dnd::{DndAction, DndDestinationRectangle, DndSurface};
|
||||
use dnd::{DndAction, DndDestinationRectangle, DndSurface, Icon};
|
||||
use mime::{AllowedMimeTypes, AsMimeTypes};
|
||||
use raw_window_handle::{HasDisplayHandle, RawDisplayHandle};
|
||||
use std::{borrow::Cow, error::Error, sync::Arc};
|
||||
|
|
@ -144,7 +144,7 @@ impl DndProvider for Clipboard {
|
|||
&self,
|
||||
internal: bool,
|
||||
source_surface: DndSurface,
|
||||
icon_surface: Option<DndSurface>,
|
||||
icon_surface: Option<Icon>,
|
||||
content: D,
|
||||
actions: DndAction,
|
||||
) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue