FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    InternalSelectionModel

    struct · ferroui-controls · v0.5.0

    struct InternalSelectionModel
    

    The selection model of the selecting items controls: an untyped selection model that keeps a writable list of the selected items in sync with the selection, both ways.

    It derives from the untyped SelectionModel: it owns the model, overrides its virtual members through SelectionModelImpl and dereferences to it, so every member of the model is available on it. It implements ISelectionModel itself, so an Rc<InternalSelectionModel> is used wherever an Rc<dyn ISelectionModel> is expected.

    View source

    Members

    new

    fn new() -> Rc<Self>
    

    Source

    model

    fn model(self: &Self) -> &Rc<SelectionModel<BoxedValue>>
    

    The untyped selection model this model derives from.

    Source

    writable_selected_items

    fn writable_selected_items(self: &Self) -> WritableSelectedItems
    

    Gets the writable list of the selected items.

    Source

    set_writable_selected_items

    fn set_writable_selected_items(self: &Self, value: Option<WritableSelectedItems>)
    

    Sets the writable list of the selected items; None assigns a new, empty list.

    Source

    update

    fn update(self: &Self, source: Option<ItemsSource>, selected_items: Option<Option<WritableSelectedItems>>)
    

    Assigns the source and, if given, the writable list of the selected items in one step.

    Source

    Trait implementations

    Availability

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