Struct components::material::BottomNavigationBar
source · [−]pub struct BottomNavigationBar {Show 21 fields
pub key: Key,
pub on_tap: Option<ValueChanged<i32>>,
pub current_index: i32,
pub elevation: f32,
pub bar_type: BottomNavigationBarType,
pub fixed_color: Color,
pub background_color: Color,
pub icon_size: f32,
pub selected_item_color: Color,
pub unselected_item_color: Color,
pub selected_icon_theme: IconThemeData,
pub unselected_icon_theme: IconThemeData,
pub selected_font_size: f32,
pub unselected_font_size: f32,
pub selected_label_style: TextStyle,
pub unselected_label_style: TextStyle,
pub show_selected_labels: bool,
pub show_unselected_labels: bool,
pub mouse_cursor: MouseCursor,
pub enable_feedback: bool,
pub landscape_layout: BottomNavigationBarLandscapeLayout,
}
Fields
key: Key
on_tap: Option<ValueChanged<i32>>
current_index: i32
elevation: f32
bar_type: BottomNavigationBarType
fixed_color: Color
background_color: Color
icon_size: f32
selected_item_color: Color
unselected_item_color: Color
selected_icon_theme: IconThemeData
unselected_icon_theme: IconThemeData
selected_font_size: f32
unselected_font_size: f32
selected_label_style: TextStyle
unselected_label_style: TextStyle
show_selected_labels: bool
show_unselected_labels: bool
mouse_cursor: MouseCursor
enable_feedback: bool
landscape_layout: BottomNavigationBarLandscapeLayout
Trait Implementations
sourceimpl Default for BottomNavigationBar
impl Default for BottomNavigationBar
sourceimpl Widget for BottomNavigationBar
impl Widget for BottomNavigationBar
sourceimpl WidgetProperties for BottomNavigationBar
impl WidgetProperties for BottomNavigationBar
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 BottomNavigationBar
impl !Send for BottomNavigationBar
impl !Sync for BottomNavigationBar
impl Unpin for BottomNavigationBar
impl !UnwindSafe for BottomNavigationBar
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
.