Struct components::material::TabBar
source · [−]pub struct TabBar {Show 20 fields
pub key: Key,
pub tabs: Vec<Box<dyn Widget>>,
pub is_scrollable: bool,
pub padding: Box<dyn EdgeInsetsGeometry>,
pub indicator_color: Color,
pub automatic_indicator_color_adjustment: bool,
pub indicator_weight: f32,
pub indicator_padding: Box<dyn EdgeInsetsGeometry>,
pub indicator: Box<dyn Decoration>,
pub indicator_size: TabBarIndicatorSize,
pub label_color: Color,
pub label_style: TextStyle,
pub label_padding: Box<dyn EdgeInsetsGeometry>,
pub unselected_label_color: Color,
pub unselected_label_style: TextStyle,
pub drag_start_behavior: DragStartBehavior,
pub overlay_color: MaterialStateProperty<Color>,
pub mouse_cursor: MouseCursor,
pub enable_feedback: bool,
pub on_tap: Option<ValueChanged<i32>>,
}Fields
key: Keytabs: Vec<Box<dyn Widget>>is_scrollable: boolpadding: Box<dyn EdgeInsetsGeometry>indicator_color: Colorautomatic_indicator_color_adjustment: boolindicator_weight: f32indicator_padding: Box<dyn EdgeInsetsGeometry>indicator: Box<dyn Decoration>indicator_size: TabBarIndicatorSizelabel_color: Colorlabel_style: TextStylelabel_padding: Box<dyn EdgeInsetsGeometry>unselected_label_color: Colorunselected_label_style: TextStyledrag_start_behavior: DragStartBehavioroverlay_color: MaterialStateProperty<Color>mouse_cursor: MouseCursorenable_feedback: boolon_tap: Option<ValueChanged<i32>>Trait Implementations
sourceimpl WidgetProperties for TabBar
impl WidgetProperties for TabBar
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 TabBar
impl !Send for TabBar
impl !Sync for TabBar
impl Unpin for TabBar
impl !UnwindSafe for TabBar
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.