pub struct CanvasInput {
pub relative_motion: Vec2,
pub events: Vec<Event>,
pub pointer: Option<Vec2>,
pub hovered: bool,
pub focused: bool,
pub window_focused: bool,
pub modifiers: Modifiers,
/* private fields */
}Expand description
Immutable input paired with one content frame.
Fields§
§relative_motion: Vec2Summed relative mouse motion in platform-defined device units. Unaffected by display scaling. Hosts provide it only while this canvas is focused; cancellation clears it. Do not also use pointer deltas for the same motion.
events: Vec<Event>§pointer: Option<Vec2>§hovered: bool§focused: bool§window_focused: bool§modifiers: ModifiersImplementations§
Trait Implementations§
Source§impl Clone for CanvasInput
impl Clone for CanvasInput
Source§impl Debug for CanvasInput
impl Debug for CanvasInput
Auto Trait Implementations§
impl Freeze for CanvasInput
impl RefUnwindSafe for CanvasInput
impl Send for CanvasInput
impl Sync for CanvasInput
impl Unpin for CanvasInput
impl UnsafeUnpin for CanvasInput
impl UnwindSafe for CanvasInput
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