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