TabItem
struct · ferroui-controls · v0.5.0
struct TabItem
An item in a TabControl.
Members
TYPEto_refPSEUDO_CLASSEStab_strip_placement_propertyis_selected_propertyicon_propertyicon_template_propertyindicator_template_propertyconstructnewtab_strip_placementis_selectedset_is_selectediconset_iconicon_templateset_icon_templateindicator_templateset_indicator_templateupdate_selection_from_event
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TabItem>
Returns a strong reference to this object.
PSEUDO_CLASSES
const PSEUDO_CLASSES: PseudoClassesAttribute
The pseudoclasses set by the class.
tab_strip_placement_property
fn tab_strip_placement_property() -> &'static DirectProperty<TabItem, Option<Dock>>
Defines the TabStripPlacement property.
is_selected_property
fn is_selected_property() -> &'static StyledProperty<bool>
Defines the IsSelected property.
icon_property
fn icon_property() -> &'static StyledProperty<Option<BoxedValue>>
Defines the Icon property.
icon_template_property
fn icon_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the IconTemplate property.
indicator_template_property
fn indicator_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the IndicatorTemplate property.
construct
fn construct() -> Self
Creates the class data; see ferroui_base::FerroObject::construct.
new
fn new() -> Ref<Self>
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.
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)
icon
fn icon(self: &Self) -> Option<BoxedValue>
Gets or sets the icon displayed alongside the tab header.
set_icon
fn set_icon(self: &Self, value: Option<BoxedValue>)
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.
set_icon_template
fn set_icon_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
indicator_template
fn indicator_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets or sets the data template used to render the selection indicator.
set_indicator_template
fn set_indicator_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
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.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtContentControlImplExtControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<TabItem>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplVisualImplLayoutableImplInteractiveImplContentControlImplControlImplFerroObjectImplInputElementImplISelectableTemplatedControlImpl
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.