FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TreeViewItem

    struct · ferroui-controls · v0.5.0

    struct TreeViewItem
    

    An item in a TreeView.

    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<TreeViewItem>
    

    Returns a strong reference to this object.

    Source

    on_request_bring_into_view

    fn on_request_bring_into_view(self: &Self, e: &RequestBringIntoViewEventArgs)
    

    Called when a request to bring a control into view reaches the item.

    Source

    on_header_double_tapped

    fn on_header_double_tapped(self: &Self, e: &TappedEventArgs)
    

    Invoked when the double tapped event occurs in the header.

    Source

    TEMPLATE_PARTS

    const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
    

    The named parts expected in the control template.

    Source

    PSEUDO_CLASSES

    const PSEUDO_CLASSES: PseudoClassesAttribute
    

    The pseudoclasses set by the class.

    Source

    is_expanded_property

    fn is_expanded_property() -> &'static StyledProperty<bool>
    

    Defines the IsExpanded property.

    Source

    is_selected_property

    fn is_selected_property() -> &'static StyledProperty<bool>
    

    Defines the IsSelected property.

    Source

    level_property

    fn level_property() -> &'static DirectProperty<TreeViewItem, i32>
    

    Defines the Level property.

    Source

    expanded_event

    fn expanded_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Defines the Expanded event.

    Source

    collapsed_event

    fn collapsed_event() -> &'static RoutedEvent<RoutedEventArgs>
    

    Defines the Collapsed event.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    is_expanded

    fn is_expanded(self: &Self) -> bool
    

    Gets or sets a value indicating whether the item is expanded to show its children.

    Source

    set_is_expanded

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

    Source

    is_selected

    fn is_selected(self: &Self) -> bool
    

    Gets or sets the selection state of the item.

    Source

    set_is_selected

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

    Source

    level

    fn level(self: &Self) -> i32
    

    Gets the level/indentation of the item.

    Source

    expanded

    fn expanded(self: &Self, handler: impl Fn(&ferroui_base::interactivity::Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs after the TreeViewItem has expanded to show its children.

    Source

    collapsed

    fn collapsed(self: &Self, handler: impl Fn(&ferroui_base::interactivity::Interactive, &RoutedEventArgs) -> () + 'static) -> RoutedEventHandlerToken
    

    Occurs after the TreeViewItem has collapsed to hide its children.

    Source

    Trait implementations

    Availability

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