Struct components::material::NavigationRail
source · [−]pub struct NavigationRail {Show 17 fields
pub key: Key,
pub background_color: Color,
pub extended: bool,
pub leading: Box<dyn Widget>,
pub trailing: Box<dyn Widget>,
pub destinations: Vec<NavigationRailDestination>,
pub selected_index: i32,
pub on_destination_selected: Option<ValueChanged<i32>>,
pub elevation: f32,
pub group_alignment: f32,
pub label_type: NavigationRailLabelType,
pub unselected_label_text_style: TextStyle,
pub selected_label_text_style: TextStyle,
pub unselected_icon_theme: IconThemeData,
pub selected_icon_theme: IconThemeData,
pub min_width: f32,
pub min_extended_width: f32,
}
Fields
key: Key
background_color: Color
extended: bool
leading: Box<dyn Widget>
trailing: Box<dyn Widget>
destinations: Vec<NavigationRailDestination>
selected_index: i32
on_destination_selected: Option<ValueChanged<i32>>
elevation: f32
group_alignment: f32
label_type: NavigationRailLabelType
unselected_label_text_style: TextStyle
selected_label_text_style: TextStyle
unselected_icon_theme: IconThemeData
selected_icon_theme: IconThemeData
min_width: f32
min_extended_width: f32
Trait Implementations
sourceimpl Default for NavigationRail
impl Default for NavigationRail
sourceimpl Widget for NavigationRail
impl Widget for NavigationRail
sourceimpl WidgetProperties for NavigationRail
impl WidgetProperties for NavigationRail
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 NavigationRail
impl !Send for NavigationRail
impl !Sync for NavigationRail
impl Unpin for NavigationRail
impl !UnwindSafe for NavigationRail
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
.