FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    TabItem

    struct · ferroui-controls · v0.5.0

    struct TabItem
    

    An item in a TabControl.

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

    Returns a strong reference to this object.

    Source

    PSEUDO_CLASSES

    const PSEUDO_CLASSES: PseudoClassesAttribute
    

    The pseudoclasses set by the class.

    Source

    tab_strip_placement_property

    fn tab_strip_placement_property() -> &'static DirectProperty<TabItem, Option<Dock>>
    

    Defines the TabStripPlacement property.

    Source

    is_selected_property

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

    Defines the IsSelected property.

    Source

    icon_property

    fn icon_property() -> &'static StyledProperty<Option<BoxedValue>>
    

    Defines the Icon property.

    Source

    icon_template_property

    fn icon_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
    

    Defines the IconTemplate property.

    Source

    indicator_template_property

    fn indicator_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
    

    Defines the IndicatorTemplate property.

    Source

    construct

    fn construct() -> Self
    

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

    Source

    new

    fn new() -> Ref<Self>
    

    Source

    tab_strip_placement

    fn tab_strip_placement(self: &Self) -> Option<Dock>
    

    Gets the placement of this tab relative to the outer TabControl, if there is one.

    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

    icon

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

    Gets or sets the icon displayed alongside the tab header.

    Source

    set_icon

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

    Source

    icon_template

    fn icon_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
    

    Gets or sets the data template used to display the icon of the control.

    Source

    set_icon_template

    fn set_icon_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
    

    Source

    indicator_template

    fn indicator_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
    

    Gets or sets the data template used to render the selection indicator.

    Source

    set_indicator_template

    fn set_indicator_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
    

    Source

    update_selection_from_event

    fn update_selection_from_event(self: &Self, e: &dyn IRoutedEventArgs) -> bool
    

    Updates the selection of the owning selecting items control from an event raised on this container.

    Source

    Trait implementations

    Availability

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