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>.
|
#include "qwindowscursor.h"
#include "qwindowscontext.h"
#include "qwindowswindow.h"
#include "qwindowsscreen.h"
#include <QtGui/qbitmap.h>
#include <QtGui/qimage.h>
#include <QtGui/qguiapplication.h>
#include <QtGui/qscreen.h>
#include <QtGui/private/qguiapplication_p.h>
#include <QtGui/private/qhighdpiscaling_p.h>
#include <QtGui/private/qpixmap_win_p.h>
#include <QtCore/private/qwinregistry_p.h>
#include <QtCore/qdebug.h>
#include <QtCore/qscopedpointer.h>
Go to the source code of this file.
Classes | |
struct | QWindowsStandardCursorMapping |
Functions | |
static bool | initResources () |
static HCURSOR | createBitmapCursor (const QImage &bbits, const QImage &mbits, QPoint hotSpot=QPoint(-1, -1), bool invb=false, bool invm=false) |
static HCURSOR | createBitmapCursor (const QCursor &cursor, qreal scaleFactor=1) |
static QSize | systemCursorSize () |
static QSize | screenCursorSize (const QPlatformScreen *screen=nullptr) |
static QSize | standardCursorSize () |
static QWindowsCursor::PixmapCursor | createPixmapCursorFromData (const QSize &screenCursorSize, const QSize &bitmapTargetCursorSize, int bitmapSize, const uchar *bits, const uchar *maskBits) |
Definition at line 139 of file qwindowscursor.cpp.
References QCursor::bitmap(), Qt::BitmapCursor, createBitmapCursor(), cursor, QImage::devicePixelRatio(), QImage::Format_Mono, QCursor::hotSpot(), QPixmap::isNull(), Qt::KeepAspectRatio, QCursor::mask(), Q_ASSERT, qFuzzyCompare(), qGray(), QSize::scaled(), QCursor::shape(), Qt::SmoothTransformation, and QPixmap::toImage().
|
static |
Definition at line 98 of file qwindowscursor.cpp.
Referenced by createBitmapCursor(), QWindowsCursor::createCursorFromShape(), and QWindowsCursor::pixmapWindowCursor().
|
static |
Definition at line 187 of file qwindowscursor.cpp.
References QBitmap::fromData(), QPixmap::fromImage(), QTransform::fromScale(), qAbs(), screenCursorSize(), and Qt::SmoothTransformation.
Referenced by QWindowsCursor::customCursor().
|
static |
Definition at line 23 of file qwindowscursor.cpp.
References Q_INIT_RESOURCE.
|
static |
Definition at line 159 of file qwindowscursor.cpp.
References QPlatformScreen::logicalDpi(), QGuiApplication::primaryScreen, qFuzzyCompare(), screen, and systemCursorSize().
Referenced by createPixmapCursorFromData(), QWindowsCursor::customCursor(), and QWindowsCursor::size().
|
inlinestatic |
Definition at line 180 of file qwindowscursor.cpp.
Referenced by QWindowsCursor::customCursor().
|
static |
Definition at line 157 of file qwindowscursor.cpp.
Referenced by QWindowsCursor::createCursorFromShape(), and screenCursorSize().