1// qcoreevent.sip generated by MetaSIP
2//
3// This file is part of the QtCore Python extension module.
4//
5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com>
6//
7// This file is part of PyQt5.
8//
9// This file may be used under the terms of the GNU General Public License
10// version 3.0 as published by the Free Software Foundation and appearing in
11// the file LICENSE included in the packaging of this file.  Please review the
12// following information to ensure the GNU General Public License version 3.0
13// requirements will be met: http://www.gnu.org/copyleft/gpl.html.
14//
15// If you do not wish to use this file under the terms of the GPL version 3.0
16// then you may purchase a commercial license.  For more information contact
17// info@riverbankcomputing.com.
18//
19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
21
22
23class QEvent /Supertype=sip.wrapper/
24{
25%TypeHeaderCode
26#include <qcoreevent.h>
27%End
28
29%ConvertToSubClassCode
30    switch (sipCpp->type())
31    {
32    case QEvent::Timer:
33        sipType = sipType_QTimerEvent;
34        break;
35
36    case QEvent::ChildAdded:
37    case QEvent::ChildPolished:
38    case QEvent::ChildRemoved:
39        sipType = sipType_QChildEvent;
40        break;
41
42    case QEvent::DynamicPropertyChange:
43        sipType = sipType_QDynamicPropertyChangeEvent;
44        break;
45
46    case QEvent::StateMachineSignal:
47        sipType = sipType_QStateMachine_SignalEvent;
48        break;
49
50    case QEvent::StateMachineWrapped:
51        sipType = sipType_QStateMachine_WrappedEvent;
52        break;
53
54    default:
55        sipType = 0;
56    }
57%End
58
59public:
60    enum Type
61    {
62        None /PyName=None_/,
63        Timer,
64        MouseButtonPress,
65        MouseButtonRelease,
66        MouseButtonDblClick,
67        MouseMove,
68        KeyPress,
69        KeyRelease,
70        FocusIn,
71        FocusOut,
72        Enter,
73        Leave,
74        Paint,
75        Move,
76        Resize,
77        Show,
78        Hide,
79        Close,
80        ParentChange,
81        ParentAboutToChange,
82        ThreadChange,
83        WindowActivate,
84        WindowDeactivate,
85        ShowToParent,
86        HideToParent,
87        Wheel,
88        WindowTitleChange,
89        WindowIconChange,
90        ApplicationWindowIconChange,
91        ApplicationFontChange,
92        ApplicationLayoutDirectionChange,
93        ApplicationPaletteChange,
94        PaletteChange,
95        Clipboard,
96        MetaCall,
97        SockAct,
98        WinEventAct,
99        DeferredDelete,
100        DragEnter,
101        DragMove,
102        DragLeave,
103        Drop,
104        ChildAdded,
105        ChildPolished,
106        ChildRemoved,
107        PolishRequest,
108        Polish,
109        LayoutRequest,
110        UpdateRequest,
111        UpdateLater,
112        ContextMenu,
113        InputMethod,
114        TabletMove,
115        LocaleChange,
116        LanguageChange,
117        LayoutDirectionChange,
118        TabletPress,
119        TabletRelease,
120        OkRequest,
121        IconDrag,
122        FontChange,
123        EnabledChange,
124        ActivationChange,
125        StyleChange,
126        IconTextChange,
127        ModifiedChange,
128        MouseTrackingChange,
129        WindowBlocked,
130        WindowUnblocked,
131        WindowStateChange,
132        ToolTip,
133        WhatsThis,
134        StatusTip,
135        ActionChanged,
136        ActionAdded,
137        ActionRemoved,
138        FileOpen,
139        Shortcut,
140        ShortcutOverride,
141        WhatsThisClicked,
142        ToolBarChange,
143        ApplicationActivate,
144        ApplicationActivated,
145        ApplicationDeactivate,
146        ApplicationDeactivated,
147        QueryWhatsThis,
148        EnterWhatsThisMode,
149        LeaveWhatsThisMode,
150        ZOrderChange,
151        HoverEnter,
152        HoverLeave,
153        HoverMove,
154        GraphicsSceneMouseMove,
155        GraphicsSceneMousePress,
156        GraphicsSceneMouseRelease,
157        GraphicsSceneMouseDoubleClick,
158        GraphicsSceneContextMenu,
159        GraphicsSceneHoverEnter,
160        GraphicsSceneHoverMove,
161        GraphicsSceneHoverLeave,
162        GraphicsSceneHelp,
163        GraphicsSceneDragEnter,
164        GraphicsSceneDragMove,
165        GraphicsSceneDragLeave,
166        GraphicsSceneDrop,
167        GraphicsSceneWheel,
168        GraphicsSceneResize,
169        GraphicsSceneMove,
170        KeyboardLayoutChange,
171        DynamicPropertyChange,
172        TabletEnterProximity,
173        TabletLeaveProximity,
174        NonClientAreaMouseMove,
175        NonClientAreaMouseButtonPress,
176        NonClientAreaMouseButtonRelease,
177        NonClientAreaMouseButtonDblClick,
178        MacSizeChange,
179        ContentsRectChange,
180        CursorChange,
181        ToolTipChange,
182        GrabMouse,
183        UngrabMouse,
184        GrabKeyboard,
185        UngrabKeyboard,
186        StateMachineSignal,
187        StateMachineWrapped,
188        TouchBegin,
189        TouchUpdate,
190        TouchEnd,
191        RequestSoftwareInputPanel,
192        CloseSoftwareInputPanel,
193        WinIdChange,
194        Gesture,
195        GestureOverride,
196        FocusAboutToChange,
197        ScrollPrepare,
198        Scroll,
199        Expose,
200        InputMethodQuery,
201        OrientationChange,
202        TouchCancel,
203        PlatformPanel,
204%If (Qt_5_1_0 -)
205        ApplicationStateChange,
206%End
207%If (Qt_5_4_0 -)
208        ReadOnlyChange,
209%End
210%If (Qt_5_5_0 -)
211        PlatformSurface,
212%End
213%If (Qt_5_9_0 -)
214        TabletTrackingChange,
215%End
216        User,
217        MaxUser,
218    };
219
220    explicit QEvent(QEvent::Type type);
221    QEvent(const QEvent &other);
222    virtual ~QEvent();
223    QEvent::Type type() const;
224    bool spontaneous() const;
225    void setAccepted(bool accepted);
226    bool isAccepted() const;
227    void accept();
228    void ignore();
229    static int registerEventType(int hint = -1);
230};
231
232class QTimerEvent : QEvent
233{
234%TypeHeaderCode
235#include <qcoreevent.h>
236%End
237
238public:
239    explicit QTimerEvent(int timerId);
240    virtual ~QTimerEvent();
241    int timerId() const;
242};
243
244class QChildEvent : QEvent
245{
246%TypeHeaderCode
247#include <qcoreevent.h>
248%End
249
250public:
251    QChildEvent(QEvent::Type type, QObject *child);
252    virtual ~QChildEvent();
253    QObject *child() const;
254    bool added() const;
255    bool polished() const;
256    bool removed() const;
257};
258
259class QDynamicPropertyChangeEvent : QEvent
260{
261%TypeHeaderCode
262#include <qcoreevent.h>
263%End
264
265public:
266    explicit QDynamicPropertyChangeEvent(const QByteArray &name);
267    virtual ~QDynamicPropertyChangeEvent();
268    QByteArray propertyName() const;
269};
270