pub struct TabViewStyle {Show 17 fields
pub position: TabPosition,
pub selected_style: Style,
pub normal_style: Style,
pub focused_style: Style,
pub disabled_style: Style,
pub badge_style: Style,
pub content_border_style: Style,
pub divider: &'static str,
pub tab_width: Option<u16>,
pub tab_height: u16,
pub bordered_content: bool,
pub show_indicator: bool,
pub indicator: &'static str,
pub scroll_left: &'static str,
pub scroll_right: &'static str,
pub scroll_up: &'static str,
pub scroll_down: &'static str,
}Expand description
Style configuration for the tab view
Fields§
§position: TabPositionPosition of the tab bar
selected_style: StyleStyle for selected tab
normal_style: StyleStyle for normal (unselected) tabs
focused_style: StyleStyle for focused tab (when component has focus)
disabled_style: StyleStyle for disabled tabs
badge_style: StyleStyle for badge text
content_border_style: StyleStyle for the content area border
divider: &'static strTab divider character(s)
tab_width: Option<u16>Fixed width for vertical tabs (None = auto)
tab_height: u16Height for horizontal tabs
bordered_content: boolWhether to show border around content
show_indicator: boolWhether to show selection indicator
indicator: &'static strSelection indicator character
scroll_left: &'static strScroll left indicator
scroll_right: &'static strScroll right indicator
scroll_up: &'static strScroll up indicator
scroll_down: &'static strScroll down indicator
Implementations§
Source§impl TabViewStyle
impl TabViewStyle
Sourcepub fn position(self, position: TabPosition) -> Self
pub fn position(self, position: TabPosition) -> Self
Set the tab position
Sourcepub fn tab_height(self, height: u16) -> Self
pub fn tab_height(self, height: u16) -> Self
Set the tab height for horizontal tabs
Sourcepub fn bordered_content(self, bordered: bool) -> Self
pub fn bordered_content(self, bordered: bool) -> Self
Set whether content is bordered
Sourcepub fn selected_style(self, style: Style) -> Self
pub fn selected_style(self, style: Style) -> Self
Set selected tab style
Sourcepub fn normal_style(self, style: Style) -> Self
pub fn normal_style(self, style: Style) -> Self
Set normal tab style
Trait Implementations§
Source§impl Clone for TabViewStyle
impl Clone for TabViewStyle
Source§fn clone(&self) -> TabViewStyle
fn clone(&self) -> TabViewStyle
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TabViewStyle
impl Debug for TabViewStyle
Auto Trait Implementations§
impl Freeze for TabViewStyle
impl RefUnwindSafe for TabViewStyle
impl Send for TabViewStyle
impl Sync for TabViewStyle
impl Unpin for TabViewStyle
impl UnwindSafe for TabViewStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more