Struct components::material::ButtonStyle
source · [−]pub struct ButtonStyle {Show 19 fields
pub text_style: MaterialStateProperty<TextStyle>,
pub background_color: MaterialStateProperty<Color>,
pub foreground_color: MaterialStateProperty<Color>,
pub overlay_color: MaterialStateProperty<Color>,
pub shadow_color: MaterialStateProperty<Color>,
pub elevation: MaterialStateProperty<f32>,
pub padding: MaterialStateProperty<Option<Box<dyn EdgeInsetsGeometry>>>,
pub minimum_size: MaterialStateProperty<Size>,
pub fixed_size: MaterialStateProperty<Size>,
pub maximum_size: MaterialStateProperty<Size>,
pub side: MaterialStateProperty<BorderSide>,
pub shape: MaterialStateProperty<Option<Box<dyn OutlinedBorder>>>,
pub mouse_cursor: MaterialStateProperty<MouseCursor>,
pub visual_density: VisualDensity,
pub tap_target_size: MaterialTapTargetSize,
pub animation_duration: Duration,
pub enable_feedback: bool,
pub alignment: Box<dyn AlignmentGeometry>,
pub splash_factory: InteractiveInkFeatureFactory,
}
Fields
text_style: MaterialStateProperty<TextStyle>
background_color: MaterialStateProperty<Color>
foreground_color: MaterialStateProperty<Color>
overlay_color: MaterialStateProperty<Color>
shadow_color: MaterialStateProperty<Color>
elevation: MaterialStateProperty<f32>
padding: MaterialStateProperty<Option<Box<dyn EdgeInsetsGeometry>>>
minimum_size: MaterialStateProperty<Size>
fixed_size: MaterialStateProperty<Size>
maximum_size: MaterialStateProperty<Size>
side: MaterialStateProperty<BorderSide>
shape: MaterialStateProperty<Option<Box<dyn OutlinedBorder>>>
mouse_cursor: MaterialStateProperty<MouseCursor>
visual_density: VisualDensity
tap_target_size: MaterialTapTargetSize
animation_duration: Duration
enable_feedback: bool
alignment: Box<dyn AlignmentGeometry>
splash_factory: InteractiveInkFeatureFactory
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for ButtonStyle
impl !Send for ButtonStyle
impl !Sync for ButtonStyle
impl Unpin for ButtonStyle
impl !UnwindSafe for ButtonStyle
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
.