pub struct MouseDispatchResult {
pub drag_action: Option<DragAction>,
pub accepted: bool,
}Expand description
The outcome of dispatching a MouseEvent through WindowInner::process_mouse_input.
Fields§
§drag_action: Option<DragAction>For MouseEvent::DragMove / MouseEvent::Drop events, the action negotiated with
the accepting DropArea (or None if no DropArea accepted). Always None for
other event kinds.
accepted: booltrue if an item consumed the event (EventAccepted, GrabMouse, StartDrag, or
a DropArea accepting a drag/drop). false if the event fell through without a taker.
Trait Implementations§
Source§impl Clone for MouseDispatchResult
impl Clone for MouseDispatchResult
Source§fn clone(&self) -> MouseDispatchResult
fn clone(&self) -> MouseDispatchResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MouseDispatchResult
Auto Trait Implementations§
impl Freeze for MouseDispatchResult
impl RefUnwindSafe for MouseDispatchResult
impl Send for MouseDispatchResult
impl Sync for MouseDispatchResult
impl Unpin for MouseDispatchResult
impl UnsafeUnpin for MouseDispatchResult
impl UnwindSafe for MouseDispatchResult
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