Chromium Embedded Framework (CEF)  130.1.2+g48f3ef6+chromium-130.0.6723.44
cef_touch_event_t Struct Reference

Structure representing touch event information. More...

#include "include/internal/cef_types.h"

Inheritance diagram for cef_touch_event_t:
CefTouchEvent

Public Attributes

int id
 Id of a touch point. More...
 
float x
 X coordinate relative to the left side of the view. More...
 
float y
 Y coordinate relative to the top side of the view. More...
 
float radius_x
 X radius in pixels. More...
 
float radius_y
 Y radius in pixels. More...
 
float rotation_angle
 Rotation angle in radians. More...
 
float pressure
 The normalized pressure of the pointer input in the range of [0,1]. More...
 
cef_touch_event_type_t type
 The state of the touch point. More...
 
uint32_t modifiers
 Bit flags describing any pressed modifier keys. More...
 
cef_pointer_type_t pointer_type
 The device type that caused the event. More...
 

Detailed Description

Structure representing touch event information.

Member Data Documentation

◆ id

int cef_touch_event_t::id

Id 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.

◆ modifiers

uint32_t cef_touch_event_t::modifiers

Bit flags describing any pressed modifier keys.

See cef_event_flags_t for values.

◆ pointer_type

cef_pointer_type_t cef_touch_event_t::pointer_type

The device type that caused the event.

◆ pressure

float cef_touch_event_t::pressure

The normalized pressure of the pointer input in the range of [0,1].

Set to 0 if not applicable.

◆ radius_x

float cef_touch_event_t::radius_x

X radius in pixels.

Set to 0 if not applicable.

◆ radius_y

float cef_touch_event_t::radius_y

Y radius in pixels.

Set to 0 if not applicable.

◆ rotation_angle

float cef_touch_event_t::rotation_angle

Rotation angle in radians.

Set to 0 if not applicable.

◆ type

cef_touch_event_type_t cef_touch_event_t::type

The 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.

◆ x

float cef_touch_event_t::x

X coordinate relative to the left side of the view.

◆ y

float cef_touch_event_t::y

Y coordinate relative to the top side of the view.


The documentation for this struct was generated from the following file: