Changeset View
Changeset View
Standalone View
Standalone View
src/server/pointer_interface.h
Show All 29 Lines | |||||
30 | { | 30 | { | ||
31 | 31 | | |||
32 | class Cursor; | 32 | class Cursor; | ||
33 | class PointerGesturesUnstableV1Interface; | 33 | class PointerGesturesUnstableV1Interface; | ||
34 | class RelativePointerManagerUnstableV1Interface; | 34 | class RelativePointerManagerUnstableV1Interface; | ||
35 | class SeatInterface; | 35 | class SeatInterface; | ||
36 | class SurfaceInterface; | 36 | class SurfaceInterface; | ||
37 | 37 | | |||
38 | enum class PointerAxisSource; | ||||
39 | | ||||
38 | /** | 40 | /** | ||
39 | * @brief Resource for the wl_pointer interface. | 41 | * @brief Resource for the wl_pointer interface. | ||
40 | * | 42 | * | ||
41 | * @see SeatInterface | 43 | * @see SeatInterface | ||
42 | **/ | 44 | **/ | ||
43 | class KWAYLANDSERVER_EXPORT PointerInterface : public Resource | 45 | class KWAYLANDSERVER_EXPORT PointerInterface : public Resource | ||
44 | { | 46 | { | ||
45 | Q_OBJECT | 47 | Q_OBJECT | ||
Show All 22 Lines | 68 | Q_SIGNALS: | |||
68 | * Signal emitted whenever the Cursor changes. | 70 | * Signal emitted whenever the Cursor changes. | ||
69 | **/ | 71 | **/ | ||
70 | void cursorChanged(); | 72 | void cursorChanged(); | ||
71 | 73 | | |||
72 | private: | 74 | private: | ||
73 | void setFocusedSurface(SurfaceInterface *surface, quint32 serial); | 75 | void setFocusedSurface(SurfaceInterface *surface, quint32 serial); | ||
74 | void buttonPressed(quint32 button, quint32 serial); | 76 | void buttonPressed(quint32 button, quint32 serial); | ||
75 | void buttonReleased(quint32 button, quint32 serial); | 77 | void buttonReleased(quint32 button, quint32 serial); | ||
78 | void axis(Qt::Orientation orientation, qreal delta, qint32 discreteDelta, PointerAxisSource source); | ||||
76 | void axis(Qt::Orientation orientation, quint32 delta); | 79 | void axis(Qt::Orientation orientation, quint32 delta); | ||
77 | void relativeMotion(const QSizeF &delta, const QSizeF &deltaNonAccelerated, quint64 microseconds); | 80 | void relativeMotion(const QSizeF &delta, const QSizeF &deltaNonAccelerated, quint64 microseconds); | ||
78 | friend class SeatInterface; | 81 | friend class SeatInterface; | ||
79 | friend class RelativePointerManagerUnstableV1Interface; | 82 | friend class RelativePointerManagerUnstableV1Interface; | ||
80 | friend class PointerGesturesUnstableV1Interface; | 83 | friend class PointerGesturesUnstableV1Interface; | ||
81 | explicit PointerInterface(SeatInterface *parent, wl_resource *parentResource); | 84 | explicit PointerInterface(SeatInterface *parent, wl_resource *parentResource); | ||
82 | class Private; | 85 | class Private; | ||
83 | Private *d_func() const; | 86 | Private *d_func() const; | ||
▲ Show 20 Lines • Show All 48 Lines • Show Last 20 Lines |