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