pub struct NoSplash { /* private fields */ }Expand description
An InteractiveInkFeature that doesn’t paint a splash.
Use NoSplash::splash_factory to defeat the default ink splash drawn by
an InkWell or ButtonStyle. For example, to create an ElevatedButton
that does not draw the default “ripple” ink splash when it’s tapped:
ElevatedButton::new()
.style(ElevatedButton::style_from().splash_factory(NoSplash::splash_factory()))
.on_pressed(..)
.child(Text::new("Run"))Implementations§
Source§impl NoSplash
impl NoSplash
Sourcepub fn new(
app: &mut App,
controller: AnyMaterialInkController,
reference_box: AnyRenderBox,
color: Color,
on_removed: Option<Listener>,
) -> Ref<NoSplash>
pub fn new( app: &mut App, controller: AnyMaterialInkController, reference_box: AnyRenderBox, color: Color, on_removed: Option<Listener>, ) -> Ref<NoSplash>
Create an InteractiveInkFeature that doesn’t paint a
splash.
Sourcepub fn splash_factory() -> InteractiveInkFeatureFactoryRef
pub fn splash_factory() -> InteractiveInkFeatureFactoryRef
Used to specify this type of ink splash for an InkWell,
InkResponse, material Theme, or ButtonStyle.
Dart’s static const: every call hands out the same factory, so they compare equal.
Trait Implementations§
Source§impl InkFeatureLeaf for NoSplash
impl InkFeatureLeaf for NoSplash
Source§impl InkFeatureLeafData for NoSplash
impl InkFeatureLeafData for NoSplash
Source§fn ink_feature(&self) -> &InkFeatureData
fn ink_feature(&self) -> &InkFeatureData
The leaf’s
InkFeature bag.Source§fn ink_feature_mut(&mut self) -> &mut InkFeatureData
fn ink_feature_mut(&mut self) -> &mut InkFeatureData
The leaf’s
InkFeature bag, mutably.Source§impl InteractiveInkFeatureLeaf for NoSplash
impl InteractiveInkFeatureLeaf for NoSplash
Source§impl InteractiveInkFeatureLeafData for NoSplash
impl InteractiveInkFeatureLeafData for NoSplash
Source§fn interactive_ink_feature(&self) -> &InteractiveInkFeatureData
fn interactive_ink_feature(&self) -> &InteractiveInkFeatureData
The leaf’s
InteractiveInkFeature bag.Source§fn interactive_ink_feature_mut(&mut self) -> &mut InteractiveInkFeatureData
fn interactive_ink_feature_mut(&mut self) -> &mut InteractiveInkFeatureData
The leaf’s
InteractiveInkFeature bag, mutably.Auto Trait Implementations§
impl !RefUnwindSafe for NoSplash
impl !Send for NoSplash
impl !Sync for NoSplash
impl !UnwindSafe for NoSplash
impl Forget for NoSplash
impl Freeze for NoSplashwhere
NonZero<u32>: Freeze,
PhantomData<fn() -> RenderInkFeatures>: Freeze,
&'static RenderBoxVTable: Freeze,
*const RcInner<dyn Fn(&mut App)> is !null: Freeze,
PhantomData<RcInner<dyn Fn(&mut App)>>: Freeze,
*const (): Freeze,
*const RcInner<dyn ShapeBorder> is !null: Freeze,
PhantomData<RcInner<dyn ShapeBorder>>: Freeze,
impl Move for NoSplash
impl Unpin for NoSplash
impl UnsafeUnpin for NoSplashwhere
NonZeroU32Inner: UnsafeUnpin,
PhantomData<fn() -> RenderInkFeatures>: UnsafeUnpin,
&'static RenderBoxVTable: UnsafeUnpin,
*const RcInner<dyn Fn(&mut App)> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn Fn(&mut App)>>: UnsafeUnpin,
*const (): UnsafeUnpin,
*const RcInner<dyn ShapeBorder> is !null: UnsafeUnpin,
PhantomData<RcInner<dyn ShapeBorder>>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<F> InkFeatureObject for Fwhere
F: InkFeatureLeaf,
impl<F> InkFeatureObject for Fwhere
F: InkFeatureLeaf,
Source§fn as_ink_feature(self: Handle<F>) -> AnyInkFeature
fn as_ink_feature(self: Handle<F>) -> AnyInkFeature
This feature as the erased
AnyInkFeature — what to pass where a Dart API takes an
InkFeature.Source§impl<F> InteractiveInkFeatureObject for Fwhere
F: InteractiveInkFeatureLeaf,
impl<F> InteractiveInkFeatureObject for Fwhere
F: InteractiveInkFeatureLeaf,
Source§fn as_interactive_ink_feature(self: Handle<F>) -> AnyInteractiveInkFeature
fn as_interactive_ink_feature(self: Handle<F>) -> AnyInteractiveInkFeature
This feature as the erased
AnyInteractiveInkFeature — what to pass where a Dart API
takes an InteractiveInkFeature.