pub struct KeyboardDragState {
pub source_id: WidgetId,
pub payload: DragPayload,
pub selected_target_index: Option<usize>,
pub mode: KeyboardDragMode,
pub animation_tick: u8,
}Expand description
State of an active keyboard drag operation.
Fields§
§source_id: WidgetIdWidget that initiated the drag.
payload: DragPayloadData being dragged.
selected_target_index: Option<usize>Currently selected drop target index (into available targets list).
mode: KeyboardDragModeCurrent mode.
animation_tick: u8Animation tick for pulse effect.
Implementations§
Source§impl KeyboardDragState
impl KeyboardDragState
Sourcepub fn tick_animation(&mut self)
pub fn tick_animation(&mut self)
Advance the animation tick.
Sourcepub fn pulse_intensity(&self) -> f32
pub fn pulse_intensity(&self) -> f32
Get the pulse intensity (0.0 to 1.0) for animation.
Trait Implementations§
Source§impl Clone for KeyboardDragState
impl Clone for KeyboardDragState
Source§fn clone(&self) -> KeyboardDragState
fn clone(&self) -> KeyboardDragState
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 moreAuto Trait Implementations§
impl Freeze for KeyboardDragState
impl RefUnwindSafe for KeyboardDragState
impl Send for KeyboardDragState
impl Sync for KeyboardDragState
impl Unpin for KeyboardDragState
impl UnwindSafe for KeyboardDragState
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