Struct components::material::AppBar
source · [−]pub struct AppBar {Show 28 fields
pub key: Key,
pub leading: Box<dyn Widget>,
pub automatically_imply_leading: bool,
pub title: Box<dyn Widget>,
pub actions: Vec<Box<dyn Widget>>,
pub flexible_space: Box<dyn Widget>,
pub bottom: Box<dyn PreferredSizeWidget>,
pub elevation: f32,
pub shadow_color: Color,
pub shape: Box<dyn ShapeBorder>,
pub background_color: Color,
pub foreground_color: Color,
pub brightness: Brightness,
pub icon_theme: IconThemeData,
pub actions_icon_theme: IconThemeData,
pub text_theme: TextTheme,
pub primary: bool,
pub center_title: bool,
pub exclude_header_semantics: bool,
pub title_spacing: f32,
pub toolbar_opacity: f32,
pub bottom_opacity: f32,
pub toolbar_height: f32,
pub leading_width: f32,
pub backwards_compatibility: bool,
pub toolbar_text_style: TextStyle,
pub title_text_style: TextStyle,
pub system_overlay_style: SystemUiOverlayStyle,
}
Fields
key: Key
leading: Box<dyn Widget>
automatically_imply_leading: bool
title: Box<dyn Widget>
actions: Vec<Box<dyn Widget>>
flexible_space: Box<dyn Widget>
bottom: Box<dyn PreferredSizeWidget>
elevation: f32
shadow_color: Color
shape: Box<dyn ShapeBorder>
background_color: Color
foreground_color: Color
brightness: Brightness
icon_theme: IconThemeData
actions_icon_theme: IconThemeData
text_theme: TextTheme
primary: bool
center_title: bool
exclude_header_semantics: bool
title_spacing: f32
toolbar_opacity: f32
bottom_opacity: f32
toolbar_height: f32
leading_width: f32
backwards_compatibility: bool
toolbar_text_style: TextStyle
title_text_style: TextStyle
system_overlay_style: SystemUiOverlayStyle
Trait Implementations
sourceimpl PreferredSizeWidget for AppBar
impl PreferredSizeWidget for AppBar
fn preferred_size(&self) -> Size
sourceimpl WidgetProperties for AppBar
impl WidgetProperties for AppBar
sourcefn mouse_input(&self) -> bool
fn mouse_input(&self) -> bool
Whether or not the control responds to mouse input
sourcefn renderable(&self) -> bool
fn renderable(&self) -> bool
Whether or not the control emits render signals from the canvas render call
sourcefn internal_visible(&self) -> bool
fn internal_visible(&self) -> bool
Internal. Internal parent visibility for creating sub controls.
Auto Trait Implementations
impl !RefUnwindSafe for AppBar
impl !Send for AppBar
impl !Sync for AppBar
impl Unpin for AppBar
impl !UnwindSafe for AppBar
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<'a, T, C, M> Inspect<'a, C, &'a mut C, M> for T
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
fn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.