Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qqnxcursor.h
Go to the documentation of this file.
1// Copyright (C) 2011 - 2012 Research In Motion
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3// Qt-Security score:significant reason:default
4
5#ifndef QQNXCURSOR_H
6#define QQNXCURSOR_H
7
8#include <screen/screen.h>
9
10#include <qpa/qplatformcursor.h>
11
13
15{
16public:
17 QQnxCursor(screen_context_t context);
18 ~QQnxCursor();
19
20#if !defined(QT_NO_CURSOR)
21 void changeCursor(QCursor *windowCursor, QWindow *window) override;
22#endif
23 void setPos(const QPoint &pos) override;
24
25 QPoint pos() const override;
26
27private:
28 QPoint m_pos;
29 screen_context_t m_screenContext;
30 screen_session_t m_session = 0;
31 int m_currentCShape = 0;
32 bool m_customCursorEnabled = false;
33};
34
35QT_END_NAMESPACE
36
37#endif // QQNXCURSOR_H
void setPos(const QPoint &pos) override
QQnxCursor(screen_context_t context)
QPoint pos() const override
void changeCursor(QCursor *windowCursor, QWindow *window) override
This method is called by Qt whenever the cursor graphic should be changed.
Combined button and popup list for selecting options.
static int mapQtCursorToScreenCursor(int cshape)
#define Q_SCREEN_CHECKERROR(x, message)
Definition qqnxglobal.h:17