Struct yew::html::MouseData [] [src]

pub struct MouseData {
    pub screen_x: f64,
    pub screen_y: f64,
    pub client_x: f64,
    pub client_y: f64,
}

A type representing data from onclick and ondoubleclick event.

Fields

The screenX read-only property of the MouseEvent property provides the horizontal coordinate (offset) of the mouse pointer in global (screen) coordinates.

The screenY read-only property of the MouseEvent property provides the vertical coordinate (offset) of the mouse pointer in global (screen) coordinates.

The clientX read-only property of the MouseEvent interface provides the horizontal coordinate within the application's client area at which the event occurred

The clientY read-only property of the MouseEvent interface provides the vertical coordinate within the application's client area at which the event occurred

Trait Implementations

impl Debug for MouseData
[src]

[src]

Formats the value using the given formatter.

impl<T: IMouseEvent> From<T> for MouseData
[src]

[src]

Performs the conversion.