[−][src]Struct sauron_vdom::event::Coordinate
The coordinate of the event
Fields
client_x: i32
x component of the client https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientX
client_y: i32
y component of the client https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/clientY
movement_x: i32
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementX
movement_y: i32
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/movementY
offset_x: i32
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetX
offset_y: i32
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/offsetY
screen_x: i32
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenX
screen_y: i32
https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent/screenY
x: i32
x component
y: i32
y component
Implementations
impl Coordinate
[src]
pub fn new(x: i32, y: i32) -> Self
[src]
creates a new coordinate with x and y component
pub fn x(&self) -> i32
[src]
returns the x component of the coordinate
pub fn y(&self) -> i32
[src]
returns the y component of the coordinate
Trait Implementations
impl Clone for Coordinate
[src]
fn clone(&self) -> Coordinate
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Coordinate
[src]
impl Debug for Coordinate
[src]
impl Default for Coordinate
[src]
fn default() -> Coordinate
[src]
impl Eq for Coordinate
[src]
impl PartialEq<Coordinate> for Coordinate
[src]
fn eq(&self, other: &Coordinate) -> bool
[src]
fn ne(&self, other: &Coordinate) -> bool
[src]
impl StructuralEq for Coordinate
[src]
impl StructuralPartialEq for Coordinate
[src]
Auto Trait Implementations
impl RefUnwindSafe for Coordinate
impl Send for Coordinate
impl Sync for Coordinate
impl Unpin for Coordinate
impl UnwindSafe for Coordinate
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,