pub struct DragSource {
pub id: WidgetId,
pub rect: Rect,
pub payload: u64,
}Expand description
A widget that can be picked up, as the shell sees it.
Fields§
§id: WidgetIdThe widget’s identity.
rect: RectWhere it sits, in absolute coordinates.
payload: u64What it carries.
Trait Implementations§
Source§impl Clone for DragSource
impl Clone for DragSource
impl Copy for DragSource
Source§impl Debug for DragSource
impl Debug for DragSource
Source§impl PartialEq for DragSource
impl PartialEq 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 UnsafeUnpin for DragSource
impl UnwindSafe for DragSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more