RawDragEvent
struct · ferroui-base · v0.5.0
struct RawDragEvent
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.
Members
new
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.
location
fn location(self: &Self) -> Point
The location of the pointer, in the coordinates of the root.
set_location
fn set_location(self: &Self, value: Point)
Sets the location of the pointer.
data_transfer
fn data_transfer(self: &Self) -> &Rc<dyn IDataTransfer>
The data being dragged.
effects
fn effects(self: &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.
set_effects
fn set_effects(self: &Self, value: DragDropEffects)
Sets the effects of the operation.
type_
fn type_(self: &Self) -> RawDragEventType
The type of the event.
key_modifiers
fn key_modifiers(self: &Self) -> KeyModifiers
The key modifiers held down during the event.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyErasedDestructorIntoEitherDerefIRawInputEventArgs
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.