TreeViewItem
struct · ferroui-controls · v0.5.0
struct TreeViewItem
An item in a TreeView.
Members
TYPEto_refon_request_bring_into_viewon_header_double_tappedTEMPLATE_PARTSPSEUDO_CLASSESis_expanded_propertyis_selected_propertylevel_propertyexpanded_eventcollapsed_eventconstructnewis_expandedset_is_expandedis_selectedset_is_selectedlevelexpandedcollapsed
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TreeViewItem>
Returns a strong reference to this object.
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.
on_header_double_tapped
fn on_header_double_tapped(self: &Self, e: &TappedEventArgs)
Invoked when the double tapped event occurs in the header.
TEMPLATE_PARTS
const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
The named parts expected in the control template.
PSEUDO_CLASSES
const PSEUDO_CLASSES: PseudoClassesAttribute
The pseudoclasses set by the class.
is_expanded_property
fn is_expanded_property() -> &'static StyledProperty<bool>
Defines the IsExpanded property.
is_selected_property
fn is_selected_property() -> &'static StyledProperty<bool>
Defines the IsSelected property.
level_property
fn level_property() -> &'static DirectProperty<TreeViewItem, i32>
Defines the Level property.
expanded_event
fn expanded_event() -> &'static RoutedEvent<RoutedEventArgs>
Defines the Expanded event.
collapsed_event
fn collapsed_event() -> &'static RoutedEvent<RoutedEventArgs>
Defines the Collapsed event.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
is_expanded
fn is_expanded(self: &Self) -> bool
Gets or sets a value indicating whether the item is expanded to show its children.
set_is_expanded
fn set_is_expanded(self: &Self, value: bool)
is_selected
fn is_selected(self: &Self) -> bool
Gets or sets the selection state of the item.
set_is_selected
fn set_is_selected(self: &Self, value: bool)
level
fn level(self: &Self) -> i32
Gets the level/indentation of the item.
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.
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtHeaderedItemsControlImplExtControlImplExtItemsControlImplExtTreeViewItemImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<TreeViewItem>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleVisualImplLayoutableImplInteractiveImplHeaderedItemsControlImplControlImplFerroObjectImplStyledElementImplInputElementImplTemplatedControlImplItemsControlImplTreeViewItemImplISelectable
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.