pub struct AppBarDefaults;Expand description
Default tokens for app bars.
Implementations§
Source§impl AppBarDefaults
impl AppBarDefaults
Sourcepub const TOP_APP_BAR_HEIGHT: Dp
pub const TOP_APP_BAR_HEIGHT: Dp
Default height for a top app bar.
Sourcepub const TOP_APP_BAR_ELEVATION: Dp
pub const TOP_APP_BAR_ELEVATION: Dp
Default elevation for a top app bar.
Sourcepub const HORIZONTAL_PADDING: Dp
pub const HORIZONTAL_PADDING: Dp
Default horizontal padding applied to app bar content.
Sourcepub const TITLE_INSET: Dp
pub const TITLE_INSET: Dp
Default total title inset when no navigation icon is present.
Sourcepub const ACTIONS_SPACING: Dp
pub const ACTIONS_SPACING: Dp
Default spacing between trailing action items.
Sourcepub const CONTENT_PADDING: Padding
pub const CONTENT_PADDING: Padding
Default padding applied to app bar content.
Sourcepub const TOP_APP_BAR_CONTENT_PADDING: Padding = Self::CONTENT_PADDING
pub const TOP_APP_BAR_CONTENT_PADDING: Padding = Self::CONTENT_PADDING
Default padding applied to standard top app bar content.
Sourcepub const MEDIUM_FLEXIBLE_HEIGHT: Dp
pub const MEDIUM_FLEXIBLE_HEIGHT: Dp
Expanded medium height without a subtitle.
Sourcepub const MEDIUM_FLEXIBLE_SUBTITLE_HEIGHT: Dp
pub const MEDIUM_FLEXIBLE_SUBTITLE_HEIGHT: Dp
Expanded medium height with a subtitle.
Sourcepub const LARGE_FLEXIBLE_HEIGHT: Dp
pub const LARGE_FLEXIBLE_HEIGHT: Dp
Expanded large height without a subtitle.
Sourcepub const LARGE_FLEXIBLE_SUBTITLE_HEIGHT: Dp
pub const LARGE_FLEXIBLE_SUBTITLE_HEIGHT: Dp
Expanded large height with a subtitle.
Sourcepub fn container_color(scheme: &MaterialColorScheme) -> Color
pub fn container_color(scheme: &MaterialColorScheme) -> Color
Container color for app bars.
Sourcepub fn title_color(scheme: &MaterialColorScheme) -> Color
pub fn title_color(scheme: &MaterialColorScheme) -> Color
Title content color for app bars.
Navigation icon color for app bars.
Sourcepub fn action_icon_color(scheme: &MaterialColorScheme) -> Color
pub fn action_icon_color(scheme: &MaterialColorScheme) -> Color
Action icon color for app bars.
Auto Trait Implementations§
impl Freeze for AppBarDefaults
impl RefUnwindSafe for AppBarDefaults
impl Send for AppBarDefaults
impl Sync for AppBarDefaults
impl Unpin for AppBarDefaults
impl UnsafeUnpin for AppBarDefaults
impl UnwindSafe for AppBarDefaults
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.