Struct components::material::Scaffold
source · [−]pub struct Scaffold {Show 24 fields
pub key: Key,
pub app_bar: Box<dyn PreferredSizeWidget>,
pub body: Box<dyn Widget>,
pub floating_action_button: Box<dyn Widget>,
pub floating_action_button_location: FloatingActionButtonLocation,
pub floating_action_button_animator: FloatingActionButtonAnimator,
pub persistent_footer_buttons: Vec<Box<dyn Widget>>,
pub drawer: Box<dyn Widget>,
pub on_drawer_changed: Option<Box<dyn DrawerCallback>>,
pub end_drawer: Box<dyn Widget>,
pub on_end_drawer_changed: Option<Box<dyn DrawerCallback>>,
pub bottom_navigation_bar: Box<dyn Widget>,
pub bottom_sheet: Box<dyn Widget>,
pub background_color: Color,
pub resize_to_avoid_bottom_inset: bool,
pub primary: bool,
pub drawer_drag_start_behavior: DragStartBehavior,
pub extend_body: bool,
pub extend_body_behind_app_bar: bool,
pub drawer_scrim_color: Color,
pub drawer_edge_drag_width: f32,
pub drawer_enable_open_drag_gesture: bool,
pub end_drawer_enable_open_drag_gesture: bool,
pub restoration_id: String,
}
Fields
key: Key
app_bar: Box<dyn PreferredSizeWidget>
body: Box<dyn Widget>
drawer: Box<dyn Widget>
on_drawer_changed: Option<Box<dyn DrawerCallback>>
end_drawer: Box<dyn Widget>
on_end_drawer_changed: Option<Box<dyn DrawerCallback>>
bottom_sheet: Box<dyn Widget>
background_color: Color
resize_to_avoid_bottom_inset: bool
primary: bool
drawer_drag_start_behavior: DragStartBehavior
extend_body: bool
extend_body_behind_app_bar: bool
drawer_scrim_color: Color
drawer_edge_drag_width: f32
drawer_enable_open_drag_gesture: bool
end_drawer_enable_open_drag_gesture: bool
restoration_id: String
Trait Implementations
sourceimpl WidgetProperties for Scaffold
impl WidgetProperties for Scaffold
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 Scaffold
impl !Send for Scaffold
impl !Sync for Scaffold
impl Unpin for Scaffold
impl !UnwindSafe for Scaffold
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
.