]> git.saurik.com Git - wxWidgets.git/blame - utils/wxPython/src/msw/events.py
new tests
[wxWidgets.git] / utils / wxPython / src / msw / events.py
CommitLineData
8ab979d7
RD
1# This file was created automatically by SWIG.
2import eventsc
3
4from misc import *
5class wxEventPtr :
6 def __init__(self,this):
7 self.this = this
8 self.thisown = 0
48115f4a
RD
9 def __del__(self,eventsc=eventsc):
10 if self.thisown == 1 :
11 eventsc.delete_wxEvent(self)
1d99702e
RD
12 def GetEventObject(self, *_args, **_kwargs):
13 val = apply(eventsc.wxEvent_GetEventObject,(self,) + _args, _kwargs)
8ab979d7 14 return val
1d99702e
RD
15 def GetEventType(self, *_args, **_kwargs):
16 val = apply(eventsc.wxEvent_GetEventType,(self,) + _args, _kwargs)
8ab979d7 17 return val
1d99702e
RD
18 def GetId(self, *_args, **_kwargs):
19 val = apply(eventsc.wxEvent_GetId,(self,) + _args, _kwargs)
8ab979d7 20 return val
1d99702e
RD
21 def GetSkipped(self, *_args, **_kwargs):
22 val = apply(eventsc.wxEvent_GetSkipped,(self,) + _args, _kwargs)
8ab979d7 23 return val
1d99702e
RD
24 def GetTimestamp(self, *_args, **_kwargs):
25 val = apply(eventsc.wxEvent_GetTimestamp,(self,) + _args, _kwargs)
8ab979d7 26 return val
1d99702e
RD
27 def SetEventObject(self, *_args, **_kwargs):
28 val = apply(eventsc.wxEvent_SetEventObject,(self,) + _args, _kwargs)
8ab979d7 29 return val
1d99702e
RD
30 def SetEventType(self, *_args, **_kwargs):
31 val = apply(eventsc.wxEvent_SetEventType,(self,) + _args, _kwargs)
8ab979d7 32 return val
1d99702e
RD
33 def SetId(self, *_args, **_kwargs):
34 val = apply(eventsc.wxEvent_SetId,(self,) + _args, _kwargs)
8ab979d7 35 return val
1d99702e
RD
36 def SetTimestamp(self, *_args, **_kwargs):
37 val = apply(eventsc.wxEvent_SetTimestamp,(self,) + _args, _kwargs)
8ab979d7 38 return val
1d99702e
RD
39 def Skip(self, *_args, **_kwargs):
40 val = apply(eventsc.wxEvent_Skip,(self,) + _args, _kwargs)
8ab979d7
RD
41 return val
42 def __repr__(self):
1d99702e 43 return "<C wxEvent instance at %s>" % (self.this,)
8ab979d7 44class wxEvent(wxEventPtr):
48115f4a
RD
45 def __init__(self,*_args,**_kwargs):
46 self.this = apply(eventsc.new_wxEvent,_args,_kwargs)
47 self.thisown = 1
8ab979d7
RD
48
49
50
51
52class wxSizeEventPtr(wxEventPtr):
53 def __init__(self,this):
54 self.this = this
55 self.thisown = 0
1d99702e
RD
56 def GetSize(self, *_args, **_kwargs):
57 val = apply(eventsc.wxSizeEvent_GetSize,(self,) + _args, _kwargs)
58 if val: val = wxSizePtr(val) ; val.thisown = 1
8ab979d7
RD
59 return val
60 def __repr__(self):
1d99702e 61 return "<C wxSizeEvent instance at %s>" % (self.this,)
8ab979d7 62class wxSizeEvent(wxSizeEventPtr):
48115f4a
RD
63 def __init__(self,*_args,**_kwargs):
64 self.this = apply(eventsc.new_wxSizeEvent,_args,_kwargs)
65 self.thisown = 1
8ab979d7
RD
66
67
68
69
70class wxCloseEventPtr(wxEventPtr):
71 def __init__(self,this):
72 self.this = this
73 self.thisown = 0
1d99702e
RD
74 def SetLoggingOff(self, *_args, **_kwargs):
75 val = apply(eventsc.wxCloseEvent_SetLoggingOff,(self,) + _args, _kwargs)
b8b8dda7 76 return val
1d99702e
RD
77 def GetLoggingOff(self, *_args, **_kwargs):
78 val = apply(eventsc.wxCloseEvent_GetLoggingOff,(self,) + _args, _kwargs)
8ab979d7 79 return val
1d99702e
RD
80 def Veto(self, *_args, **_kwargs):
81 val = apply(eventsc.wxCloseEvent_Veto,(self,) + _args, _kwargs)
8ab979d7 82 return val
1d99702e
RD
83 def CanVeto(self, *_args, **_kwargs):
84 val = apply(eventsc.wxCloseEvent_CanVeto,(self,) + _args, _kwargs)
e980740a 85 return val
1d99702e
RD
86 def GetVeto(self, *_args, **_kwargs):
87 val = apply(eventsc.wxCloseEvent_GetVeto,(self,) + _args, _kwargs)
8ab979d7 88 return val
1d99702e
RD
89 def SetCanVeto(self, *_args, **_kwargs):
90 val = apply(eventsc.wxCloseEvent_SetCanVeto,(self,) + _args, _kwargs)
b8b8dda7 91 return val
8ab979d7 92 def __repr__(self):
1d99702e 93 return "<C wxCloseEvent instance at %s>" % (self.this,)
8ab979d7 94class wxCloseEvent(wxCloseEventPtr):
48115f4a
RD
95 def __init__(self,*_args,**_kwargs):
96 self.this = apply(eventsc.new_wxCloseEvent,_args,_kwargs)
97 self.thisown = 1
8ab979d7
RD
98
99
100
101
102class wxCommandEventPtr(wxEventPtr):
103 def __init__(self,this):
104 self.this = this
105 self.thisown = 0
1d99702e
RD
106 def Checked(self, *_args, **_kwargs):
107 val = apply(eventsc.wxCommandEvent_Checked,(self,) + _args, _kwargs)
8ab979d7 108 return val
1d99702e
RD
109 def GetExtraLong(self, *_args, **_kwargs):
110 val = apply(eventsc.wxCommandEvent_GetExtraLong,(self,) + _args, _kwargs)
8ab979d7 111 return val
1d99702e
RD
112 def GetInt(self, *_args, **_kwargs):
113 val = apply(eventsc.wxCommandEvent_GetInt,(self,) + _args, _kwargs)
8ab979d7 114 return val
1d99702e
RD
115 def GetSelection(self, *_args, **_kwargs):
116 val = apply(eventsc.wxCommandEvent_GetSelection,(self,) + _args, _kwargs)
8ab979d7 117 return val
1d99702e
RD
118 def GetString(self, *_args, **_kwargs):
119 val = apply(eventsc.wxCommandEvent_GetString,(self,) + _args, _kwargs)
8ab979d7 120 return val
1d99702e
RD
121 def IsSelection(self, *_args, **_kwargs):
122 val = apply(eventsc.wxCommandEvent_IsSelection,(self,) + _args, _kwargs)
8ab979d7 123 return val
6999b0d8
RD
124 def SetString(self, *_args, **_kwargs):
125 val = apply(eventsc.wxCommandEvent_SetString,(self,) + _args, _kwargs)
126 return val
127 def SetExtraLong(self, *_args, **_kwargs):
128 val = apply(eventsc.wxCommandEvent_SetExtraLong,(self,) + _args, _kwargs)
129 return val
130 def SetInt(self, *_args, **_kwargs):
131 val = apply(eventsc.wxCommandEvent_SetInt,(self,) + _args, _kwargs)
132 return val
8ab979d7 133 def __repr__(self):
1d99702e 134 return "<C wxCommandEvent instance at %s>" % (self.this,)
8ab979d7 135class wxCommandEvent(wxCommandEventPtr):
48115f4a
RD
136 def __init__(self,*_args,**_kwargs):
137 self.this = apply(eventsc.new_wxCommandEvent,_args,_kwargs)
138 self.thisown = 1
8ab979d7
RD
139
140
141
142
143class wxScrollEventPtr(wxCommandEventPtr):
144 def __init__(self,this):
145 self.this = this
146 self.thisown = 0
1d99702e
RD
147 def GetOrientation(self, *_args, **_kwargs):
148 val = apply(eventsc.wxScrollEvent_GetOrientation,(self,) + _args, _kwargs)
8ab979d7 149 return val
1d99702e
RD
150 def GetPosition(self, *_args, **_kwargs):
151 val = apply(eventsc.wxScrollEvent_GetPosition,(self,) + _args, _kwargs)
8ab979d7
RD
152 return val
153 def __repr__(self):
1d99702e 154 return "<C wxScrollEvent instance at %s>" % (self.this,)
8ab979d7 155class wxScrollEvent(wxScrollEventPtr):
48115f4a
RD
156 def __init__(self,*_args,**_kwargs):
157 self.this = apply(eventsc.new_wxScrollEvent,_args,_kwargs)
158 self.thisown = 1
8ab979d7
RD
159
160
161
162
d426c97e
RD
163class wxScrollWinEventPtr(wxEventPtr):
164 def __init__(self,this):
165 self.this = this
166 self.thisown = 0
167 def GetOrientation(self, *_args, **_kwargs):
168 val = apply(eventsc.wxScrollWinEvent_GetOrientation,(self,) + _args, _kwargs)
169 return val
170 def GetPosition(self, *_args, **_kwargs):
171 val = apply(eventsc.wxScrollWinEvent_GetPosition,(self,) + _args, _kwargs)
172 return val
173 def __repr__(self):
174 return "<C wxScrollWinEvent instance at %s>" % (self.this,)
175class wxScrollWinEvent(wxScrollWinEventPtr):
48115f4a
RD
176 def __init__(self,*_args,**_kwargs):
177 self.this = apply(eventsc.new_wxScrollWinEvent,_args,_kwargs)
178 self.thisown = 1
d426c97e
RD
179
180
181
182
b639c3c5
RD
183class wxSpinEventPtr(wxScrollEventPtr):
184 def __init__(self,this):
185 self.this = this
186 self.thisown = 0
187 def __repr__(self):
1d99702e 188 return "<C wxSpinEvent instance at %s>" % (self.this,)
b639c3c5 189class wxSpinEvent(wxSpinEventPtr):
48115f4a
RD
190 def __init__(self,*_args,**_kwargs):
191 self.this = apply(eventsc.new_wxSpinEvent,_args,_kwargs)
192 self.thisown = 1
b639c3c5
RD
193
194
195
196
8ab979d7
RD
197class wxMouseEventPtr(wxEventPtr):
198 def __init__(self,this):
199 self.this = this
200 self.thisown = 0
1d99702e
RD
201 def IsButton(self, *_args, **_kwargs):
202 val = apply(eventsc.wxMouseEvent_IsButton,(self,) + _args, _kwargs)
8ab979d7 203 return val
1d99702e
RD
204 def ButtonDown(self, *_args, **_kwargs):
205 val = apply(eventsc.wxMouseEvent_ButtonDown,(self,) + _args, _kwargs)
8ab979d7 206 return val
1d99702e
RD
207 def ButtonDClick(self, *_args, **_kwargs):
208 val = apply(eventsc.wxMouseEvent_ButtonDClick,(self,) + _args, _kwargs)
8ab979d7 209 return val
1d99702e
RD
210 def ButtonUp(self, *_args, **_kwargs):
211 val = apply(eventsc.wxMouseEvent_ButtonUp,(self,) + _args, _kwargs)
8ab979d7 212 return val
1d99702e
RD
213 def Button(self, *_args, **_kwargs):
214 val = apply(eventsc.wxMouseEvent_Button,(self,) + _args, _kwargs)
8ab979d7 215 return val
1d99702e
RD
216 def ButtonIsDown(self, *_args, **_kwargs):
217 val = apply(eventsc.wxMouseEvent_ButtonIsDown,(self,) + _args, _kwargs)
8ab979d7 218 return val
1d99702e
RD
219 def ControlDown(self, *_args, **_kwargs):
220 val = apply(eventsc.wxMouseEvent_ControlDown,(self,) + _args, _kwargs)
8ab979d7 221 return val
1d99702e
RD
222 def MetaDown(self, *_args, **_kwargs):
223 val = apply(eventsc.wxMouseEvent_MetaDown,(self,) + _args, _kwargs)
8ab979d7 224 return val
1d99702e
RD
225 def AltDown(self, *_args, **_kwargs):
226 val = apply(eventsc.wxMouseEvent_AltDown,(self,) + _args, _kwargs)
8ab979d7 227 return val
1d99702e
RD
228 def ShiftDown(self, *_args, **_kwargs):
229 val = apply(eventsc.wxMouseEvent_ShiftDown,(self,) + _args, _kwargs)
8ab979d7 230 return val
1d99702e
RD
231 def LeftDown(self, *_args, **_kwargs):
232 val = apply(eventsc.wxMouseEvent_LeftDown,(self,) + _args, _kwargs)
8ab979d7 233 return val
1d99702e
RD
234 def MiddleDown(self, *_args, **_kwargs):
235 val = apply(eventsc.wxMouseEvent_MiddleDown,(self,) + _args, _kwargs)
8ab979d7 236 return val
1d99702e
RD
237 def RightDown(self, *_args, **_kwargs):
238 val = apply(eventsc.wxMouseEvent_RightDown,(self,) + _args, _kwargs)
8ab979d7 239 return val
1d99702e
RD
240 def LeftUp(self, *_args, **_kwargs):
241 val = apply(eventsc.wxMouseEvent_LeftUp,(self,) + _args, _kwargs)
8ab979d7 242 return val
1d99702e
RD
243 def MiddleUp(self, *_args, **_kwargs):
244 val = apply(eventsc.wxMouseEvent_MiddleUp,(self,) + _args, _kwargs)
8ab979d7 245 return val
1d99702e
RD
246 def RightUp(self, *_args, **_kwargs):
247 val = apply(eventsc.wxMouseEvent_RightUp,(self,) + _args, _kwargs)
8ab979d7 248 return val
1d99702e
RD
249 def LeftDClick(self, *_args, **_kwargs):
250 val = apply(eventsc.wxMouseEvent_LeftDClick,(self,) + _args, _kwargs)
8ab979d7 251 return val
1d99702e
RD
252 def MiddleDClick(self, *_args, **_kwargs):
253 val = apply(eventsc.wxMouseEvent_MiddleDClick,(self,) + _args, _kwargs)
8ab979d7 254 return val
1d99702e
RD
255 def RightDClick(self, *_args, **_kwargs):
256 val = apply(eventsc.wxMouseEvent_RightDClick,(self,) + _args, _kwargs)
8ab979d7 257 return val
1d99702e
RD
258 def LeftIsDown(self, *_args, **_kwargs):
259 val = apply(eventsc.wxMouseEvent_LeftIsDown,(self,) + _args, _kwargs)
8ab979d7 260 return val
1d99702e
RD
261 def MiddleIsDown(self, *_args, **_kwargs):
262 val = apply(eventsc.wxMouseEvent_MiddleIsDown,(self,) + _args, _kwargs)
8ab979d7 263 return val
1d99702e
RD
264 def RightIsDown(self, *_args, **_kwargs):
265 val = apply(eventsc.wxMouseEvent_RightIsDown,(self,) + _args, _kwargs)
8ab979d7 266 return val
1d99702e
RD
267 def Dragging(self, *_args, **_kwargs):
268 val = apply(eventsc.wxMouseEvent_Dragging,(self,) + _args, _kwargs)
8ab979d7 269 return val
1d99702e
RD
270 def Moving(self, *_args, **_kwargs):
271 val = apply(eventsc.wxMouseEvent_Moving,(self,) + _args, _kwargs)
8ab979d7 272 return val
1d99702e
RD
273 def Entering(self, *_args, **_kwargs):
274 val = apply(eventsc.wxMouseEvent_Entering,(self,) + _args, _kwargs)
8ab979d7 275 return val
1d99702e
RD
276 def Leaving(self, *_args, **_kwargs):
277 val = apply(eventsc.wxMouseEvent_Leaving,(self,) + _args, _kwargs)
8ab979d7 278 return val
1d99702e
RD
279 def GetPosition(self, *_args, **_kwargs):
280 val = apply(eventsc.wxMouseEvent_GetPosition,(self,) + _args, _kwargs)
281 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7 282 return val
b1462dfa
RD
283 def GetPositionTuple(self, *_args, **_kwargs):
284 val = apply(eventsc.wxMouseEvent_GetPositionTuple,(self,) + _args, _kwargs)
285 return val
1d99702e
RD
286 def GetLogicalPosition(self, *_args, **_kwargs):
287 val = apply(eventsc.wxMouseEvent_GetLogicalPosition,(self,) + _args, _kwargs)
288 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7 289 return val
1d99702e
RD
290 def GetX(self, *_args, **_kwargs):
291 val = apply(eventsc.wxMouseEvent_GetX,(self,) + _args, _kwargs)
8ab979d7 292 return val
1d99702e
RD
293 def GetY(self, *_args, **_kwargs):
294 val = apply(eventsc.wxMouseEvent_GetY,(self,) + _args, _kwargs)
8ab979d7
RD
295 return val
296 def __repr__(self):
1d99702e 297 return "<C wxMouseEvent instance at %s>" % (self.this,)
8ab979d7 298class wxMouseEvent(wxMouseEventPtr):
48115f4a
RD
299 def __init__(self,*_args,**_kwargs):
300 self.this = apply(eventsc.new_wxMouseEvent,_args,_kwargs)
301 self.thisown = 1
8ab979d7
RD
302
303
304
305
306class wxKeyEventPtr(wxEventPtr):
307 def __init__(self,this):
308 self.this = this
309 self.thisown = 0
1d99702e
RD
310 def ControlDown(self, *_args, **_kwargs):
311 val = apply(eventsc.wxKeyEvent_ControlDown,(self,) + _args, _kwargs)
8ab979d7 312 return val
1d99702e
RD
313 def MetaDown(self, *_args, **_kwargs):
314 val = apply(eventsc.wxKeyEvent_MetaDown,(self,) + _args, _kwargs)
8ab979d7 315 return val
1d99702e
RD
316 def AltDown(self, *_args, **_kwargs):
317 val = apply(eventsc.wxKeyEvent_AltDown,(self,) + _args, _kwargs)
8ab979d7 318 return val
1d99702e
RD
319 def ShiftDown(self, *_args, **_kwargs):
320 val = apply(eventsc.wxKeyEvent_ShiftDown,(self,) + _args, _kwargs)
8ab979d7 321 return val
1d99702e
RD
322 def KeyCode(self, *_args, **_kwargs):
323 val = apply(eventsc.wxKeyEvent_KeyCode,(self,) + _args, _kwargs)
8ab979d7 324 return val
48115f4a
RD
325 def GetX(self, *_args, **_kwargs):
326 val = apply(eventsc.wxKeyEvent_GetX,(self,) + _args, _kwargs)
327 return val
328 def GetY(self, *_args, **_kwargs):
329 val = apply(eventsc.wxKeyEvent_GetY,(self,) + _args, _kwargs)
330 return val
331 def GetPosition(self, *_args, **_kwargs):
332 val = apply(eventsc.wxKeyEvent_GetPosition,(self,) + _args, _kwargs)
333 if val: val = wxPointPtr(val) ; val.thisown = 1
334 return val
335 def GetPositionTuple(self, *_args, **_kwargs):
336 val = apply(eventsc.wxKeyEvent_GetPositionTuple,(self,) + _args, _kwargs)
337 return val
8ab979d7 338 def __repr__(self):
1d99702e 339 return "<C wxKeyEvent instance at %s>" % (self.this,)
8ab979d7 340class wxKeyEvent(wxKeyEventPtr):
48115f4a
RD
341 def __init__(self,*_args,**_kwargs):
342 self.this = apply(eventsc.new_wxKeyEvent,_args,_kwargs)
343 self.thisown = 1
344
345
346
347
348class wxNavigationKeyEventPtr(wxCommandEventPtr):
8ab979d7
RD
349 def __init__(self,this):
350 self.this = this
48115f4a
RD
351 self.thisown = 0
352 def GetDirection(self, *_args, **_kwargs):
353 val = apply(eventsc.wxNavigationKeyEvent_GetDirection,(self,) + _args, _kwargs)
354 return val
355 def SetDirection(self, *_args, **_kwargs):
356 val = apply(eventsc.wxNavigationKeyEvent_SetDirection,(self,) + _args, _kwargs)
357 return val
358 def IsWindowChange(self, *_args, **_kwargs):
359 val = apply(eventsc.wxNavigationKeyEvent_IsWindowChange,(self,) + _args, _kwargs)
360 return val
361 def SetWindowChange(self, *_args, **_kwargs):
362 val = apply(eventsc.wxNavigationKeyEvent_SetWindowChange,(self,) + _args, _kwargs)
363 return val
364 def GetCurrentFocus(self, *_args, **_kwargs):
365 val = apply(eventsc.wxNavigationKeyEvent_GetCurrentFocus,(self,) + _args, _kwargs)
366 if val: val = wxWindowPtr(val)
367 return val
368 def SetCurrentFocus(self, *_args, **_kwargs):
369 val = apply(eventsc.wxNavigationKeyEvent_SetCurrentFocus,(self,) + _args, _kwargs)
370 return val
371 def __repr__(self):
372 return "<C wxNavigationKeyEvent instance at %s>" % (self.this,)
373class wxNavigationKeyEvent(wxNavigationKeyEventPtr):
374 def __init__(self,*_args,**_kwargs):
375 self.this = apply(eventsc.new_wxNavigationKeyEvent,_args,_kwargs)
376 self.thisown = 1
8ab979d7
RD
377
378
379
380
381class wxMoveEventPtr(wxEventPtr):
382 def __init__(self,this):
383 self.this = this
384 self.thisown = 0
1d99702e
RD
385 def GetPosition(self, *_args, **_kwargs):
386 val = apply(eventsc.wxMoveEvent_GetPosition,(self,) + _args, _kwargs)
387 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7
RD
388 return val
389 def __repr__(self):
1d99702e 390 return "<C wxMoveEvent instance at %s>" % (self.this,)
8ab979d7 391class wxMoveEvent(wxMoveEventPtr):
48115f4a
RD
392 def __init__(self,*_args,**_kwargs):
393 self.this = apply(eventsc.new_wxMoveEvent,_args,_kwargs)
394 self.thisown = 1
8ab979d7
RD
395
396
397
398
399class wxPaintEventPtr(wxEventPtr):
400 def __init__(self,this):
401 self.this = this
402 self.thisown = 0
403 def __repr__(self):
1d99702e 404 return "<C wxPaintEvent instance at %s>" % (self.this,)
8ab979d7 405class wxPaintEvent(wxPaintEventPtr):
48115f4a
RD
406 def __init__(self,*_args,**_kwargs):
407 self.this = apply(eventsc.new_wxPaintEvent,_args,_kwargs)
408 self.thisown = 1
8ab979d7
RD
409
410
411
412
413class wxEraseEventPtr(wxEventPtr):
414 def __init__(self,this):
415 self.this = this
416 self.thisown = 0
1d99702e
RD
417 def GetDC(self, *_args, **_kwargs):
418 val = apply(eventsc.wxEraseEvent_GetDC,(self,) + _args, _kwargs)
419 if val: val = wxDCPtr(val)
8ab979d7
RD
420 return val
421 def __repr__(self):
1d99702e 422 return "<C wxEraseEvent instance at %s>" % (self.this,)
8ab979d7 423class wxEraseEvent(wxEraseEventPtr):
48115f4a
RD
424 def __init__(self,*_args,**_kwargs):
425 self.this = apply(eventsc.new_wxEraseEvent,_args,_kwargs)
426 self.thisown = 1
8ab979d7
RD
427
428
429
430
431class wxFocusEventPtr(wxEventPtr):
432 def __init__(self,this):
433 self.this = this
434 self.thisown = 0
435 def __repr__(self):
1d99702e 436 return "<C wxFocusEvent instance at %s>" % (self.this,)
8ab979d7 437class wxFocusEvent(wxFocusEventPtr):
48115f4a
RD
438 def __init__(self,*_args,**_kwargs):
439 self.this = apply(eventsc.new_wxFocusEvent,_args,_kwargs)
440 self.thisown = 1
8ab979d7
RD
441
442
443
444
445class wxActivateEventPtr(wxEventPtr):
446 def __init__(self,this):
447 self.this = this
448 self.thisown = 0
1d99702e
RD
449 def GetActive(self, *_args, **_kwargs):
450 val = apply(eventsc.wxActivateEvent_GetActive,(self,) + _args, _kwargs)
8ab979d7
RD
451 return val
452 def __repr__(self):
1d99702e 453 return "<C wxActivateEvent instance at %s>" % (self.this,)
8ab979d7 454class wxActivateEvent(wxActivateEventPtr):
48115f4a
RD
455 def __init__(self,*_args,**_kwargs):
456 self.this = apply(eventsc.new_wxActivateEvent,_args,_kwargs)
457 self.thisown = 1
8ab979d7
RD
458
459
460
461
462class wxInitDialogEventPtr(wxEventPtr):
463 def __init__(self,this):
464 self.this = this
465 self.thisown = 0
466 def __repr__(self):
1d99702e 467 return "<C wxInitDialogEvent instance at %s>" % (self.this,)
8ab979d7 468class wxInitDialogEvent(wxInitDialogEventPtr):
48115f4a
RD
469 def __init__(self,*_args,**_kwargs):
470 self.this = apply(eventsc.new_wxInitDialogEvent,_args,_kwargs)
471 self.thisown = 1
8ab979d7
RD
472
473
474
475
476class wxMenuEventPtr(wxEventPtr):
477 def __init__(self,this):
478 self.this = this
479 self.thisown = 0
1d99702e
RD
480 def GetMenuId(self, *_args, **_kwargs):
481 val = apply(eventsc.wxMenuEvent_GetMenuId,(self,) + _args, _kwargs)
8ab979d7
RD
482 return val
483 def __repr__(self):
1d99702e 484 return "<C wxMenuEvent instance at %s>" % (self.this,)
8ab979d7 485class wxMenuEvent(wxMenuEventPtr):
48115f4a
RD
486 def __init__(self,*_args,**_kwargs):
487 self.this = apply(eventsc.new_wxMenuEvent,_args,_kwargs)
488 self.thisown = 1
8ab979d7
RD
489
490
491
492
493class wxShowEventPtr(wxEventPtr):
494 def __init__(self,this):
495 self.this = this
496 self.thisown = 0
1d99702e
RD
497 def SetShow(self, *_args, **_kwargs):
498 val = apply(eventsc.wxShowEvent_SetShow,(self,) + _args, _kwargs)
8ab979d7 499 return val
1d99702e
RD
500 def GetShow(self, *_args, **_kwargs):
501 val = apply(eventsc.wxShowEvent_GetShow,(self,) + _args, _kwargs)
8ab979d7
RD
502 return val
503 def __repr__(self):
1d99702e 504 return "<C wxShowEvent instance at %s>" % (self.this,)
8ab979d7 505class wxShowEvent(wxShowEventPtr):
48115f4a
RD
506 def __init__(self,*_args,**_kwargs):
507 self.this = apply(eventsc.new_wxShowEvent,_args,_kwargs)
508 self.thisown = 1
8ab979d7
RD
509
510
511
512
513class wxIconizeEventPtr(wxEventPtr):
514 def __init__(self,this):
515 self.this = this
516 self.thisown = 0
517 def __repr__(self):
1d99702e 518 return "<C wxIconizeEvent instance at %s>" % (self.this,)
8ab979d7 519class wxIconizeEvent(wxIconizeEventPtr):
48115f4a
RD
520 def __init__(self,*_args,**_kwargs):
521 self.this = apply(eventsc.new_wxIconizeEvent,_args,_kwargs)
522 self.thisown = 1
8ab979d7
RD
523
524
525
526
527class wxMaximizeEventPtr(wxEventPtr):
528 def __init__(self,this):
529 self.this = this
530 self.thisown = 0
531 def __repr__(self):
1d99702e 532 return "<C wxMaximizeEvent instance at %s>" % (self.this,)
8ab979d7 533class wxMaximizeEvent(wxMaximizeEventPtr):
48115f4a
RD
534 def __init__(self,*_args,**_kwargs):
535 self.this = apply(eventsc.new_wxMaximizeEvent,_args,_kwargs)
536 self.thisown = 1
8ab979d7
RD
537
538
539
540
541class wxJoystickEventPtr(wxEventPtr):
542 def __init__(self,this):
543 self.this = this
544 self.thisown = 0
1d99702e
RD
545 def GetPosition(self, *_args, **_kwargs):
546 val = apply(eventsc.wxJoystickEvent_GetPosition,(self,) + _args, _kwargs)
547 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7 548 return val
1d99702e
RD
549 def GetZPosition(self, *_args, **_kwargs):
550 val = apply(eventsc.wxJoystickEvent_GetZPosition,(self,) + _args, _kwargs)
8ab979d7 551 return val
1d99702e
RD
552 def GetButtonState(self, *_args, **_kwargs):
553 val = apply(eventsc.wxJoystickEvent_GetButtonState,(self,) + _args, _kwargs)
8ab979d7 554 return val
1d99702e
RD
555 def GetButtonChange(self, *_args, **_kwargs):
556 val = apply(eventsc.wxJoystickEvent_GetButtonChange,(self,) + _args, _kwargs)
8ab979d7 557 return val
1d99702e
RD
558 def GetJoystick(self, *_args, **_kwargs):
559 val = apply(eventsc.wxJoystickEvent_GetJoystick,(self,) + _args, _kwargs)
8ab979d7 560 return val
1d99702e
RD
561 def SetJoystick(self, *_args, **_kwargs):
562 val = apply(eventsc.wxJoystickEvent_SetJoystick,(self,) + _args, _kwargs)
8ab979d7 563 return val
1d99702e
RD
564 def SetButtonState(self, *_args, **_kwargs):
565 val = apply(eventsc.wxJoystickEvent_SetButtonState,(self,) + _args, _kwargs)
8ab979d7 566 return val
1d99702e
RD
567 def SetButtonChange(self, *_args, **_kwargs):
568 val = apply(eventsc.wxJoystickEvent_SetButtonChange,(self,) + _args, _kwargs)
8ab979d7 569 return val
1d99702e
RD
570 def SetPosition(self, *_args, **_kwargs):
571 val = apply(eventsc.wxJoystickEvent_SetPosition,(self,) + _args, _kwargs)
8ab979d7 572 return val
1d99702e
RD
573 def SetZPosition(self, *_args, **_kwargs):
574 val = apply(eventsc.wxJoystickEvent_SetZPosition,(self,) + _args, _kwargs)
8ab979d7 575 return val
1d99702e
RD
576 def IsButton(self, *_args, **_kwargs):
577 val = apply(eventsc.wxJoystickEvent_IsButton,(self,) + _args, _kwargs)
8ab979d7 578 return val
1d99702e
RD
579 def IsMove(self, *_args, **_kwargs):
580 val = apply(eventsc.wxJoystickEvent_IsMove,(self,) + _args, _kwargs)
8ab979d7 581 return val
1d99702e
RD
582 def IsZMove(self, *_args, **_kwargs):
583 val = apply(eventsc.wxJoystickEvent_IsZMove,(self,) + _args, _kwargs)
8ab979d7 584 return val
1d99702e
RD
585 def ButtonDown(self, *_args, **_kwargs):
586 val = apply(eventsc.wxJoystickEvent_ButtonDown,(self,) + _args, _kwargs)
8ab979d7 587 return val
1d99702e
RD
588 def ButtonUp(self, *_args, **_kwargs):
589 val = apply(eventsc.wxJoystickEvent_ButtonUp,(self,) + _args, _kwargs)
8ab979d7 590 return val
1d99702e
RD
591 def ButtonIsDown(self, *_args, **_kwargs):
592 val = apply(eventsc.wxJoystickEvent_ButtonIsDown,(self,) + _args, _kwargs)
8ab979d7
RD
593 return val
594 def __repr__(self):
1d99702e 595 return "<C wxJoystickEvent instance at %s>" % (self.this,)
8ab979d7 596class wxJoystickEvent(wxJoystickEventPtr):
48115f4a
RD
597 def __init__(self,*_args,**_kwargs):
598 self.this = apply(eventsc.new_wxJoystickEvent,_args,_kwargs)
599 self.thisown = 1
8ab979d7
RD
600
601
602
603
604class wxDropFilesEventPtr(wxEventPtr):
605 def __init__(self,this):
606 self.this = this
607 self.thisown = 0
1d99702e
RD
608 def GetPosition(self, *_args, **_kwargs):
609 val = apply(eventsc.wxDropFilesEvent_GetPosition,(self,) + _args, _kwargs)
610 if val: val = wxPointPtr(val) ; val.thisown = 1
8ab979d7 611 return val
1d99702e
RD
612 def GetNumberOfFiles(self, *_args, **_kwargs):
613 val = apply(eventsc.wxDropFilesEvent_GetNumberOfFiles,(self,) + _args, _kwargs)
8ab979d7 614 return val
1d99702e
RD
615 def GetFiles(self, *_args, **_kwargs):
616 val = apply(eventsc.wxDropFilesEvent_GetFiles,(self,) + _args, _kwargs)
8ab979d7
RD
617 return val
618 def __repr__(self):
1d99702e 619 return "<C wxDropFilesEvent instance at %s>" % (self.this,)
8ab979d7
RD
620class wxDropFilesEvent(wxDropFilesEventPtr):
621 def __init__(self,this):
622 self.this = this
623
624
625
626
627class wxIdleEventPtr(wxEventPtr):
628 def __init__(self,this):
629 self.this = this
630 self.thisown = 0
1d99702e
RD
631 def RequestMore(self, *_args, **_kwargs):
632 val = apply(eventsc.wxIdleEvent_RequestMore,(self,) + _args, _kwargs)
8ab979d7 633 return val
1d99702e
RD
634 def MoreRequested(self, *_args, **_kwargs):
635 val = apply(eventsc.wxIdleEvent_MoreRequested,(self,) + _args, _kwargs)
8ab979d7
RD
636 return val
637 def __repr__(self):
1d99702e 638 return "<C wxIdleEvent instance at %s>" % (self.this,)
8ab979d7 639class wxIdleEvent(wxIdleEventPtr):
48115f4a
RD
640 def __init__(self,*_args,**_kwargs):
641 self.this = apply(eventsc.new_wxIdleEvent,_args,_kwargs)
642 self.thisown = 1
8ab979d7
RD
643
644
645
646
647class wxUpdateUIEventPtr(wxEventPtr):
648 def __init__(self,this):
649 self.this = this
650 self.thisown = 0
1d99702e
RD
651 def GetChecked(self, *_args, **_kwargs):
652 val = apply(eventsc.wxUpdateUIEvent_GetChecked,(self,) + _args, _kwargs)
8ab979d7 653 return val
1d99702e
RD
654 def GetEnabled(self, *_args, **_kwargs):
655 val = apply(eventsc.wxUpdateUIEvent_GetEnabled,(self,) + _args, _kwargs)
8ab979d7 656 return val
1d99702e
RD
657 def GetText(self, *_args, **_kwargs):
658 val = apply(eventsc.wxUpdateUIEvent_GetText,(self,) + _args, _kwargs)
8ab979d7 659 return val
1d99702e
RD
660 def GetSetText(self, *_args, **_kwargs):
661 val = apply(eventsc.wxUpdateUIEvent_GetSetText,(self,) + _args, _kwargs)
8ab979d7 662 return val
1d99702e
RD
663 def GetSetChecked(self, *_args, **_kwargs):
664 val = apply(eventsc.wxUpdateUIEvent_GetSetChecked,(self,) + _args, _kwargs)
8ab979d7 665 return val
1d99702e
RD
666 def GetSetEnabled(self, *_args, **_kwargs):
667 val = apply(eventsc.wxUpdateUIEvent_GetSetEnabled,(self,) + _args, _kwargs)
8ab979d7 668 return val
1d99702e
RD
669 def Check(self, *_args, **_kwargs):
670 val = apply(eventsc.wxUpdateUIEvent_Check,(self,) + _args, _kwargs)
8ab979d7 671 return val
1d99702e
RD
672 def Enable(self, *_args, **_kwargs):
673 val = apply(eventsc.wxUpdateUIEvent_Enable,(self,) + _args, _kwargs)
8ab979d7 674 return val
1d99702e
RD
675 def SetText(self, *_args, **_kwargs):
676 val = apply(eventsc.wxUpdateUIEvent_SetText,(self,) + _args, _kwargs)
8ab979d7
RD
677 return val
678 def __repr__(self):
1d99702e 679 return "<C wxUpdateUIEvent instance at %s>" % (self.this,)
8ab979d7 680class wxUpdateUIEvent(wxUpdateUIEventPtr):
48115f4a
RD
681 def __init__(self,*_args,**_kwargs):
682 self.this = apply(eventsc.new_wxUpdateUIEvent,_args,_kwargs)
683 self.thisown = 1
8ab979d7
RD
684
685
686
687
688class wxSysColourChangedEventPtr(wxEventPtr):
689 def __init__(self,this):
690 self.this = this
691 self.thisown = 0
692 def __repr__(self):
1d99702e 693 return "<C wxSysColourChangedEvent instance at %s>" % (self.this,)
8ab979d7 694class wxSysColourChangedEvent(wxSysColourChangedEventPtr):
48115f4a
RD
695 def __init__(self,*_args,**_kwargs):
696 self.this = apply(eventsc.new_wxSysColourChangedEvent,_args,_kwargs)
697 self.thisown = 1
8ab979d7
RD
698
699
700
701
2f90df85
RD
702class wxNotifyEventPtr(wxCommandEventPtr):
703 def __init__(self,this):
704 self.this = this
705 self.thisown = 0
706 def IsAllowed(self, *_args, **_kwargs):
707 val = apply(eventsc.wxNotifyEvent_IsAllowed,(self,) + _args, _kwargs)
708 return val
709 def Veto(self, *_args, **_kwargs):
710 val = apply(eventsc.wxNotifyEvent_Veto,(self,) + _args, _kwargs)
711 return val
712 def __repr__(self):
713 return "<C wxNotifyEvent instance at %s>" % (self.this,)
714class wxNotifyEvent(wxNotifyEventPtr):
48115f4a
RD
715 def __init__(self,*_args,**_kwargs):
716 self.this = apply(eventsc.new_wxNotifyEvent,_args,_kwargs)
717 self.thisown = 1
718
719
720
721
722class wxPaletteChangedEventPtr(wxEventPtr):
2f90df85
RD
723 def __init__(self,this):
724 self.this = this
48115f4a
RD
725 self.thisown = 0
726 def SetChangedWindow(self, *_args, **_kwargs):
727 val = apply(eventsc.wxPaletteChangedEvent_SetChangedWindow,(self,) + _args, _kwargs)
728 return val
729 def GetChangedWindow(self, *_args, **_kwargs):
730 val = apply(eventsc.wxPaletteChangedEvent_GetChangedWindow,(self,) + _args, _kwargs)
731 if val: val = wxWindowPtr(val)
732 return val
733 def __repr__(self):
734 return "<C wxPaletteChangedEvent instance at %s>" % (self.this,)
735class wxPaletteChangedEvent(wxPaletteChangedEventPtr):
736 def __init__(self,*_args,**_kwargs):
737 self.this = apply(eventsc.new_wxPaletteChangedEvent,_args,_kwargs)
738 self.thisown = 1
739
740
741
742
743class wxQueryNewPaletteEventPtr(wxEventPtr):
744 def __init__(self,this):
745 self.this = this
746 self.thisown = 0
747 def SetPaletteRealized(self, *_args, **_kwargs):
748 val = apply(eventsc.wxQueryNewPaletteEvent_SetPaletteRealized,(self,) + _args, _kwargs)
749 return val
750 def GetPaletteRealized(self, *_args, **_kwargs):
751 val = apply(eventsc.wxQueryNewPaletteEvent_GetPaletteRealized,(self,) + _args, _kwargs)
752 return val
753 def __repr__(self):
754 return "<C wxQueryNewPaletteEvent instance at %s>" % (self.this,)
755class wxQueryNewPaletteEvent(wxQueryNewPaletteEventPtr):
756 def __init__(self,*_args,**_kwargs):
757 self.this = apply(eventsc.new_wxQueryNewPaletteEvent,_args,_kwargs)
758 self.thisown = 1
759
760
761
762
763class wxWindowCreateEventPtr(wxEventPtr):
764 def __init__(self,this):
765 self.this = this
766 self.thisown = 0
767 def GetWindow(self, *_args, **_kwargs):
768 val = apply(eventsc.wxWindowCreateEvent_GetWindow,(self,) + _args, _kwargs)
769 if val: val = wxWindowPtr(val)
770 return val
771 def __repr__(self):
772 return "<C wxWindowCreateEvent instance at %s>" % (self.this,)
773class wxWindowCreateEvent(wxWindowCreateEventPtr):
774 def __init__(self,*_args,**_kwargs):
775 self.this = apply(eventsc.new_wxWindowCreateEvent,_args,_kwargs)
776 self.thisown = 1
777
778
779
780
781class wxWindowDestroyEventPtr(wxEventPtr):
782 def __init__(self,this):
783 self.this = this
784 self.thisown = 0
785 def GetWindow(self, *_args, **_kwargs):
786 val = apply(eventsc.wxWindowDestroyEvent_GetWindow,(self,) + _args, _kwargs)
787 if val: val = wxWindowPtr(val)
788 return val
789 def __repr__(self):
790 return "<C wxWindowDestroyEvent instance at %s>" % (self.this,)
791class wxWindowDestroyEvent(wxWindowDestroyEventPtr):
792 def __init__(self,*_args,**_kwargs):
793 self.this = apply(eventsc.new_wxWindowDestroyEvent,_args,_kwargs)
794 self.thisown = 1
2f90df85
RD
795
796
797
798
799class wxPyEventPtr(wxEventPtr):
cf694132
RD
800 def __init__(self,this):
801 self.this = this
802 self.thisown = 0
1d99702e 803 def __del__(self,eventsc=eventsc):
cf694132 804 if self.thisown == 1 :
1d99702e 805 eventsc.delete_wxPyEvent(self)
65dd82cb
RD
806 def SetSelf(self, *_args, **_kwargs):
807 val = apply(eventsc.wxPyEvent_SetSelf,(self,) + _args, _kwargs)
cf694132 808 return val
65dd82cb
RD
809 def GetSelf(self, *_args, **_kwargs):
810 val = apply(eventsc.wxPyEvent_GetSelf,(self,) + _args, _kwargs)
cf694132
RD
811 return val
812 def __repr__(self):
1d99702e 813 return "<C wxPyEvent instance at %s>" % (self.this,)
cf694132 814class wxPyEvent(wxPyEventPtr):
1d99702e
RD
815 def __init__(self,*_args,**_kwargs):
816 self.this = apply(eventsc.new_wxPyEvent,_args,_kwargs)
cf694132 817 self.thisown = 1
65dd82cb 818 self.SetSelf(self)
cf694132
RD
819
820
821
822
2f90df85 823class wxPyCommandEventPtr(wxCommandEventPtr):
bb0054cd
RD
824 def __init__(self,this):
825 self.this = this
826 self.thisown = 0
2f90df85
RD
827 def __del__(self,eventsc=eventsc):
828 if self.thisown == 1 :
829 eventsc.delete_wxPyCommandEvent(self)
65dd82cb
RD
830 def SetSelf(self, *_args, **_kwargs):
831 val = apply(eventsc.wxPyCommandEvent_SetSelf,(self,) + _args, _kwargs)
bb0054cd 832 return val
65dd82cb
RD
833 def GetSelf(self, *_args, **_kwargs):
834 val = apply(eventsc.wxPyCommandEvent_GetSelf,(self,) + _args, _kwargs)
bb0054cd
RD
835 return val
836 def __repr__(self):
2f90df85
RD
837 return "<C wxPyCommandEvent instance at %s>" % (self.this,)
838class wxPyCommandEvent(wxPyCommandEventPtr):
839 def __init__(self,*_args,**_kwargs):
840 self.this = apply(eventsc.new_wxPyCommandEvent,_args,_kwargs)
841 self.thisown = 1
65dd82cb 842 self.SetSelf(self)
bb0054cd
RD
843
844
845
846
8ab979d7
RD
847
848
849#-------------- FUNCTION WRAPPERS ------------------
850
851
852
853#-------------- VARIABLE WRAPPERS ------------------
854