11#include <qcoreevent.h>
13#include <qkeysequence.h>
26#define QSK_EVENT_DISABLE_COPY( Class ) \
27 Class( const Class& ) = default; \
28 Class( Class && ) = delete; \
29 Class& operator=( const Class & ) = default; \
30 Class& operator=( Class && ) = delete;
54 MaxEvent = NoEvent + 50
59#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
72 inline const QRectF& rect()
const {
return m_rect; }
73 inline const QRectF& oldRect()
const {
return m_oldRect; }
75 bool isResized()
const;
93 inline QQuickWindow* window()
const {
return m_window; }
94 inline QQuickWindow* oldWindow()
const {
return m_oldWindow; }
102 QQuickWindow* m_oldWindow;
103 QQuickWindow* m_window;
111 inline QskPopup* popup()
const {
return m_popup; }
127 inline const QQuickItem* item()
const {
return m_item; }
128 inline const QEvent* event()
const {
return m_event; }
130 inline void setMaybeGesture(
bool on ) { m_maybeGesture = on; }
131 inline bool maybeGesture()
const {
return m_maybeGesture; }
139 const QQuickItem* m_item;
140 const QEvent* m_event;
150 inline std::shared_ptr< const QskGesture > gesture()
const {
return m_gesture; }
158 std::shared_ptr< const QskGesture > m_gesture;
172 inline QskAspect aspect()
const {
return m_aspect; }
173 inline int index()
const {
return m_index; }
174 inline State state()
const {
return m_state; }
187QSK_EXPORT
int qskFocusChainIncrement(
const QEvent* );
190QSK_EXPORT QPointF qskMouseScenePosition(
const QMouseEvent* );
191QSK_EXPORT QPointF qskMousePosition(
const QMouseEvent* );
192QSK_EXPORT QPointF qskHoverPosition(
const QHoverEvent* );
194#ifndef QT_NO_WHEELEVENT
196QSK_EXPORT QPointF qskWheelPosition(
const QWheelEvent* );
197QSK_EXPORT qreal qskWheelSteps(
const QWheelEvent* );
198QSK_EXPORT qreal qskWheelIncrement(
const QWheelEvent* );
202QSK_EXPORT
bool qskIsStandardKeyInput(
const QKeyEvent*, QKeySequence::StandardKey );
203QSK_EXPORT
bool qskIsButtonPressKey(
const QKeyEvent* );
205QSK_EXPORT
bool qskIsTouchOrMouseEvent( QEvent::Type );
Lookup key for a QskSkinHintTable.