FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DragEventArgs

    struct · ferroui-base · v0.5.0

    struct DragEventArgs
    

    Provides data for the drag-and-drop events.

    View source

    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.

    Source

    drag_effects

    fn drag_effects(self: &Self) -> DragDropEffects
    

    The effects of the operation. A handler sets them to what the target accepts.

    Source

    set_drag_effects

    fn set_drag_effects(self: &Self, value: DragDropEffects)
    

    Sets the effects of the operation.

    Source

    data_transfer

    fn data_transfer(self: &Self) -> &Rc<dyn IDataTransfer>
    

    The data being dragged.

    Source

    key_modifiers

    fn key_modifiers(self: &Self) -> KeyModifiers
    

    The key modifiers held down during the event.

    Source

    get_position

    fn get_position(self: &Self, relative_to: &Visual) -> Point
    

    Gets the position of the pointer relative to a visual.

    Source

    Trait implementations

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.