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;
55 MaxEvent = NoEvent + 50
60#if QT_VERSION < QT_VERSION_CHECK( 6, 0, 0 )
73 inline const QRectF& rect()
const {
return m_rect; }
74 inline const QRectF& oldRect()
const {
return m_oldRect; }
76 bool isResized()
const;
94 inline QQuickItem* modifiedParent()
const {
return m_modifiedParent; }
102 QQuickItem* m_modifiedParent;
110 inline QQuickWindow* window()
const {
return m_window; }
111 inline QQuickWindow* oldWindow()
const {
return m_oldWindow; }
119 QQuickWindow* m_oldWindow;
120 QQuickWindow* m_window;
128 inline QskPopup* popup()
const {
return m_popup; }
144 inline const QQuickItem* item()
const {
return m_item; }
145 inline const QEvent* event()
const {
return m_event; }
147 inline void setMaybeGesture(
bool on ) { m_maybeGesture = on; }
148 inline bool maybeGesture()
const {
return m_maybeGesture; }
156 const QQuickItem* m_item;
157 const QEvent* m_event;
167 inline std::shared_ptr< const QskGesture > gesture()
const {
return m_gesture; }
175 std::shared_ptr< const QskGesture > m_gesture;
189 inline QskAspect aspect()
const {
return m_aspect; }
190 inline int index()
const {
return m_index; }
191 inline State state()
const {
return m_state; }
204QSK_EXPORT
int qskFocusChainIncrement(
const QEvent* );
207QSK_EXPORT QPointF qskMouseScenePosition(
const QMouseEvent* );
208QSK_EXPORT QPointF qskMousePosition(
const QMouseEvent* );
209QSK_EXPORT QPointF qskHoverPosition(
const QHoverEvent* );
211#ifndef QT_NO_WHEELEVENT
213QSK_EXPORT QPointF qskWheelPosition(
const QWheelEvent* );
214QSK_EXPORT qreal qskWheelSteps(
const QWheelEvent* );
215QSK_EXPORT qreal qskWheelIncrement(
const QWheelEvent* );
219QSK_EXPORT
bool qskIsStandardKeyInput(
const QKeyEvent*, QKeySequence::StandardKey );
220QSK_EXPORT
bool qskIsButtonPressKey(
const QKeyEvent* );
222QSK_EXPORT
bool qskIsTouchOrMouseEvent( QEvent::Type );
Lookup key for a QskSkinHintTable.