pub struct DragSession {
pub id: DragId,
pub payload: DragPayload,
pub source: Option<ElementId>,
pub origin: Point,
pub grab_offset: Vec2,
pub current: Point,
pub target: Option<ElementId>,
pub modifiers: Modifiers,
pub preview: Option<OverlayId>,
}Fields§
§id: DragId§payload: DragPayload§source: Option<ElementId>§origin: Point§grab_offset: Vec2§current: Point§target: Option<ElementId>§modifiers: Modifiers§preview: Option<OverlayId>Implementations§
Source§impl DragSession
impl DragSession
pub fn position_in(&self, rect: Rect) -> DropPosition
Trait Implementations§
Source§impl Clone for DragSession
impl Clone for DragSession
Auto Trait Implementations§
impl !RefUnwindSafe for DragSession
impl !Send for DragSession
impl !Sync for DragSession
impl !UnwindSafe for DragSession
impl Freeze for DragSession
impl Unpin for DragSession
impl UnsafeUnpin for DragSession
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