pub enum AppAction {
Rotate {
dx: f32,
dy: f32,
},
Zoom {
delta: f32,
},
Pan {
dx: f32,
dy: f32,
},
ScrollStep {
delta: i32,
},
DragAdjust {
dx: f32,
dy: f32,
},
PointerUpdate {
x: f32,
y: f32,
},
}Expand description
Abstract application action produced by the input mapper. These cover common interaction patterns for 3D/2D applications. Consumers can extend or replace these with domain-specific actions.
Variants§
Rotate
Camera orbit / rotation (e.g., left-drag in a 3D viewport).
Zoom
Camera zoom (e.g., scroll or middle-drag).
Pan
Camera pan / translate.
ScrollStep
Discrete scroll through items (e.g., layers, frames, slices).
DragAdjust
Two-axis parameter adjustment via drag (e.g., brightness/contrast).
PointerUpdate
Raw pointer position update (for cursor overlay rendering).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AppAction
impl RefUnwindSafe for AppAction
impl Send for AppAction
impl Sync for AppAction
impl Unpin for AppAction
impl UnsafeUnpin for AppAction
impl UnwindSafe for AppAction
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