FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeDataGridRowAutomationPeer

    struct · ferroui-controls-treedatagrid · v0.5.0

    struct TreeDataGridRowAutomationPeer
    

    An automation peer which represents a TreeDataGridRow.

    View source

    Members

    TYPE

    const TYPE: &'static $crate::TypeInfo
    

    The runtime type of this class.

    Source

    to_ref

    fn to_ref(self: &Self) -> $crate::Ref<TreeDataGridRowAutomationPeer>
    

    Returns a strong reference to this object.

    Source

    construct

    fn construct(owner: &TreeDataGridRow) -> Self
    

    Creates the class data; see ferroui_base::FerroObject::construct.

    Source

    new

    fn new(owner: &TreeDataGridRow) -> Ref<Self>
    

    Initializes a new peer of owner.

    Source

    owner

    fn owner(self: &Self) -> Ref<TreeDataGridRow>
    

    The owning row.

    Source

    toggle_state

    fn toggle_state(self: &Self) -> ToggleState
    

    Whether the row is expanded (ToggleState); indeterminate for a row without an expander.

    Source

    is_read_only

    fn is_read_only(self: &Self) -> bool
    

    The model is read only (IsReadOnly).

    Source

    expand_collapse_state

    fn expand_collapse_state(self: &Self) -> ExpandCollapseState
    

    ExpandCollapseState.

    Source

    shows_menu

    fn shows_menu(self: &Self) -> bool
    

    ShowsMenu.

    Source

    is_selected

    fn is_selected(self: &Self) -> bool
    

    Whether the row is selected (IsSelected).

    Source

    selection_container

    fn selection_container(self: &Self) -> Option<Rc<dyn ISelectionProvider>>
    

    The selection provider of the owning grid (SelectionContainer).

    Source

    value

    fn value(self: &Self) -> Option<String>
    

    The text of the model (Value).

    Source

    toggle

    fn toggle(self: &Self) -> Result<(), AutomationError>
    

    Expands or collapses the row (Toggle).

    Source

    expand

    fn expand(self: &Self) -> Result<(), AutomationError>
    

    Expands the row (Expand).

    Source

    collapse

    fn collapse(self: &Self) -> Result<(), AutomationError>
    

    Collapses the row (Collapse).

    Source

    set_value

    fn set_value(self: &Self, _value: Option<&str>) -> Result<(), AutomationError>
    

    Errors

    Always AutomationError::NotSupported: rows are read only (NotSupportedException).

    Source

    add_to_selection

    fn add_to_selection(self: &Self) -> Result<(), AutomationError>
    

    Adds the row to the selection (AddToSelection).

    Source

    remove_from_selection

    fn remove_from_selection(self: &Self) -> Result<(), AutomationError>
    

    Removes the row from the selection (RemoveFromSelection).

    Source

    select

    fn select(self: &Self) -> Result<(), AutomationError>
    

    Selects the row alone (Select).

    Source

    Trait implementations

    Availability

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