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