Struct cdp::input::TouchPoint
[−]
[src]
pub struct TouchPoint {
pub x: i32,
pub y: i32,
pub radius_x: Option<i32>,
pub radius_y: Option<i32>,
pub rotation_angle: Option<f64>,
pub force: Option<f64>,
pub id: Option<f64>,
}[Experimental]
Fields
x: i32
X coordinate of the event relative to the main frame's viewport in CSS pixels.
y: i32
Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.
radius_x: Option<i32>
X radius of the touch area (default: 1).
radius_y: Option<i32>
Y radius of the touch area (default: 1).
rotation_angle: Option<f64>
Rotation angle (default: 0.0).
force: Option<f64>
Force (default: 1.0).
id: Option<f64>
Identifier used to track touch sources between events, must be unique within an event.
Trait Implementations
impl Clone for TouchPoint[src]
fn clone(&self) -> TouchPoint[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Debug for TouchPoint[src]
impl PartialEq for TouchPoint[src]
fn eq(&self, __arg_0: &TouchPoint) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &TouchPoint) -> bool[src]
This method tests for !=.