Struct components::material::MaterialButton
source · [−]pub struct MaterialButton {Show 32 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_theme: ButtonTextTheme,
pub text_color: Color,
pub disabled_text_color: Color,
pub color: Color,
pub disabled_color: Color,
pub focus_color: Color,
pub hover_color: Color,
pub highlight_color: Color,
pub splash_color: Color,
pub color_brightness: Brightness,
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 shape: Box<dyn ShapeBorder>,
pub clip_behavior: Clip,
pub focus_node: FocusNode,
pub autofocus: bool,
pub material_tap_target_size: MaterialTapTargetSize,
pub animation_duration: Duration,
pub min_width: f32,
pub height: f32,
pub enable_feedback: bool,
pub child: Box<dyn Widget>,
}
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
Fields
key: Key
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
on_pressed: Option<VoidCallback>
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
on_long_press: Option<VoidCallback>
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
on_highlight_changed: Option<ValueChanged<bool>>
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
mouse_cursor: MouseCursor
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
text_theme: ButtonTextTheme
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
text_color: Color
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
disabled_text_color: Color
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
color: Color
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
disabled_color: Color
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
focus_color: Color
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
hover_color: Color
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
highlight_color: Color
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
splash_color: Color
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
color_brightness: Brightness
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
elevation: f32
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
focus_elevation: f32
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
hover_elevation: f32
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
highlight_elevation: f32
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
disabled_elevation: f32
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
padding: Box<dyn EdgeInsetsGeometry>
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
visual_density: VisualDensity
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
shape: Box<dyn ShapeBorder>
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
clip_behavior: Clip
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
focus_node: FocusNode
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
autofocus: bool
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
material_tap_target_size: MaterialTapTargetSize
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
animation_duration: Duration
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
min_width: f32
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
height: f32
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
enable_feedback: bool
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
child: Box<dyn Widget>
This class is obsolete. FlatButton, RaisedButton, and OutlineButton have been replaced by TextButton, ElevatedButton, and OutlinedButton respectively.
Trait Implementations
sourceimpl Default for MaterialButton
impl Default for MaterialButton
sourceimpl Widget for MaterialButton
impl Widget for MaterialButton
sourceimpl WidgetProperties for MaterialButton
impl WidgetProperties for MaterialButton
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 MaterialButton
impl !Send for MaterialButton
impl !Sync for MaterialButton
impl Unpin for MaterialButton
impl !UnwindSafe for MaterialButton
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
.