ADTF Qt5
Loading...
Searching...
No Matches
custom_cursors.h
Go to the documentation of this file.
1
7
8/*
9 * This file depends on Qt which is licensed under LGPLv3.
10 * See ADTF_DIR/3rdparty/qt5 and doc/license for detailed information.
11 */
12
13#pragma once
14
15#include <QList>
16#include <QPair>
17#include <QString>
18#include <QIcon>
19#include <QCursor>
20
21namespace adtf
22{
23namespace ui
24{
25namespace v2
26{
30class cCustomCursors : public QObject
31{
32 Q_OBJECT
33
34 double m_scaling;
35 QList<QPair<QString, QCursor>> m_listCursors;
36
37public:
43 cCustomCursors(QObject* parent);
48
53 {
62 };
63
70 QCursor get_cursor(CustomCursorEnum eCursor);
76 void set_scaling(double scaling);
77
78private:
79 void add_cursor(QString imgSource, int hotX = -1, int hotY = -1);
80 void update();
81};
82
83} // namespace v2
84
86
87} // namespace ui
88} // namespace adtf
cCustomCursors(QObject *parent)
Definition custom_cursors.h:31
QCursor get_cursor(CustomCursorEnum eCursor)
cCustomCursors(QObject *parent)
CustomCursorEnum
Definition custom_cursors.h:53
@ Arrow
Definition custom_cursors.h:57
@ ArrowEdit
Definition custom_cursors.h:61
void set_scaling(double scaling)
Namespace for all functionality provided since v1.2.
Definition custom_cursors.h:26
Namespace for the ADTF UI SDK.
Definition adtfui_pkg.h:13
Namespace for all functionality provided by ADTF and its SDKs.
Definition adtfui_pkg.h:13