FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    ISelectionModel

    trait · ferroui-controls · v0.5.0

    trait ISelectionModel: INotifyPropertyChanged
    

    The untyped contract of a selection model: the selection of an items control.

    The property changed event is raised with the names Source, SingleSelect, SelectedIndex, SelectedIndexes, SelectedItem, SelectedItems and AnchorIndex.

    Each event is subscribed to with the method of its name, which returns the handle that unsubscribes the handler when disposed.

    View source

    Members

    source

    fn source(self: &Self) -> Option<ItemsSource>
    

    Source

    set_source

    fn set_source(self: &Self, value: Option<ItemsSource>)
    

    Source

    single_select

    fn single_select(self: &Self) -> bool
    

    Source

    set_single_select

    fn set_single_select(self: &Self, value: bool)
    

    Source

    selected_index

    fn selected_index(self: &Self) -> i32
    

    Source

    set_selected_index

    fn set_selected_index(self: &Self, value: i32)
    

    Source

    selected_indexes

    fn selected_indexes(self: &Self) -> Rc<dyn IReadOnlySelectionList<i32>>
    

    Source

    selected_item

    fn selected_item(self: &Self) -> Option<BoxedValue>
    

    Source

    set_selected_item

    fn set_selected_item(self: &Self, value: Option<BoxedValue>)
    

    Source

    selected_items

    fn selected_items(self: &Self) -> Rc<dyn IReadOnlySelectionList<Option<BoxedValue>>>
    

    Source

    anchor_index

    fn anchor_index(self: &Self) -> i32
    

    Source

    set_anchor_index

    fn set_anchor_index(self: &Self, value: i32)
    

    Source

    count

    fn count(self: &Self) -> usize
    

    Source

    indexes_changed

    fn indexes_changed(self: &Self, handler: Rc<dyn Fn(&SelectionModelIndexesChangedEventArgs) -> ()>) -> Rc<dyn IDisposable>
    

    Source

    selection_changed

    fn selection_changed(self: &Self, handler: Rc<dyn Fn(&dyn SelectionModelSelectionChangedEventArgs) -> ()>) -> Rc<dyn IDisposable>
    

    Source

    lost_selection

    fn lost_selection(self: &Self, handler: Rc<dyn Fn() -> ()>) -> Rc<dyn IDisposable>
    

    Source

    source_reset

    fn source_reset(self: &Self, handler: Rc<dyn Fn() -> ()>) -> Rc<dyn IDisposable>
    

    Source

    begin_batch_update

    fn begin_batch_update(self: &Self)
    

    Source

    end_batch_update

    fn end_batch_update(self: &Self)
    

    Source

    is_selected

    fn is_selected(self: &Self, index: i32) -> bool
    

    Source

    select

    fn select(self: &Self, index: i32)
    

    Source

    deselect

    fn deselect(self: &Self, index: i32)
    

    Source

    select_range

    fn select_range(self: &Self, start: i32, end: i32)
    

    Source

    deselect_range

    fn deselect_range(self: &Self, start: i32, end: i32)
    

    Source

    select_all

    fn select_all(self: &Self)
    

    Source

    clear

    fn clear(self: &Self)
    

    Source

    as_internal_selection_model

    fn as_internal_selection_model(self: &Self) -> Option<&super::InternalSelectionModel>
    

    The model viewed as the internal selection model of the selecting items controls, if it is one.

    Source

    Trait implementations

    Availability

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