FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    PropertiesView

    struct · ferroui-diagnostics · v0.5.0

    struct PropertiesView
    

    The properties of an object for the property grid: the counterpart of the DataGridCollectionView of the managed original, with its group description (by Group), its sort description (PropertyComparer) and its filter, presented as a hierarchical TreeDataGrid source whose root rows are the groups.

    Deviation (DEVIATIONS.md, Developer tools): the property grid is a TreeDataGrid, not a DataGrid.

    View source

    Members

    new

    fn new(properties: Vec<PropertyViewModelRef>, filter: Rc<dyn Fn(&PropertyViewModelRef) -> bool>) -> Rc<Self>
    

    Source

    set_property_type_columns

    fn set_property_type_columns(self: &Self, show_property_type: bool)
    

    Shows the type of a property and of its value in one column, or (with show_property_type) in two.

    Source

    source

    fn source(self: &Self) -> Rc<HierarchicalTreeDataGridSource<PropertiesViewItem>>
    

    The source of the grid.

    Source

    source_ref

    fn source_ref(self: &Self) -> TreeDataGridSourceRef
    

    The source of the grid, as the grid takes it.

    Source

    groups

    fn groups(self: &Self) -> Rc<Vec<Rc<PropertiesViewItem>>>
    

    The rows of the groups.

    Source

    items

    fn items(self: &Self) -> Vec<PropertyViewModelRef>
    

    The properties the view shows, in the order it shows them (foreach (object o in PropertiesView)).

    Source

    set_selection_changed

    fn set_selection_changed(self: &Self, handler: Rc<dyn Fn(Option<PropertyViewModelRef>) -> ()>)
    

    Sets the handler of a change of the selected row (the selected property, None for a group or no row).

    Source

    refresh

    fn refresh(self: &Self)
    

    Groups, sorts and filters the properties again (Refresh()), keeping the selected property selected while it is shown.

    Source

    index_path_of

    fn index_path_of(self: &Self, property: &PropertyViewModelRef) -> Option<IndexPath>
    

    The index path of the row of a property.

    Source

    row_index_of

    fn row_index_of(self: &Self, property: &PropertyViewModelRef) -> i32
    

    The index of the row of a property among the rows the grid shows; -1 when it shows none.

    Source

    selected

    fn selected(self: &Self) -> Option<PropertyViewModelRef>
    

    The selected property; None when no row or a group is selected.

    Source

    select

    fn select(self: &Self, property: Option<&PropertyViewModelRef>)
    

    Selects the row of a property, or clears the selection.

    Source

    Trait implementations

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

    Availability

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