pub struct DragSource {
pub source_surface: u32,
pub offered_mimes: Vec<ClipboardMime>,
pub origin_x: i32,
pub origin_y: i32,
pub ghost_width: u32,
pub ghost_height: u32,
}Expand description
Information about a drag source.
Fields§
§source_surface: u32Surface ID that initiated the drag.
offered_mimes: Vec<ClipboardMime>MIME types offered by the source.
origin_x: i32Position where drag started.
origin_y: i32§ghost_width: u32Visual feedback: ghost image dimensions (width, height).
ghost_height: u32Trait Implementations§
Source§impl Clone for DragSource
impl Clone for DragSource
Source§fn clone(&self) -> DragSource
fn clone(&self) -> DragSource
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DragSource
impl Debug for DragSource
Source§impl PartialEq for DragSource
impl PartialEq for DragSource
impl Eq for DragSource
impl StructuralPartialEq for DragSource
Auto Trait Implementations§
impl Freeze for DragSource
impl RefUnwindSafe for DragSource
impl Send for DragSource
impl Sync for DragSource
impl Unpin for DragSource
impl UnwindSafe for DragSource
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)