pub enum TabBarIndicatorSize {
Tab,
Label,
}Expand description
Defines how the bounds of the selected tab indicator are computed.
See also:
TabBar, which displays a row of tabs.TabBarView, which displays a widget for the currently selected tab.TabBar::indicator, which defines the appearance of the selected tab indicator relative to the tab’s bounds.
Variants§
Tab
The tab indicator’s bounds are as wide as the space occupied by the tab in the tab bar: from the right edge of the previous tab to the left edge of the next tab.
Label
The tab’s bounds are only as wide as the (centered) tab widget itself.
This value is used to align the tab’s label, typically a Tab
widget’s text or icon, with the selected tab indicator.
Trait Implementations§
Source§impl Clone for TabBarIndicatorSize
impl Clone for TabBarIndicatorSize
impl Copy for TabBarIndicatorSize
Source§impl Debug for TabBarIndicatorSize
impl Debug for TabBarIndicatorSize
impl Eq for TabBarIndicatorSize
Source§impl Hash for TabBarIndicatorSize
impl Hash for TabBarIndicatorSize
Source§impl PartialEq for TabBarIndicatorSize
impl PartialEq for TabBarIndicatorSize
impl StructuralPartialEq for TabBarIndicatorSize
Auto Trait Implementations§
impl Forget for TabBarIndicatorSize
impl Freeze for TabBarIndicatorSize
impl Move for TabBarIndicatorSize
impl RefUnwindSafe for TabBarIndicatorSize
impl Send for TabBarIndicatorSize
impl Sync for TabBarIndicatorSize
impl Unpin for TabBarIndicatorSize
impl UnsafeUnpin for TabBarIndicatorSize
impl UnwindSafe for TabBarIndicatorSize
Blanket Implementations§
Source§impl<T> AnyEq for T
impl<T> AnyEq for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.