TabControl
struct · ferroui-controls · v0.5.0
struct TabControl
A tab control that displays a tab strip along with the content of the selected tab.
Members
TYPEto_refregister_content_presenterTEMPLATE_PARTStab_strip_placement_propertyhorizontal_content_alignment_propertyvertical_content_alignment_propertycontent_template_propertyselected_content_propertyselected_content_template_propertypage_transition_propertyindicator_template_propertyconstructnewhorizontal_content_alignmentset_horizontal_content_alignmentvertical_content_alignmentset_vertical_content_alignmenttab_strip_placementset_tab_strip_placementcontent_templateset_content_templateselected_contentselected_content_templatepage_transitionset_page_transitionindicator_templateset_indicator_template
TYPE
const TYPE: &'static $crate::TypeInfo
The runtime type of this class.
to_ref
fn to_ref(self: &Self) -> $crate::Ref<TabControl>
Returns a strong reference to this object.
register_content_presenter
fn register_content_presenter(self: &Self, presenter: &ContentPresenter) -> bool
Called when a ContentPresenter is registered with the
control.
TEMPLATE_PARTS
const TEMPLATE_PARTS: &'static [TemplatePartAttribute]
The named parts expected in the control template.
tab_strip_placement_property
fn tab_strip_placement_property() -> &'static StyledProperty<Dock>
Defines the TabStripPlacement property.
horizontal_content_alignment_property
fn horizontal_content_alignment_property() -> &'static StyledProperty<HorizontalAlignment>
Defines the HorizontalContentAlignment property.
vertical_content_alignment_property
fn vertical_content_alignment_property() -> &'static StyledProperty<VerticalAlignment>
Defines the VerticalContentAlignment property.
content_template_property
fn content_template_property() -> &'static StyledProperty<Option<Rc<dyn IDataTemplate>>>
Defines the ContentTemplate property.
selected_content_property
fn selected_content_property() -> &'static DirectProperty<TabControl, Option<BoxedValue>>
Defines the SelectedContent property.
selected_content_template_property
fn selected_content_template_property() -> &'static DirectProperty<TabControl, Option<Rc<dyn IDataTemplate>>>
Defines the SelectedContentTemplate property.
page_transition_property
fn page_transition_property() -> &'static StyledProperty<Option<Rc<dyn IPageTransition>>>
Defines the PageTransition 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>
horizontal_content_alignment
fn horizontal_content_alignment(self: &Self) -> HorizontalAlignment
Gets or sets the horizontal alignment of the content within the control.
set_horizontal_content_alignment
fn set_horizontal_content_alignment(self: &Self, value: HorizontalAlignment)
vertical_content_alignment
fn vertical_content_alignment(self: &Self) -> VerticalAlignment
Gets or sets the vertical alignment of the content within the control.
set_vertical_content_alignment
fn set_vertical_content_alignment(self: &Self, value: VerticalAlignment)
tab_strip_placement
fn tab_strip_placement(self: &Self) -> Dock
Gets or sets the tabstrip placement of the TabControl.
set_tab_strip_placement
fn set_tab_strip_placement(self: &Self, value: Dock)
content_template
fn content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets or sets the default data template used to display the content of the selected tab.
set_content_template
fn set_content_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
selected_content
fn selected_content(self: &Self) -> Option<BoxedValue>
Gets the content of the selected tab.
selected_content_template
fn selected_content_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets the content template for the selected tab.
page_transition
fn page_transition(self: &Self) -> Option<Rc<dyn IPageTransition>>
Gets or sets the page transition to use when switching tabs.
set_page_transition
fn set_page_transition(self: &Self, value: Option<Rc<dyn IPageTransition>>)
indicator_template
fn indicator_template(self: &Self) -> Option<Rc<dyn IDataTemplate>>
Gets or sets the data template used to render the selection indicator on each tab item.
set_indicator_template
fn set_indicator_template(self: &Self, value: Option<Rc<dyn IDataTemplate>>)
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeTemplatedControlImplExtSelectingItemsControlImplExtControlImplExtItemsControlImplExtTabControlImplExtBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>ReceiverAnyInputElementImplExtInteractiveImplExtLayoutableImplExtFerroObjectImplExtStyledElementImplExtClassDefaultsVisualImplExtErasedDestructorIntoEitherDerefUpcast<T>Upcast<TabControl>StaticTypeObjectTypeSubclassable<T>DefaultConstructibleStyledElementImplInteractiveImplInputElementImplControlImplFerroObjectImplVisualImplLayoutableImplTemplatedControlImplItemsControlImplSelectingItemsControlImplTabControlImplIContentPresenterHost
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.