Struct components::material::FloatingActionButton
source · [−]pub struct FloatingActionButton {Show 23 fields
pub key: Key,
pub child: Box<dyn Widget>,
pub tooltip: String,
pub foreground_color: Color,
pub background_color: Color,
pub focus_color: Color,
pub hover_color: Color,
pub splash_color: Color,
pub elevation: f32,
pub focus_elevation: f32,
pub hover_elevation: f32,
pub highlight_elevation: f32,
pub disabled_elevation: f32,
pub on_pressed: Option<VoidCallback>,
pub mouse_cursor: MouseCursor,
pub mini: bool,
pub shape: Box<dyn ShapeBorder>,
pub clip_behavior: Clip,
pub focus_node: FocusNode,
pub autofocus: bool,
pub material_tap_target_size: MaterialTapTargetSize,
pub is_extended: bool,
pub enable_feedback: bool,
}
Fields
key: Key
child: Box<dyn Widget>
tooltip: String
foreground_color: Color
background_color: Color
focus_color: Color
hover_color: Color
splash_color: Color
elevation: f32
focus_elevation: f32
hover_elevation: f32
highlight_elevation: f32
disabled_elevation: f32
on_pressed: Option<VoidCallback>
mouse_cursor: MouseCursor
mini: bool
shape: Box<dyn ShapeBorder>
clip_behavior: Clip
focus_node: FocusNode
autofocus: bool
material_tap_target_size: MaterialTapTargetSize
is_extended: bool
enable_feedback: bool
Trait Implementations
sourceimpl Default for FloatingActionButton
impl Default for FloatingActionButton
sourceimpl Widget for FloatingActionButton
impl Widget for FloatingActionButton
sourceimpl WidgetProperties for FloatingActionButton
impl WidgetProperties for FloatingActionButton
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 FloatingActionButton
impl !Send for FloatingActionButton
impl !Sync for FloatingActionButton
impl Unpin for FloatingActionButton
impl !UnwindSafe for FloatingActionButton
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
.