#include <qwaylandinputdevice.h>
|
static void | inputHandleButton (void *data, struct wl_input_device *input_device, uint32_t time, uint32_t button, uint32_t state) |
|
static void | inputHandleKey (void *data, struct wl_input_device *input_device, uint32_t time, uint32_t key, uint32_t state) |
|
static void | inputHandleKeyboardFocus (void *data, struct wl_input_device *input_device, uint32_t time, struct wl_surface *surface, struct wl_array *keys) |
|
static void | inputHandleMotion (void *data, struct wl_input_device *input_device, uint32_t time, int32_t x, int32_t y, int32_t sx, int32_t sy) |
|
static void | inputHandlePointerFocus (void *data, struct wl_input_device *input_device, uint32_t time, struct wl_surface *surface, int32_t x, int32_t y, int32_t sx, int32_t sy) |
|
Definition at line 341 of file qwaylandinputdevice.cpp.
◆ QWaylandInputDevice()
QWaylandInputDevice::QWaylandInputDevice |
( |
struct wl_display * |
display, |
|
|
uint32_t |
id |
|
) |
| |
Definition at line 61 of file qwaylandinputdevice.cpp.
74 #ifndef QT_NO_WAYLAND_XKB 75 struct xkb_rule_names names;
76 names.rules =
"evdev";
77 names.model =
"pc105";
82 mXkb = xkb_compile_keymap_from_rules(&names);
Q_GUI_EXPORT EGLDisplay display()
◆ attach()
void QWaylandInputDevice::attach |
( |
QWaylandBuffer * |
buffer, |
|
|
int |
x, |
|
|
int |
y |
|
) |
| |
◆ handleWindowDestroyed()
void QWaylandInputDevice::handleWindowDestroyed |
( |
QWaylandWindow * |
window | ) |
|
◆ inputHandleButton()
void QWaylandInputDevice::inputHandleButton |
( |
void * |
data, |
|
|
struct wl_input_device * |
input_device, |
|
|
uint32_t |
time, |
|
|
uint32_t |
button, |
|
|
uint32_t |
state |
|
) |
| |
|
staticprivate |
Definition at line 120 of file qwaylandinputdevice.cpp.
129 if (window == NULL) {
152 inputDevice->
mButtons &= ~qt_button;
154 inputDevice->
mTime = time;
static void handleMouseEvent(QWidget *w, const QPoint &local, const QPoint &global, Qt::MouseButtons b)
tlw == 0 means that ev is in global coords only
static const char * data(const QByteArray &arr)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ inputHandleKey()
void QWaylandInputDevice::inputHandleKey |
( |
void * |
data, |
|
|
struct wl_input_device * |
input_device, |
|
|
uint32_t |
time, |
|
|
uint32_t |
key, |
|
|
uint32_t |
state |
|
) |
| |
|
staticprivate |
Definition at line 231 of file qwaylandinputdevice.cpp.
235 #ifndef QT_NO_WAYLAND_XKB 239 uint32_t code, sym, level;
240 Qt::KeyboardModifiers modifiers;
244 if (window == NULL) {
250 code =
key + inputDevice->
mXkb->min_key_code;
254 XkbKeyGroupWidth(inputDevice->
mXkb, code, 0) > 1)
257 sym = XkbKeySymEntry(inputDevice->
mXkb, code, level, 0);
static void handleKeyEvent(QWidget *w, QEvent::Type t, int k, Qt::KeyboardModifiers mods, const QString &text=QString(), bool autorep=false, ushort count=1)
static const char * data(const QByteArray &arr)
Type
This enum type defines the valid event types in Qt.
static QString fromLatin1(const char *, int size=-1)
Returns a QString initialized with the first size characters of the Latin-1 string str...
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ inputHandleKeyboardFocus()
void QWaylandInputDevice::inputHandleKeyboardFocus |
( |
void * |
data, |
|
|
struct wl_input_device * |
input_device, |
|
|
uint32_t |
time, |
|
|
struct wl_surface * |
surface, |
|
|
struct wl_array * |
keys |
|
) |
| |
|
staticprivate |
Definition at line 308 of file qwaylandinputdevice.cpp.
314 #ifndef QT_NO_WAYLAND_XKB 324 for (k = (uint32_t *)
keys->data; k <
end; k++) {
325 code = *k + inputDevice->
mXkb->min_key_code;
static void handleWindowActivated(QWidget *w)
static const char * data(const QByteArray &arr)
int size() const
Returns the number of items in the list.
static const KeyPair *const end
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ inputHandleMotion()
void QWaylandInputDevice::inputHandleMotion |
( |
void * |
data, |
|
|
struct wl_input_device * |
input_device, |
|
|
uint32_t |
time, |
|
|
int32_t |
x, |
|
|
int32_t |
y, |
|
|
int32_t |
sx, |
|
|
int32_t |
sy |
|
) |
| |
|
staticprivate |
Definition at line 94 of file qwaylandinputdevice.cpp.
104 if (window == NULL) {
112 inputDevice->
mTime = time;
static void handleMouseEvent(QWidget *w, const QPoint &local, const QPoint &global, Qt::MouseButtons b)
tlw == 0 means that ev is in global coords only
static const char * data(const QByteArray &arr)
The QPoint class defines a point in the plane using integer precision.
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
◆ inputHandlePointerFocus()
void QWaylandInputDevice::inputHandlePointerFocus |
( |
void * |
data, |
|
|
struct wl_input_device * |
input_device, |
|
|
uint32_t |
time, |
|
|
struct wl_surface * |
surface, |
|
|
int32_t |
x, |
|
|
int32_t |
y, |
|
|
int32_t |
sx, |
|
|
int32_t |
sy |
|
) |
| |
|
staticprivate |
Definition at line 280 of file qwaylandinputdevice.cpp.
305 inputDevice->
mTime = time;
static const char * data(const QByteArray &arr)
static void handleEnterEvent(QWidget *w)
#define Q_UNUSED(x)
Indicates to the compiler that the parameter with the specified name is not used in the body of a fun...
static void handleLeaveEvent(QWidget *w)
◆ wl_input_device()
struct wl_input_device* QWaylandInputDevice::wl_input_device |
( |
| ) |
const |
|
inline |
◆ inputDeviceListener
const struct wl_input_device_listener QWaylandInputDevice::inputDeviceListener |
|
staticprivate |
◆ mButtons
Qt::MouseButtons QWaylandInputDevice::mButtons |
|
private |
◆ mDisplay
struct wl_display* QWaylandInputDevice::mDisplay |
|
private |
◆ mGlobalPos
QPoint QWaylandInputDevice::mGlobalPos |
|
private |
◆ mInputDevice
◆ mKeyboardFocus
◆ mModifiers
Qt::KeyboardModifiers QWaylandInputDevice::mModifiers |
|
private |
◆ mPointerFocus
◆ mSurfacePos
QPoint QWaylandInputDevice::mSurfacePos |
|
private |
◆ mTime
uint32_t QWaylandInputDevice::mTime |
|
private |
◆ mXkb
struct xkb_desc* QWaylandInputDevice::mXkb |
|
private |
The documentation for this class was generated from the following files: