Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qcocoacursor.h
Go to the documentation of this file.
1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QWINDOWSCURSOR_H
5#define QWINDOWSCURSOR_H
6
7#include <QtCore>
8#include <qpa/qplatformcursor.h>
9
11
13
15{
16public:
19
20 void changeCursor(QCursor *cursor, QWindow *window) override;
21 QPoint pos() const override;
22 void setPos(const QPoint &position) override;
23
24 QSize size() const override;
25
26private:
27 QHash<Qt::CursorShape, NSCursor *> m_cursors;
28 NSCursor *convertCursor(QCursor *cursor);
29 NSCursor *createCursorData(QCursor * cursor);
30 NSCursor *createCursorFromBitmap(const QBitmap &bitmap, const QBitmap &mask, const QPoint hotspot = QPoint());
31 NSCursor *createCursorFromPixmap(const QPixmap &pixmap, const QPoint hotspot = QPoint());
32};
33
35
36#endif // QWINDOWSCURSOR_H
\inmodule QtGui
Definition qbitmap.h:16
void setPos(const QPoint &position) override
void changeCursor(QCursor *cursor, QWindow *window) override
This method is called by Qt whenever the cursor graphic should be changed.
QSize size() const override
Returns the size of the cursor, in native pixels.
QPoint pos() const override
The QCursor class provides a mouse cursor with an arbitrary shape.
Definition qcursor.h:45
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
The QPlatformCursor class provides information about pointer device events (movement,...
\inmodule QtCore\reentrant
Definition qpoint.h:25
\inmodule QtCore
Definition qsize.h:25
\inmodule QtGui
Definition qwindow.h:63
QCursor cursor
Combined button and popup list for selecting options.
#define Q_FORWARD_DECLARE_OBJC_CLASS(classname)
GLint GLint GLint GLint GLint GLint GLint GLbitfield mask
GLsizei GLfixed GLfixed GLfixed GLfixed const GLubyte * bitmap
static qreal position(const QQuickItem *item, QQuickAnchors::Anchor anchorLine)
widget render & pixmap
aWidget window() -> setWindowTitle("New Window Title")
[2]