FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    selection

    module · ferroui-treedatagrid-core · v0.5.0

    module selection
    

    Selection/: the tree selection model and the row and cell selection of a source.

    Virtual members

    The selection classes of the reference form a small hierarchy with virtual members; as in the framework's selection, they are plain shared structs whose virtual members are modelled explicitly:

    • SelectionNodeBase holds the state of the base of the nodes; its inherent methods are the base implementations, and SelectionNodeBaseImpl the overridable members, implemented by TreeSelectionNode. The base holds the node weakly, for the virtual calls and as the listener of the changes of its source.
    • TreeSelectionModelBase owns the root node; its overridable members (GetChildren, TryGetItemAt, OnSourceCollectionChangeFinished, OnNodeCollectionReset) are TreeSelectionModelHooks, implemented by the type deriving from the model and registered weakly with TreeSelectionModelBase::set_hooks.

    Items are Option<Rc<M>> (the reference's T?), untyped items Option<BoxedValue> (object?); the untyped source of the contracts is UntypedModels.

    View source

    Contents

    Availability

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