pub struct KeyboardDragConfig {
pub activate_keys: Vec<ActivateKey>,
pub cancel_on_escape: bool,
pub target_highlight_style: TargetHighlightStyle,
pub invalid_target_style: TargetHighlightStyle,
pub wrap_navigation: bool,
pub max_announcement_queue: usize,
}Expand description
Configuration for keyboard drag behavior.
Fields§
§activate_keys: Vec<ActivateKey>Keys that activate drag (pick up or drop). Default: Space, Enter
cancel_on_escape: boolWhether Escape cancels the drag.
target_highlight_style: TargetHighlightStyleStyle for highlighting the selected drop target.
invalid_target_style: TargetHighlightStyleStyle for highlighting invalid drop targets.
Whether to wrap around when navigating past the last/first target.
max_announcement_queue: usizeMaximum announcements to queue.
Trait Implementations§
Source§impl Clone for KeyboardDragConfig
impl Clone for KeyboardDragConfig
Source§fn clone(&self) -> KeyboardDragConfig
fn clone(&self) -> KeyboardDragConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 KeyboardDragConfig
impl Debug for KeyboardDragConfig
Auto Trait Implementations§
impl Freeze for KeyboardDragConfig
impl RefUnwindSafe for KeyboardDragConfig
impl Send for KeyboardDragConfig
impl Sync for KeyboardDragConfig
impl Unpin for KeyboardDragConfig
impl UnwindSafe for KeyboardDragConfig
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