DragEventArgs
struct · ferroui-base · v0.5.0
struct DragEventArgs
Provides data for the drag-and-drop events.
Members
new
fn new(routed_event: Option<&RoutedEvent<DragEventArgs>>, data_transfer: Rc<dyn IDataTransfer>, target: Ref<Interactive>, target_location: Point, key_modifiers: KeyModifiers) -> Self
Creates drag event args. target_location is the location of the
pointer in the coordinates of target.
drag_effects
fn drag_effects(self: &Self) -> DragDropEffects
The effects of the operation. A handler sets them to what the target accepts.
set_drag_effects
fn set_drag_effects(self: &Self, value: DragDropEffects)
Sets the effects of the operation.
data_transfer
fn data_transfer(self: &Self) -> &Rc<dyn IDataTransfer>
The data being dragged.
key_modifiers
fn key_modifiers(self: &Self) -> KeyModifiers
The key modifiers held down during the event.
get_position
fn get_position(self: &Self, relative_to: &Visual) -> Point
Gets the position of the pointer relative to a visual.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeClassDefaultsBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedErasedDestructorIntoEitherCloneDerefIRoutedEventArgsIKeyModifiersEventArgsMarkupTyped
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.