FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeDataGridRowDragStartedEventArgs

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct TreeDataGridRowDragStartedEventArgs
    

    Provides data for the RowDragStarted event of the grid (TreeDataGridRowDragStartedEventArgs).

    View source

    Members

    new

    fn new(models: Vec<Option<BoxedValue>>) -> Self
    

    The arguments of a drag of the rows of models.

    Source

    with_modifiers

    fn with_modifiers(models: Vec<Option<BoxedValue>>, key_modifiers: KeyModifiers) -> Self
    

    Creates arguments with the modifiers captured by the original pointer press. Applications can use explicit gestures to distinguish a row move from a reference drag.

    Source

    allowed_effects

    fn allowed_effects(self: &Self) -> DragDropEffects
    

    The effects the drag allows.

    Source

    set_allowed_effects

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

    Sets allowed_effects.

    Source

    models

    fn models(self: &Self) -> &[Option<BoxedValue>]
    

    The models of the dragged rows.

    Source

    data_transfer

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

    Application payloads contributed to the native drag. The grid retains its own row identity payload, so adding data does not disable normal row reordering. Clones of these event arguments share this collection, just as they share allowed effects. The internal row token is set on the first item before the native drag starts so single-item platform backends retain both row identity and application formats.

    Source

    key_modifiers

    fn key_modifiers(self: &Self) -> KeyModifiers
    

    Modifiers at the pointer press that initiated the drag, before selection can change.

    Source

    Trait implementations

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

    Availability

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