Struct components::material::RawMaterialButton
source · [−]pub struct RawMaterialButton {Show 27 fields
pub key: Key,
pub on_pressed: Option<VoidCallback>,
pub on_long_press: Option<VoidCallback>,
pub on_highlight_changed: Option<ValueChanged<bool>>,
pub mouse_cursor: MouseCursor,
pub text_style: TextStyle,
pub fill_color: Color,
pub focus_color: Color,
pub hover_color: Color,
pub highlight_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 padding: Box<dyn EdgeInsetsGeometry>,
pub visual_density: VisualDensity,
pub constraints: BoxConstraints,
pub shape: Box<dyn ShapeBorder>,
pub animation_duration: Duration,
pub clip_behavior: Clip,
pub focus_node: FocusNode,
pub autofocus: bool,
pub material_tap_target_size: MaterialTapTargetSize,
pub child: Box<dyn Widget>,
pub enable_feedback: bool,
}
Fields
key: Key
on_pressed: Option<VoidCallback>
on_long_press: Option<VoidCallback>
on_highlight_changed: Option<ValueChanged<bool>>
mouse_cursor: MouseCursor
text_style: TextStyle
fill_color: Color
focus_color: Color
hover_color: Color
highlight_color: Color
splash_color: Color
elevation: f32
focus_elevation: f32
hover_elevation: f32
highlight_elevation: f32
disabled_elevation: f32
padding: Box<dyn EdgeInsetsGeometry>
visual_density: VisualDensity
constraints: BoxConstraints
shape: Box<dyn ShapeBorder>
animation_duration: Duration
clip_behavior: Clip
focus_node: FocusNode
autofocus: bool
material_tap_target_size: MaterialTapTargetSize
child: Box<dyn Widget>
enable_feedback: bool
Trait Implementations
sourceimpl Default for RawMaterialButton
impl Default for RawMaterialButton
sourceimpl Widget for RawMaterialButton
impl Widget for RawMaterialButton
sourceimpl WidgetProperties for RawMaterialButton
impl WidgetProperties for RawMaterialButton
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 RawMaterialButton
impl !Send for RawMaterialButton
impl !Sync for RawMaterialButton
impl Unpin for RawMaterialButton
impl !UnwindSafe for RawMaterialButton
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
.