FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    DragInfo

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct DragInfo
    

    DragInfo.

    View source

    Members

    data_format

    fn data_format() -> DataFormatOf<String>
    

    The data format that carries the drag token in a data transfer.

    Source

    new

    fn new(source: Rc<dyn ITreeDataGridSource>, indexes: Vec<IndexPath>) -> Self
    

    The drag of the rows at indexes of source.

    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

    source

    fn source(self: &Self) -> Rc<dyn ITreeDataGridSource>
    

    The source the rows are dragged from.

    Panics

    When the drag carries no source (InvalidOperationException).

    Source

    model

    fn model(self: &Self) -> Option<Rc<dyn ITreeDataGridSource>>
    

    The core source the rows are dragged from, if the drag carries one (Model).

    Source

    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.

    Source

    indexes

    fn indexes(self: &Self) -> &[IndexPath]
    

    The model indexes of the dragged rows.

    Source

    Trait implementations

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

    Availability

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