Struct chromiumoxide_cdp::cdp::browser_protocol::input::TouchPoint [−][src]
pub struct TouchPoint { pub x: f64, pub y: f64, pub radius_x: Option<f64>, pub radius_y: Option<f64>, pub rotation_angle: Option<f64>, pub force: Option<f64>, pub id: Option<f64>, }
Fields
x: f64
X coordinate of the event relative to the main frame’s viewport in CSS pixels.
y: f64
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<f64>
X radius of the touch area (default: 1.0).
radius_y: Option<f64>
Y radius of the touch area (default: 1.0).
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.
Implementations
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for TouchPoint
impl Send for TouchPoint
impl Sync for TouchPoint
impl Unpin for TouchPoint
impl UnwindSafe for TouchPoint
Blanket Implementations
Mutably borrows from an owned value. Read more