16#include "qwayland-server-wayland.h"
20class ClientConnection;
21class PointerPinchGestureV1Interface;
22class PointerSwipeGestureV1Interface;
23class PointerHoldGestureV1Interface;
24class RelativePointerV1Interface;
28 struct AxisAccumulator
32 bool shouldReset(
int newDirection, std::chrono::milliseconds newTimestamp)
const;
43 std::chrono::milliseconds
timestamp = std::chrono::milliseconds::zero();
46 Axis &axis(Qt::Orientation orientation)
48 const int index = orientation == Qt::Orientation::Horizontal ? 0 : 1;
69 std::unique_ptr<PointerSurfaceCursor>
cursor;
78 void sendEnter(
const QPointF &parentSurfacePosition, quint32 serial);
82 void pointer_set_cursor(Resource *resource, uint32_t serial, ::wl_resource *surface_resource, int32_t hotspot_x, int32_t hotspot_y)
override;
Convenient Class which represents a wl_client.
std::unique_ptr< PointerHoldGestureV1Interface > holdGesturesV1
std::unique_ptr< PointerSwipeGestureV1Interface > swipeGesturesV1
SurfaceInterface * focusedSurface
std::unique_ptr< RelativePointerV1Interface > relativePointersV1
void sendLeave(quint32 serial)
std::unique_ptr< PointerSurfaceCursor > cursor
std::unique_ptr< PointerPinchGestureV1Interface > pinchGesturesV1
void pointer_set_cursor(Resource *resource, uint32_t serial, ::wl_resource *surface_resource, int32_t hotspot_x, int32_t hotspot_y) override
QList< Resource * > pointersForClient(ClientConnection *client) const
void pointer_bind_resource(Resource *resource) override
AxisAccumulator axisAccumulator
void pointer_release(Resource *resource) override
QMetaObject::Connection destroyConnection
void sendEnter(const QPointF &parentSurfacePosition, quint32 serial)
PointerInterfacePrivate(PointerInterface *q, SeatInterface *seat)
~PointerInterfacePrivate() override
static PointerInterfacePrivate * get(PointerInterface *pointer)
Represents a Seat on the Wayland Display.
Resource representing a wl_surface.
bool shouldReset(int newDirection, std::chrono::milliseconds newTimestamp) const
std::chrono::milliseconds timestamp