pub type cef_touch_event_t = _cef_touch_event_t;Expand description
Structure representing touch event information.
Aliased Type§
#[repr(C)]pub struct cef_touch_event_t {
pub id: i32,
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,
}Fields§
§id: i32Id 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.