FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    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.

    Source

    location

    fn location(self: &Self) -> Point
    

    The location of the pointer, in the coordinates of the root.

    Source

    set_location

    fn set_location(self: &Self, value: Point)
    

    Sets the location of the pointer.

    Source

    data_transfer

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

    The data being dragged.

    Source

    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.

    Source

    set_effects

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

    Sets the effects of the operation.

    Source

    type_

    fn type_(self: &Self) -> RawDragEventType
    

    The type of the event.

    Source

    key_modifiers

    fn key_modifiers(self: &Self) -> KeyModifiers
    

    The key modifiers held down during the event.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • ClassDefaults
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Receiver
    • Any
    • ErasedDestructor
    • IntoEither
    • Deref
    • IRawInputEventArgs

    Availability

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