DragInfo
struct · ferroui-controls-treedatagrid · v0.5.0
struct DragInfo
DragInfo.
Members
data_format
fn data_format() -> DataFormatOf<String>
The data format that carries the drag token in a data transfer.
new
fn new(source: Rc<dyn ITreeDataGridSource>, indexes: Vec<IndexPath>) -> Self
The drag of the rows at indexes of source.
from_presentation
fn from_presentation(presentation: &dyn TreeDataGridPresentation, source: Option<Rc<dyn ITreeDataGridSource>>, indexes: Vec<IndexPath>) -> Self
The drag of the rows at indexes of the source presentation presents, identified by the
presentation's identity. The source is source when the caller has it, otherwise the
identity itself when it holds a shared source handle (Rc<dyn ITreeDataGridSource>).
source
fn source(self: &Self) -> Rc<dyn ITreeDataGridSource>
The source the rows are dragged from.
Panics
When the drag carries no source (InvalidOperationException).
model
fn model(self: &Self) -> Option<Rc<dyn ITreeDataGridSource>>
The core source the rows are dragged from, if the drag carries one (Model).
source_identity
fn source_identity(self: &Self) -> &Rc<dyn Any>
The identity of the dragged source, to tell whether a drop targets the same source.
indexes
fn indexes(self: &Self) -> &[IndexPath]
The model indexes of the dragged rows.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEither
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.