pub struct UiInput {
pub pointer: Option<Vec2>,
pub primary: UiButton,
pub next: bool,
pub previous: bool,
pub activate: bool,
pub cancel: bool,
pub window_focused: bool,
}Expand description
One fixed tick’s UI input. Supply viewport-mapped positions; None denotes
bars/unavailable motion. Focus loss cancels interactions and clears focus.
Fields§
§pointer: Option<Vec2>Pointer in reference UI units, when available.
primary: UiButtonPrimary pointer button.
next: boolForward focus press edge.
previous: boolBackward focus press edge.
activate: boolFocused activation press edge.
cancel: boolCancellation press edge.
window_focused: boolWhether the native window can accept input.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for UiInput
impl RefUnwindSafe for UiInput
impl Send for UiInput
impl Sync for UiInput
impl Unpin for UiInput
impl UnsafeUnpin for UiInput
impl UnwindSafe for UiInput
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