KWayland
6 #ifndef WAYLAND_POINTER_H
7 #define WAYLAND_POINTER_H
12 #include "KWayland/Client/kwaylandclient_export.h"
35 enum class ButtonState {
43 enum class AxisSource {
61 void setup(wl_pointer *pointer);
108 Surface *enteredSurface()
const;
114 operator wl_pointer *();
115 operator wl_pointer *()
const;
128 void entered(quint32 serial,
const QPointF &relativeToSurface);
136 void left(quint32 serial);
143 void motion(
const QPointF &relativeToSurface, quint32 time);
154 void buttonStateChanged(quint32 serial, quint32 time, quint32 button, KWayland::Client::Pointer::ButtonState state);
162 void axisChanged(quint32 time, KWayland::Client::Pointer::Axis axis, qreal delta);
168 void axisSourceChanged(KWayland::Client::Pointer::AxisSource source);
174 void axisDiscreteChanged(KWayland::Client::Pointer::Axis axis, qint32 discreteDelta);
180 void axisStopped(quint32 time, KWayland::Client::Pointer::Axis axis);
198 Q_DECLARE_METATYPE(KWayland::Client::Pointer::ButtonState)
199 Q_DECLARE_METATYPE(KWayland::Client::Pointer::Axis)
200 Q_DECLARE_METATYPE(KWayland::Client::Pointer::AxisSource)
virtual void release(quint64 objid)
Wrapper for the wl_surface interface.
Wrapper for the wl_pointer interface.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon Jan 30 2023 03:56:24 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.