7#include <qpa/qplatformcursor.h>
9#include <xcb/xcb_cursor.h>
11#include <QtCore/QCache>
35 return (
size_t(k.shape) +
size_t(k.bitmapCacheKey) +
size_t(k.maskCacheKey)) ^
seed;
67 explicit CachedCursor(xcb_connection_t *conn, xcb_cursor_t
c)
69 ~CachedCursor() { xcb_free_cursor(connection, cursor); }
75 xcb_cursor_t createFontCursor(
int cshape);
77 xcb_cursor_t createNonStandardCursor(
int cshape);
81 xcb_cursor_context_t *m_cursorContext;
83 CursorHash m_cursorHash;
84 BitmapCursorCache m_bitmapCache;
90 bool m_callbackForPropertyRegistered;
The QCursor class provides a mouse cursor with an arbitrary shape.
T value(const Key &key) const noexcept
\inmodule QtCore\reentrant
xcb_cursor_t xcbCursor(const QCursor &c) const
void changeCursor(QCursor *cursor, QWindow *window) override
This method is called by Qt whenever the cursor graphic should be changed.
QPoint pos() const override
static void queryPointer(QXcbConnection *c, QXcbVirtualDesktop **virtualDesktop, QPoint *pos, int *keybMask=nullptr)
void setPos(const QPoint &pos) override
Combined button and popup list for selecting options.
DBusConnection * connection
GLuint64 GLenum void * handle
static Q_CONSTINIT QBasicAtomicInteger< unsigned > seed
bool operator==(const QXcbCursorCacheKey &k1, const QXcbCursorCacheKey &k2)
size_t qHash(const QXcbCursorCacheKey &k, size_t seed) noexcept
QXcbCursorCacheKey(Qt::CursorShape s)