#[repr(C)]pub struct _cef_touch_event_t {
pub id: c_int,
pub x: f32,
pub y: f32,
pub radius_x: f32,
pub radius_y: f32,
pub rotation_angle: f32,
pub pressure: f32,
pub type_: cef_touch_event_type_t,
pub modifiers: u32,
pub pointer_type: cef_pointer_type_t,
}Expand description
Structure representing touch event information.
Fields§
§id: c_intId of a touch point. Must be unique per touch, can be any number except -1. Note that a maximum of 16 concurrent touches will be tracked; touches beyond that will be ignored.
x: f32X coordinate relative to the left side of the view.
y: f32Y coordinate relative to the top side of the view.
radius_x: f32X radius in pixels. Set to 0 if not applicable.
radius_y: f32Y radius in pixels. Set to 0 if not applicable.
rotation_angle: f32Rotation angle in radians. Set to 0 if not applicable.
pressure: f32The normalized pressure of the pointer input in the range of [0,1]. Set to 0 if not applicable.
type_: cef_touch_event_type_tThe state of the touch point. Touches begin with one CEF_TET_PRESSED event followed by zero or more CEF_TET_MOVED events and finally one CEF_TET_RELEASED or CEF_TET_CANCELLED event. Events not respecting this order will be ignored.
modifiers: u32Bit flags describing any pressed modifier keys. See cef_event_flags_t for values.
pointer_type: cef_pointer_type_tThe device type that caused the event.
Trait Implementations§
Source§impl Clone for _cef_touch_event_t
impl Clone for _cef_touch_event_t
Source§fn clone(&self) -> _cef_touch_event_t
fn clone(&self) -> _cef_touch_event_t
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more