#[non_exhaustive]pub struct ActionFrame {
pub navigation: NavigationActions,
pub actions: HashMap<Action, ResolvedActionState>,
pub text: Vec<char>,
pub pointer: PointerFrame,
}Expand description
Per-frame resolved action output.
Returned by OrbitCameraController::apply_to_camera and available from
ViewportInput after a frame.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.Resolved camera navigation actions.
actions: HashMap<Action, ResolvedActionState>General action states resolved this frame (key presses, holds, etc.).
text: Vec<char>Characters typed this frame while the viewport owned the keyboard, control characters left out.
Filled from super::event::ViewportEvent::Character events, which the
winit and egui adapters’ translate produce. A manipulation session reads
the digits, . and - in it for numeric entry and ignores the rest.
pointer: PointerFrameCursor position, pointer delta, and click-vs-drag flags for this frame.
Implementations§
Source§impl ActionFrame
impl ActionFrame
Trait Implementations§
Source§impl Clone for ActionFrame
impl Clone for ActionFrame
Source§fn clone(&self) -> ActionFrame
fn clone(&self) -> ActionFrame
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 ActionFrame
impl Debug for ActionFrame
Source§impl Default for ActionFrame
impl Default for ActionFrame
Source§fn default() -> ActionFrame
fn default() -> ActionFrame
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Forget for ActionFrame
impl Freeze for ActionFrame
impl Move for ActionFrame
impl RefUnwindSafe for ActionFrame
impl Send for ActionFrame
impl Sync for ActionFrame
impl Unpin for ActionFrame
impl UnsafeUnpin for ActionFrame
impl UnwindSafe for ActionFrame
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