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