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: Keyon_tap: Option<ValueChanged<i32>>current_index: i32elevation: f32bar_type: BottomNavigationBarTypefixed_color: Colorbackground_color: Coloricon_size: f32selected_item_color: Colorunselected_item_color: Colorselected_icon_theme: IconThemeDataunselected_icon_theme: IconThemeDataselected_font_size: f32unselected_font_size: f32selected_label_style: TextStyleunselected_label_style: TextStyleshow_selected_labels: boolshow_unselected_labels: boolmouse_cursor: MouseCursorenable_feedback: boollandscape_layout: BottomNavigationBarLandscapeLayoutTrait 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.