6#include <QPointingDevice>
30 return int(
f * 10000);
41 uint32_t
time = m_compositor->currentTimeMsecs();
42 const int rescount = m_resources.
size();
44 for (
int res = 0;
res < rescount; ++
res) {
46 if (
target->client() != surfaceClient)
52 int sentPointCount = 0;
53 for (
int i = 0;
i < pointCount; ++
i) {
58 for (
int i = 0;
i < pointCount; ++
i) {
64 uint32_t
id = tp.
id();
65 uint32_t
state = (tp.
state() & 0xFFFF) | (sentPointCount << 16);
66 uint32_t
flags = (int(
event->pointingDevice()->capabilities()) << 16);
76 uint32_t pressure = uint32_t(tp.
pressure() * 255);
103 m_resources.
append(resource);
104 send_configure(resource->handle, m_flags);
116#include "moc_qwlqttouch_p.cpp"
The QEventPoint class provides information about a point in a QPointerEvent.
qreal pressure
the pressure of this point.
QPointF normalizedPosition() const
Returns the normalized position of this point.
int id
the ID number of this event point.
State state
the current state of the event point.
QSizeF ellipseDiameters
the width and height of the bounding ellipse of the touch point.
QPointF position
the position of this point.
QVector2D velocity
a velocity vector, in units of pixels per second, in the coordinate.
qsizetype size() const noexcept
bool removeOne(const AT &t)
const_reference at(qsizetype i) const noexcept
void append(parameter_type t)
constexpr qreal x() const noexcept
Returns the x coordinate of this point.
constexpr qreal y() const noexcept
Returns the y coordinate of this point.
constexpr qreal width() const noexcept
Returns the width.
constexpr qreal height() const noexcept
Returns the height.
The QTouchEvent class contains parameters that describe a touch event.
constexpr float y() const noexcept
Returns the y coordinate of this point.
constexpr float x() const noexcept
Returns the x coordinate of this point.
wl_client * client() const
Returns the Wayland client of this QWaylandClient.
\inmodule QtWaylandCompositor
\qmltype WaylandCompositor \instantiates QWaylandCompositor \inqmlmodule QtWayland....
\qmltype WaylandSurface \instantiates QWaylandSurface \inqmlmodule QtWayland.Compositor
QWaylandClient * client
\qmlproperty WaylandClient QtWayland.Compositor::WaylandSurface::client
~TouchExtensionGlobal() override
TouchExtensionGlobal(QWaylandCompositor *compositor)
void setBehviorFlags(BehaviorFlags flags)
void touch_extension_bind_resource(Resource *resource) override
void touch_extension_destroy_resource(Resource *resource) override
bool postTouchEvent(QTouchEvent *event, QWaylandSurface *surface)
void behaviorFlagsChanged()
struct wl_display * display
Combined button and popup list for selecting options.
static int toFixed(qreal f)
static const int maxRawPos
static QOpenGLCompositor * compositor
GLint GLint GLint GLint GLint x
[0]
GLfloat GLfloat GLfloat w
[0]
GLfloat GLfloat GLfloat GLfloat h
GLfixed GLfixed GLint GLint GLfixed points