pub struct PointerPressed {
pub position: Vec2,
pub button: PointerButton,
pub local: Option<Vec2>,
}Expand description
Pointer button pressed.
Fields§
§position: Vec2Position at time of press.
Which button.
local: Option<Vec2>The position relative to the target’s border box, when the backend
measured that box itself: a page asks the browser, which lays it out.
None leaves it to Lumen’s own layout, which is what a native window
backend does.
Trait Implementations§
Source§impl Clone for PointerPressed
impl Clone for PointerPressed
Source§fn clone(&self) -> PointerPressed
fn clone(&self) -> PointerPressed
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 PointerPressed
impl Debug for PointerPressed
impl Copy for PointerPressed
impl Message for PointerPressed
Auto Trait Implementations§
impl Freeze for PointerPressed
impl RefUnwindSafe for PointerPressed
impl Send for PointerPressed
impl Sync for PointerPressed
impl Unpin for PointerPressed
impl UnsafeUnpin for PointerPressed
impl UnwindSafe for PointerPressed
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> IntoResult<T> for T
impl<T> IntoResult<T> for T
§fn into_result(self) -> Result<T, RunSystemError>
fn into_result(self) -> Result<T, RunSystemError>
Converts this type into the system output type.