pub struct RawDragEvent { /* private fields */ }Expand description
A raw drag event: a drag-and-drop operation of the platform entering, moving over, leaving or dropping on an input root.
This is an implementation detail of the platform backends.
Implementations§
Source§impl RawDragEvent
impl RawDragEvent
Sourcepub fn new(
input_device: Rc<dyn IDragDropDevice>,
type_: RawDragEventType,
root: Rc<dyn IInputRoot>,
location: Point,
data_transfer: Rc<dyn IDataTransfer>,
effects: DragDropEffects,
modifiers: RawInputModifiers,
) -> Self
pub fn new( input_device: Rc<dyn IDragDropDevice>, type_: RawDragEventType, root: Rc<dyn IInputRoot>, location: Point, data_transfer: Rc<dyn IDataTransfer>, effects: DragDropEffects, modifiers: RawInputModifiers, ) -> Self
Creates a raw drag event.
Sourcepub fn set_location(&self, value: Point)
pub fn set_location(&self, value: Point)
Sets the location of the pointer.
Sourcepub fn data_transfer(&self) -> &Rc<dyn IDataTransfer>
pub fn data_transfer(&self) -> &Rc<dyn IDataTransfer>
The data being dragged.
Sourcepub fn effects(&self) -> DragDropEffects
pub fn effects(&self) -> DragDropEffects
The effects of the operation: the allowed effects when the event is sent, the effects accepted by the target once it has been processed.
Sourcepub fn set_effects(&self, value: DragDropEffects)
pub fn set_effects(&self, value: DragDropEffects)
Sets the effects of the operation.
Sourcepub fn type_(&self) -> RawDragEventType
pub fn type_(&self) -> RawDragEventType
The type of the event.
Sourcepub fn key_modifiers(&self) -> KeyModifiers
pub fn key_modifiers(&self) -> KeyModifiers
The key modifiers held down during the event.
Methods from Deref<Target = RawInputEventArgs>§
Sourcepub fn device(&self) -> &Rc<dyn IInputDevice>
pub fn device(&self) -> &Rc<dyn IInputDevice>
The associated device.
Sourcepub fn root(&self) -> &Rc<dyn IInputRoot>
pub fn root(&self) -> &Rc<dyn IInputRoot>
The root from which the event originates.
Sourcepub fn handled(&self) -> bool
pub fn handled(&self) -> bool
Whether the event was handled.
If an event is not marked handled after processing, this event will be returned to the windowing subsystem for further processing.
Sourcepub fn set_handled(&self, value: bool)
pub fn set_handled(&self, value: bool)
Marks the event as handled or unhandled.
Sourcepub fn set_timestamp(&self, value: u64)
pub fn set_timestamp(&self, value: u64)
Sets the timestamp associated with the event.
Trait Implementations§
Source§impl Deref for RawDragEvent
impl Deref for RawDragEvent
Source§type Target = RawInputEventArgs
type Target = RawInputEventArgs
Source§fn deref(&self) -> &RawInputEventArgs
fn deref(&self) -> &RawInputEventArgs
Source§impl IRawInputEventArgs for RawDragEvent
impl IRawInputEventArgs for RawDragEvent
Source§fn as_raw_input_event_args(&self) -> &RawInputEventArgs
fn as_raw_input_event_args(&self) -> &RawInputEventArgs
Auto Trait Implementations§
impl !Freeze for RawDragEvent
impl !RefUnwindSafe for RawDragEvent
impl !Send for RawDragEvent
impl !Sync for RawDragEvent
impl !UnwindSafe for RawDragEvent
impl Unpin for RawDragEvent
impl UnsafeUnpin for RawDragEvent
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
affects_render, metadata
overrides). Read more