#[non_exhaustive]pub enum Action {
Show 33 variants
Orbit,
Pan,
Zoom,
FocusObject,
ResetView,
ToggleWireframe,
CycleGizmoMode,
EnterFlyMode,
FlyForward,
FlyBackward,
FlyLeft,
FlyRight,
FlyUp,
FlyDown,
FlySpeedBoost,
BeginMove,
BeginRotate,
BeginScale,
ConstrainX,
ConstrainY,
ConstrainZ,
ExcludeX,
ExcludeY,
ExcludeZ,
Confirm,
Cancel,
Undo,
Redo,
FlySpeedIncrease,
FlySpeedDecrease,
ToggleGizmoSpace,
OpenAddMenu,
DeleteSelected,
}Expand description
Semantic actions that can be triggered by user input.
Actions are decoupled from their physical triggers (keys/mouse buttons), enabling future key reconfiguration and context-sensitive bindings.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Orbit
Rotate the camera around the orbit center (arcball).
Pan
Translate the orbit center in the camera plane.
Zoom
Zoom in/out by adjusting camera distance.
FocusObject
Frame the selected object (zoom-to-fit).
ResetView
Reset camera to the default view.
ToggleWireframe
Toggle between solid and wireframe render modes.
CycleGizmoMode
Cycle the gizmo mode (Translate → Rotate → Scale).
EnterFlyMode
Enter first-person fly-through mode.
FlyForward
Move forward in fly mode.
FlyBackward
Move backward in fly mode.
FlyLeft
Strafe left in fly mode.
FlyRight
Strafe right in fly mode.
FlyUp
Move up in fly mode.
FlyDown
Move down in fly mode.
FlySpeedBoost
Hold to increase fly-mode movement speed.
BeginMove
Begin keyboard-driven move (G key).
BeginRotate
Begin keyboard-driven rotate (R key).
BeginScale
Begin keyboard-driven scale (S key).
ConstrainX
Constrain transform to the X axis.
ConstrainY
Constrain transform to the Y axis.
ConstrainZ
Constrain transform to the Z axis.
ExcludeX
Shift+X/Y/Z — exclude that axis, operate in the perpendicular plane.
ExcludeY
Exclude the Y axis; operate in the XZ plane.
ExcludeZ
Exclude the Z axis; operate in the XY plane.
Confirm
Confirm the current operation (Enter / left-click).
Cancel
Cancel the current operation (Escape / right-click).
Undo
Undo the last action.
Redo
Redo the previously undone action.
FlySpeedIncrease
Increase fly-mode movement speed.
FlySpeedDecrease
Decrease fly-mode movement speed.
ToggleGizmoSpace
Toggle gizmo between World and Local coordinate space.
OpenAddMenu
Shift+A: open the radial “Add Object” menu.
DeleteSelected
X: prompt to delete the currently selected object.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Action
impl<'de> Deserialize<'de> for Action
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Copy for Action
impl Eq for Action
impl StructuralPartialEq for Action
Auto Trait Implementations§
impl Freeze for Action
impl RefUnwindSafe for Action
impl Send for Action
impl Sync for Action
impl Unpin for Action
impl UnsafeUnpin for Action
impl UnwindSafe for Action
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.