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: Keyleading: Box<dyn Widget>automatically_imply_leading: booltitle: Box<dyn Widget>actions: Vec<Box<dyn Widget>>flexible_space: Box<dyn Widget>bottom: Box<dyn PreferredSizeWidget>elevation: f32shadow_color: Colorshape: Box<dyn ShapeBorder>background_color: Colorforeground_color: Colorbrightness: Brightnessicon_theme: IconThemeDataactions_icon_theme: IconThemeDatatext_theme: TextThemeprimary: boolcenter_title: boolexclude_header_semantics: booltitle_spacing: f32toolbar_opacity: f32bottom_opacity: f32toolbar_height: f32leading_width: f32backwards_compatibility: booltoolbar_text_style: TextStyletitle_text_style: TextStylesystem_overlay_style: SystemUiOverlayStyleTrait 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.