TreeDataGridRowDragStartedEventArgs
struct · ferroui-controls-treedatagrid · v0.5.0
struct TreeDataGridRowDragStartedEventArgs
Provides data for the RowDragStarted event of the grid (TreeDataGridRowDragStartedEventArgs).
Members
new
fn new(models: Vec<Option<BoxedValue>>) -> Self
The arguments of a drag of the rows of models.
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.
allowed_effects
fn allowed_effects(self: &Self) -> DragDropEffects
The effects the drag allows.
set_allowed_effects
fn set_allowed_effects(self: &Self, value: DragDropEffects)
Sets allowed_effects.
models
fn models(self: &Self) -> &[Option<BoxedValue>]
The models of the dragged rows.
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.
key_modifiers
fn key_modifiers(self: &Self) -> KeyModifiers
Modifiers at the pointer press that initiated the drag, before selection can change.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>CloneToUninitInto<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyToOwnedClassDefaultsErasedDestructorIntoEitherMarkupTypedCloneDerefIRoutedEventArgs
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.