pub struct SwipeToDismissConfig {
pub modifier: Modifier,
pub dismiss_threshold: f32,
pub dismissed_offset: f32,
pub animation_spec: AnimationSpec,
pub gestures_enabled: bool,
pub enable_dismiss_from_start_to_end: bool,
pub enable_dismiss_from_end_to_start: bool,
}Expand description
Configuration for swipe-to-dismiss.
Fields§
§modifier: Modifier§dismiss_threshold: f32§dismissed_offset: f32§animation_spec: AnimationSpec§gestures_enabled: bool§enable_dismiss_from_start_to_end: bool§enable_dismiss_from_end_to_start: boolTrait Implementations§
Source§impl Clone for SwipeToDismissConfig
impl Clone for SwipeToDismissConfig
Source§fn clone(&self) -> SwipeToDismissConfig
fn clone(&self) -> SwipeToDismissConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SwipeToDismissConfig
impl Debug for SwipeToDismissConfig
Auto Trait Implementations§
impl !RefUnwindSafe for SwipeToDismissConfig
impl !Send for SwipeToDismissConfig
impl !Sync for SwipeToDismissConfig
impl !UnwindSafe for SwipeToDismissConfig
impl Freeze for SwipeToDismissConfig
impl Unpin for SwipeToDismissConfig
impl UnsafeUnpin for SwipeToDismissConfig
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