]> git.saurik.com Git - wxWidgets.git/blob - utils/wxPython/src/msw/events.py
Fixed wxImage GetData and SetData to properly use String objects for
[wxWidgets.git] / utils / wxPython / src / msw / events.py
1 # This file was created automatically by SWIG.
2 import eventsc
3
4 from misc import *
5 class wxEventPtr :
6 def __init__(self,this):
7 self.this = this
8 self.thisown = 0
9 def GetEventObject(self):
10 val = eventsc.wxEvent_GetEventObject(self.this)
11 return val
12 def GetEventType(self):
13 val = eventsc.wxEvent_GetEventType(self.this)
14 return val
15 def GetId(self):
16 val = eventsc.wxEvent_GetId(self.this)
17 return val
18 def GetSkipped(self):
19 val = eventsc.wxEvent_GetSkipped(self.this)
20 return val
21 def GetTimestamp(self):
22 val = eventsc.wxEvent_GetTimestamp(self.this)
23 return val
24 def SetEventObject(self,arg0):
25 val = eventsc.wxEvent_SetEventObject(self.this,arg0)
26 return val
27 def SetEventType(self,arg0):
28 val = eventsc.wxEvent_SetEventType(self.this,arg0)
29 return val
30 def SetId(self,arg0):
31 val = eventsc.wxEvent_SetId(self.this,arg0)
32 return val
33 def SetTimestamp(self,arg0):
34 val = eventsc.wxEvent_SetTimestamp(self.this,arg0)
35 return val
36 def Skip(self,*args):
37 val = apply(eventsc.wxEvent_Skip,(self.this,)+args)
38 return val
39 def __repr__(self):
40 return "<C wxEvent instance>"
41 class wxEvent(wxEventPtr):
42 def __init__(self,this):
43 self.this = this
44
45
46
47
48 class wxSizeEventPtr(wxEventPtr):
49 def __init__(self,this):
50 self.this = this
51 self.thisown = 0
52 def GetSize(self):
53 val = eventsc.wxSizeEvent_GetSize(self.this)
54 val = wxSizePtr(val)
55 val.thisown = 1
56 return val
57 def __repr__(self):
58 return "<C wxSizeEvent instance>"
59 class wxSizeEvent(wxSizeEventPtr):
60 def __init__(self,this):
61 self.this = this
62
63
64
65
66 class wxCloseEventPtr(wxEventPtr):
67 def __init__(self,this):
68 self.this = this
69 self.thisown = 0
70 def SetLoggingOff(self,arg0):
71 val = eventsc.wxCloseEvent_SetLoggingOff(self.this,arg0)
72 return val
73 def GetLoggingOff(self):
74 val = eventsc.wxCloseEvent_GetLoggingOff(self.this)
75 return val
76 def Veto(self,*args):
77 val = apply(eventsc.wxCloseEvent_Veto,(self.this,)+args)
78 return val
79 def CanVeto(self):
80 val = eventsc.wxCloseEvent_CanVeto(self.this)
81 return val
82 def GetVeto(self):
83 val = eventsc.wxCloseEvent_GetVeto(self.this)
84 return val
85 def SetCanVeto(self,arg0):
86 val = eventsc.wxCloseEvent_SetCanVeto(self.this,arg0)
87 return val
88 def __repr__(self):
89 return "<C wxCloseEvent instance>"
90 class wxCloseEvent(wxCloseEventPtr):
91 def __init__(self,this):
92 self.this = this
93
94
95
96
97 class wxCommandEventPtr(wxEventPtr):
98 def __init__(self,this):
99 self.this = this
100 self.thisown = 0
101 def Checked(self):
102 val = eventsc.wxCommandEvent_Checked(self.this)
103 return val
104 def GetExtraLong(self):
105 val = eventsc.wxCommandEvent_GetExtraLong(self.this)
106 return val
107 def GetInt(self):
108 val = eventsc.wxCommandEvent_GetInt(self.this)
109 return val
110 def GetSelection(self):
111 val = eventsc.wxCommandEvent_GetSelection(self.this)
112 return val
113 def GetString(self):
114 val = eventsc.wxCommandEvent_GetString(self.this)
115 return val
116 def IsSelection(self):
117 val = eventsc.wxCommandEvent_IsSelection(self.this)
118 return val
119 def __repr__(self):
120 return "<C wxCommandEvent instance>"
121 class wxCommandEvent(wxCommandEventPtr):
122 def __init__(self,this):
123 self.this = this
124
125
126
127
128 class wxScrollEventPtr(wxCommandEventPtr):
129 def __init__(self,this):
130 self.this = this
131 self.thisown = 0
132 def GetOrientation(self):
133 val = eventsc.wxScrollEvent_GetOrientation(self.this)
134 return val
135 def GetPosition(self):
136 val = eventsc.wxScrollEvent_GetPosition(self.this)
137 return val
138 def __repr__(self):
139 return "<C wxScrollEvent instance>"
140 class wxScrollEvent(wxScrollEventPtr):
141 def __init__(self,this):
142 self.this = this
143
144
145
146
147 class wxSpinEventPtr(wxScrollEventPtr):
148 def __init__(self,this):
149 self.this = this
150 self.thisown = 0
151 def __repr__(self):
152 return "<C wxSpinEvent instance>"
153 class wxSpinEvent(wxSpinEventPtr):
154 def __init__(self,this):
155 self.this = this
156
157
158
159
160 class wxMouseEventPtr(wxEventPtr):
161 def __init__(self,this):
162 self.this = this
163 self.thisown = 0
164 def IsButton(self):
165 val = eventsc.wxMouseEvent_IsButton(self.this)
166 return val
167 def ButtonDown(self,*args):
168 val = apply(eventsc.wxMouseEvent_ButtonDown,(self.this,)+args)
169 return val
170 def ButtonDClick(self,*args):
171 val = apply(eventsc.wxMouseEvent_ButtonDClick,(self.this,)+args)
172 return val
173 def ButtonUp(self,*args):
174 val = apply(eventsc.wxMouseEvent_ButtonUp,(self.this,)+args)
175 return val
176 def Button(self,arg0):
177 val = eventsc.wxMouseEvent_Button(self.this,arg0)
178 return val
179 def ButtonIsDown(self,arg0):
180 val = eventsc.wxMouseEvent_ButtonIsDown(self.this,arg0)
181 return val
182 def ControlDown(self):
183 val = eventsc.wxMouseEvent_ControlDown(self.this)
184 return val
185 def MetaDown(self):
186 val = eventsc.wxMouseEvent_MetaDown(self.this)
187 return val
188 def AltDown(self):
189 val = eventsc.wxMouseEvent_AltDown(self.this)
190 return val
191 def ShiftDown(self):
192 val = eventsc.wxMouseEvent_ShiftDown(self.this)
193 return val
194 def LeftDown(self):
195 val = eventsc.wxMouseEvent_LeftDown(self.this)
196 return val
197 def MiddleDown(self):
198 val = eventsc.wxMouseEvent_MiddleDown(self.this)
199 return val
200 def RightDown(self):
201 val = eventsc.wxMouseEvent_RightDown(self.this)
202 return val
203 def LeftUp(self):
204 val = eventsc.wxMouseEvent_LeftUp(self.this)
205 return val
206 def MiddleUp(self):
207 val = eventsc.wxMouseEvent_MiddleUp(self.this)
208 return val
209 def RightUp(self):
210 val = eventsc.wxMouseEvent_RightUp(self.this)
211 return val
212 def LeftDClick(self):
213 val = eventsc.wxMouseEvent_LeftDClick(self.this)
214 return val
215 def MiddleDClick(self):
216 val = eventsc.wxMouseEvent_MiddleDClick(self.this)
217 return val
218 def RightDClick(self):
219 val = eventsc.wxMouseEvent_RightDClick(self.this)
220 return val
221 def LeftIsDown(self):
222 val = eventsc.wxMouseEvent_LeftIsDown(self.this)
223 return val
224 def MiddleIsDown(self):
225 val = eventsc.wxMouseEvent_MiddleIsDown(self.this)
226 return val
227 def RightIsDown(self):
228 val = eventsc.wxMouseEvent_RightIsDown(self.this)
229 return val
230 def Dragging(self):
231 val = eventsc.wxMouseEvent_Dragging(self.this)
232 return val
233 def Moving(self):
234 val = eventsc.wxMouseEvent_Moving(self.this)
235 return val
236 def Entering(self):
237 val = eventsc.wxMouseEvent_Entering(self.this)
238 return val
239 def Leaving(self):
240 val = eventsc.wxMouseEvent_Leaving(self.this)
241 return val
242 def Position(self):
243 val = eventsc.wxMouseEvent_Position(self.this)
244 return val
245 def GetPosition(self):
246 val = eventsc.wxMouseEvent_GetPosition(self.this)
247 val = wxPointPtr(val)
248 val.thisown = 1
249 return val
250 def GetLogicalPosition(self,arg0):
251 val = eventsc.wxMouseEvent_GetLogicalPosition(self.this,arg0.this)
252 val = wxPointPtr(val)
253 val.thisown = 1
254 return val
255 def GetX(self):
256 val = eventsc.wxMouseEvent_GetX(self.this)
257 return val
258 def GetY(self):
259 val = eventsc.wxMouseEvent_GetY(self.this)
260 return val
261 def __repr__(self):
262 return "<C wxMouseEvent instance>"
263 class wxMouseEvent(wxMouseEventPtr):
264 def __init__(self,this):
265 self.this = this
266
267
268
269
270 class wxKeyEventPtr(wxEventPtr):
271 def __init__(self,this):
272 self.this = this
273 self.thisown = 0
274 def ControlDown(self):
275 val = eventsc.wxKeyEvent_ControlDown(self.this)
276 return val
277 def MetaDown(self):
278 val = eventsc.wxKeyEvent_MetaDown(self.this)
279 return val
280 def AltDown(self):
281 val = eventsc.wxKeyEvent_AltDown(self.this)
282 return val
283 def ShiftDown(self):
284 val = eventsc.wxKeyEvent_ShiftDown(self.this)
285 return val
286 def KeyCode(self):
287 val = eventsc.wxKeyEvent_KeyCode(self.this)
288 return val
289 def __repr__(self):
290 return "<C wxKeyEvent instance>"
291 class wxKeyEvent(wxKeyEventPtr):
292 def __init__(self,this):
293 self.this = this
294
295
296
297
298 class wxMoveEventPtr(wxEventPtr):
299 def __init__(self,this):
300 self.this = this
301 self.thisown = 0
302 def GetPosition(self):
303 val = eventsc.wxMoveEvent_GetPosition(self.this)
304 val = wxPointPtr(val)
305 val.thisown = 1
306 return val
307 def __repr__(self):
308 return "<C wxMoveEvent instance>"
309 class wxMoveEvent(wxMoveEventPtr):
310 def __init__(self,this):
311 self.this = this
312
313
314
315
316 class wxPaintEventPtr(wxEventPtr):
317 def __init__(self,this):
318 self.this = this
319 self.thisown = 0
320 def __repr__(self):
321 return "<C wxPaintEvent instance>"
322 class wxPaintEvent(wxPaintEventPtr):
323 def __init__(self,this):
324 self.this = this
325
326
327
328
329 class wxEraseEventPtr(wxEventPtr):
330 def __init__(self,this):
331 self.this = this
332 self.thisown = 0
333 def GetDC(self):
334 val = eventsc.wxEraseEvent_GetDC(self.this)
335 val = wxDCPtr(val)
336 return val
337 def __repr__(self):
338 return "<C wxEraseEvent instance>"
339 class wxEraseEvent(wxEraseEventPtr):
340 def __init__(self,this):
341 self.this = this
342
343
344
345
346 class wxFocusEventPtr(wxEventPtr):
347 def __init__(self,this):
348 self.this = this
349 self.thisown = 0
350 def __repr__(self):
351 return "<C wxFocusEvent instance>"
352 class wxFocusEvent(wxFocusEventPtr):
353 def __init__(self,this):
354 self.this = this
355
356
357
358
359 class wxActivateEventPtr(wxEventPtr):
360 def __init__(self,this):
361 self.this = this
362 self.thisown = 0
363 def GetActive(self):
364 val = eventsc.wxActivateEvent_GetActive(self.this)
365 return val
366 def __repr__(self):
367 return "<C wxActivateEvent instance>"
368 class wxActivateEvent(wxActivateEventPtr):
369 def __init__(self,this):
370 self.this = this
371
372
373
374
375 class wxInitDialogEventPtr(wxEventPtr):
376 def __init__(self,this):
377 self.this = this
378 self.thisown = 0
379 def __repr__(self):
380 return "<C wxInitDialogEvent instance>"
381 class wxInitDialogEvent(wxInitDialogEventPtr):
382 def __init__(self,this):
383 self.this = this
384
385
386
387
388 class wxMenuEventPtr(wxEventPtr):
389 def __init__(self,this):
390 self.this = this
391 self.thisown = 0
392 def GetMenuId(self):
393 val = eventsc.wxMenuEvent_GetMenuId(self.this)
394 return val
395 def __repr__(self):
396 return "<C wxMenuEvent instance>"
397 class wxMenuEvent(wxMenuEventPtr):
398 def __init__(self,this):
399 self.this = this
400
401
402
403
404 class wxShowEventPtr(wxEventPtr):
405 def __init__(self,this):
406 self.this = this
407 self.thisown = 0
408 def SetShow(self,arg0):
409 val = eventsc.wxShowEvent_SetShow(self.this,arg0)
410 return val
411 def GetShow(self):
412 val = eventsc.wxShowEvent_GetShow(self.this)
413 return val
414 def __repr__(self):
415 return "<C wxShowEvent instance>"
416 class wxShowEvent(wxShowEventPtr):
417 def __init__(self,this):
418 self.this = this
419
420
421
422
423 class wxIconizeEventPtr(wxEventPtr):
424 def __init__(self,this):
425 self.this = this
426 self.thisown = 0
427 def __repr__(self):
428 return "<C wxIconizeEvent instance>"
429 class wxIconizeEvent(wxIconizeEventPtr):
430 def __init__(self,this):
431 self.this = this
432
433
434
435
436 class wxMaximizeEventPtr(wxEventPtr):
437 def __init__(self,this):
438 self.this = this
439 self.thisown = 0
440 def __repr__(self):
441 return "<C wxMaximizeEvent instance>"
442 class wxMaximizeEvent(wxMaximizeEventPtr):
443 def __init__(self,this):
444 self.this = this
445
446
447
448
449 class wxJoystickEventPtr(wxEventPtr):
450 def __init__(self,this):
451 self.this = this
452 self.thisown = 0
453 def GetPosition(self):
454 val = eventsc.wxJoystickEvent_GetPosition(self.this)
455 val = wxPointPtr(val)
456 val.thisown = 1
457 return val
458 def GetZPosition(self):
459 val = eventsc.wxJoystickEvent_GetZPosition(self.this)
460 return val
461 def GetButtonState(self):
462 val = eventsc.wxJoystickEvent_GetButtonState(self.this)
463 return val
464 def GetButtonChange(self):
465 val = eventsc.wxJoystickEvent_GetButtonChange(self.this)
466 return val
467 def GetJoystick(self):
468 val = eventsc.wxJoystickEvent_GetJoystick(self.this)
469 return val
470 def SetJoystick(self,arg0):
471 val = eventsc.wxJoystickEvent_SetJoystick(self.this,arg0)
472 return val
473 def SetButtonState(self,arg0):
474 val = eventsc.wxJoystickEvent_SetButtonState(self.this,arg0)
475 return val
476 def SetButtonChange(self,arg0):
477 val = eventsc.wxJoystickEvent_SetButtonChange(self.this,arg0)
478 return val
479 def SetPosition(self,arg0):
480 val = eventsc.wxJoystickEvent_SetPosition(self.this,arg0.this)
481 return val
482 def SetZPosition(self,arg0):
483 val = eventsc.wxJoystickEvent_SetZPosition(self.this,arg0)
484 return val
485 def IsButton(self):
486 val = eventsc.wxJoystickEvent_IsButton(self.this)
487 return val
488 def IsMove(self):
489 val = eventsc.wxJoystickEvent_IsMove(self.this)
490 return val
491 def IsZMove(self):
492 val = eventsc.wxJoystickEvent_IsZMove(self.this)
493 return val
494 def ButtonDown(self,*args):
495 val = apply(eventsc.wxJoystickEvent_ButtonDown,(self.this,)+args)
496 return val
497 def ButtonUp(self,*args):
498 val = apply(eventsc.wxJoystickEvent_ButtonUp,(self.this,)+args)
499 return val
500 def ButtonIsDown(self,*args):
501 val = apply(eventsc.wxJoystickEvent_ButtonIsDown,(self.this,)+args)
502 return val
503 def __repr__(self):
504 return "<C wxJoystickEvent instance>"
505 class wxJoystickEvent(wxJoystickEventPtr):
506 def __init__(self,this):
507 self.this = this
508
509
510
511
512 class wxDropFilesEventPtr(wxEventPtr):
513 def __init__(self,this):
514 self.this = this
515 self.thisown = 0
516 def GetPosition(self):
517 val = eventsc.wxDropFilesEvent_GetPosition(self.this)
518 val = wxPointPtr(val)
519 val.thisown = 1
520 return val
521 def GetNumberOfFiles(self):
522 val = eventsc.wxDropFilesEvent_GetNumberOfFiles(self.this)
523 return val
524 def GetFiles(self):
525 val = eventsc.wxDropFilesEvent_GetFiles(self.this)
526 return val
527 def __repr__(self):
528 return "<C wxDropFilesEvent instance>"
529 class wxDropFilesEvent(wxDropFilesEventPtr):
530 def __init__(self,this):
531 self.this = this
532
533
534
535
536 class wxIdleEventPtr(wxEventPtr):
537 def __init__(self,this):
538 self.this = this
539 self.thisown = 0
540 def RequestMore(self,*args):
541 val = apply(eventsc.wxIdleEvent_RequestMore,(self.this,)+args)
542 return val
543 def MoreRequested(self):
544 val = eventsc.wxIdleEvent_MoreRequested(self.this)
545 return val
546 def __repr__(self):
547 return "<C wxIdleEvent instance>"
548 class wxIdleEvent(wxIdleEventPtr):
549 def __init__(self,this):
550 self.this = this
551
552
553
554
555 class wxUpdateUIEventPtr(wxEventPtr):
556 def __init__(self,this):
557 self.this = this
558 self.thisown = 0
559 def GetChecked(self):
560 val = eventsc.wxUpdateUIEvent_GetChecked(self.this)
561 return val
562 def GetEnabled(self):
563 val = eventsc.wxUpdateUIEvent_GetEnabled(self.this)
564 return val
565 def GetText(self):
566 val = eventsc.wxUpdateUIEvent_GetText(self.this)
567 return val
568 def GetSetText(self):
569 val = eventsc.wxUpdateUIEvent_GetSetText(self.this)
570 return val
571 def GetSetChecked(self):
572 val = eventsc.wxUpdateUIEvent_GetSetChecked(self.this)
573 return val
574 def GetSetEnabled(self):
575 val = eventsc.wxUpdateUIEvent_GetSetEnabled(self.this)
576 return val
577 def Check(self,arg0):
578 val = eventsc.wxUpdateUIEvent_Check(self.this,arg0)
579 return val
580 def Enable(self,arg0):
581 val = eventsc.wxUpdateUIEvent_Enable(self.this,arg0)
582 return val
583 def SetText(self,arg0):
584 val = eventsc.wxUpdateUIEvent_SetText(self.this,arg0)
585 return val
586 def __repr__(self):
587 return "<C wxUpdateUIEvent instance>"
588 class wxUpdateUIEvent(wxUpdateUIEventPtr):
589 def __init__(self,this):
590 self.this = this
591
592
593
594
595 class wxSysColourChangedEventPtr(wxEventPtr):
596 def __init__(self,this):
597 self.this = this
598 self.thisown = 0
599 def __repr__(self):
600 return "<C wxSysColourChangedEvent instance>"
601 class wxSysColourChangedEvent(wxSysColourChangedEventPtr):
602 def __init__(self,this):
603 self.this = this
604
605
606
607
608 class wxPyEventPtr(wxCommandEventPtr):
609 def __init__(self,this):
610 self.this = this
611 self.thisown = 0
612 def __del__(self, eventsc=eventsc):
613 if self.thisown == 1 :
614 eventsc.delete_wxPyEvent(self.this)
615 def SetUserData(self,arg0):
616 val = eventsc.wxPyEvent_SetUserData(self.this,arg0)
617 return val
618 def GetUserData(self):
619 val = eventsc.wxPyEvent_GetUserData(self.this)
620 return val
621 def __repr__(self):
622 return "<C wxPyEvent instance>"
623 class wxPyEvent(wxPyEventPtr):
624 def __init__(self,*args) :
625 self.this = apply(eventsc.new_wxPyEvent,()+args)
626 self.thisown = 1
627
628
629
630
631 class wxNotifyEventPtr(wxCommandEventPtr):
632 def __init__(self,this):
633 self.this = this
634 self.thisown = 0
635 def IsAllowed(self):
636 val = eventsc.wxNotifyEvent_IsAllowed(self.this)
637 return val
638 def Veto(self):
639 val = eventsc.wxNotifyEvent_Veto(self.this)
640 return val
641 def __repr__(self):
642 return "<C wxNotifyEvent instance>"
643 class wxNotifyEvent(wxNotifyEventPtr):
644 def __init__(self,this):
645 self.this = this
646
647
648
649
650
651
652 #-------------- FUNCTION WRAPPERS ------------------
653
654
655
656 #-------------- VARIABLE WRAPPERS ------------------
657