pub struct InkStyle {
pub color: Color,
pub radius: BorderRadius,
}Expand description
What a widget declares when it takes ink: what colour to splash in, and the shape to keep the splash inside.
A widget returns this from Widget::ink — with the theme in
hand, so a coloured surface can splash in its own on colour instead of the one a
plain surface would use. The walk then paints the runtime’s ripples directly over
that widget’s own paint and under its children, which is where a material surface
puts them.
Fields§
§color: ColorThe splash colour, alpha included: how present the ink is, not just its hue.
radius: BorderRadiusThe corner radii the ink is clipped to. Ink never escapes its box; this says how that box is shaped.
Implementations§
Trait Implementations§
impl Copy for InkStyle
impl StructuralPartialEq for InkStyle
Auto Trait Implementations§
impl Freeze for InkStyle
impl RefUnwindSafe for InkStyle
impl Send for InkStyle
impl Sync for InkStyle
impl Unpin for InkStyle
impl UnsafeUnpin for InkStyle
impl UnwindSafe for InkStyle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more