pub struct TabsDefaults;Expand description
Material Design 3 defaults for tabs.
Implementations§
Source§impl TabsDefaults
impl TabsDefaults
Sourcepub const INDICATOR_HEIGHT: Dp
pub const INDICATOR_HEIGHT: Dp
Default indicator height.
Sourcepub const SECONDARY_INDICATOR_HEIGHT: Dp
pub const SECONDARY_INDICATOR_HEIGHT: Dp
Default secondary indicator height.
Sourcepub const INDICATOR_MIN_WIDTH: Dp
pub const INDICATOR_MIN_WIDTH: Dp
Default minimum indicator width.
Sourcepub const INDICATOR_MAX_WIDTH: Option<Dp> = None
pub const INDICATOR_MAX_WIDTH: Option<Dp> = None
Default maximum indicator width.
Sourcepub const MIN_TAB_HEIGHT: Dp
pub const MIN_TAB_HEIGHT: Dp
Minimum height for a tab (Material spec uses 48dp).
Sourcepub const TAB_PADDING: Dp
pub const TAB_PADDING: Dp
Default internal padding for each tab.
Sourcepub const HOVER_STATE_LAYER_OPACITY: f32 = MaterialAlpha::HOVER
pub const HOVER_STATE_LAYER_OPACITY: f32 = MaterialAlpha::HOVER
Default hover alpha for state layers.
Sourcepub const DIVIDER_HEIGHT: Dp
pub const DIVIDER_HEIGHT: Dp
Default divider height for tab rows.
Sourcepub const SCROLLABLE_MIN_TAB_WIDTH: Dp
pub const SCROLLABLE_MIN_TAB_WIDTH: Dp
Default minimum width for a scrollable tab.
Sourcepub const SCROLLABLE_EDGE_PADDING: Dp
pub const SCROLLABLE_EDGE_PADDING: Dp
Default edge padding applied to scrollable tab rows.
Sourcepub const LARGE_TAB_HEIGHT: Dp
pub const LARGE_TAB_HEIGHT: Dp
Default height for a tab that shows both icon and text.
Sourcepub fn disabled_content_color(scheme: &MaterialColorScheme) -> Color
pub fn disabled_content_color(scheme: &MaterialColorScheme) -> Color
Default disabled content color.
Sourcepub fn ripple_color(selected_content_color: Color) -> Color
pub fn ripple_color(selected_content_color: Color) -> Color
Default ripple color derived from the selected content color.
Auto Trait Implementations§
impl Freeze for TabsDefaults
impl RefUnwindSafe for TabsDefaults
impl Send for TabsDefaults
impl Sync for TabsDefaults
impl Unpin for TabsDefaults
impl UnsafeUnpin for TabsDefaults
impl UnwindSafe for TabsDefaults
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.