]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/msw/misc2.py
Fixed Ron's fix
[wxWidgets.git] / wxPython / src / msw / misc2.py
CommitLineData
d24a34bb
RD
1# This file was created automatically by SWIG.
2import misc2c
3
4from windows import *
5
6from misc import *
7
8from gdi import *
4120ef2b
RD
9
10from clip_dnd import *
11
12from events import *
c368d904
RD
13
14from streams import *
9416aa89 15class wxToolTipPtr(wxObjectPtr):
d24a34bb
RD
16 def __init__(self,this):
17 self.this = this
18 self.thisown = 0
2d091820
RD
19 def SetTip(self, *_args, **_kwargs):
20 val = apply(misc2c.wxToolTip_SetTip,(self,) + _args, _kwargs)
d24a34bb 21 return val
2d091820
RD
22 def GetTip(self, *_args, **_kwargs):
23 val = apply(misc2c.wxToolTip_GetTip,(self,) + _args, _kwargs)
d24a34bb 24 return val
2d091820
RD
25 def GetWindow(self, *_args, **_kwargs):
26 val = apply(misc2c.wxToolTip_GetWindow,(self,) + _args, _kwargs)
d24a34bb
RD
27 return val
28 def __repr__(self):
2d091820 29 return "<C wxToolTip instance at %s>" % (self.this,)
d24a34bb 30class wxToolTip(wxToolTipPtr):
2d091820
RD
31 def __init__(self,*_args,**_kwargs):
32 self.this = apply(misc2c.new_wxToolTip,_args,_kwargs)
d24a34bb
RD
33 self.thisown = 1
34
35
36
37
8f17924e
RD
38class wxCaretPtr :
39 def __init__(self,this):
40 self.this = this
41 self.thisown = 0
42 def __del__(self,misc2c=misc2c):
43 if self.thisown == 1 :
44 misc2c.delete_wxCaret(self)
45 def IsOk(self, *_args, **_kwargs):
46 val = apply(misc2c.wxCaret_IsOk,(self,) + _args, _kwargs)
47 return val
48 def IsVisible(self, *_args, **_kwargs):
49 val = apply(misc2c.wxCaret_IsVisible,(self,) + _args, _kwargs)
50 return val
51 def GetPositionTuple(self, *_args, **_kwargs):
52 val = apply(misc2c.wxCaret_GetPositionTuple,(self,) + _args, _kwargs)
53 return val
54 def GetPosition(self, *_args, **_kwargs):
55 val = apply(misc2c.wxCaret_GetPosition,(self,) + _args, _kwargs)
56 if val: val = wxPointPtr(val) ; val.thisown = 1
57 return val
58 def GetSizeTuple(self, *_args, **_kwargs):
59 val = apply(misc2c.wxCaret_GetSizeTuple,(self,) + _args, _kwargs)
60 return val
61 def GetSize(self, *_args, **_kwargs):
62 val = apply(misc2c.wxCaret_GetSize,(self,) + _args, _kwargs)
63 if val: val = wxSizePtr(val) ; val.thisown = 1
64 return val
65 def GetWindow(self, *_args, **_kwargs):
66 val = apply(misc2c.wxCaret_GetWindow,(self,) + _args, _kwargs)
8f17924e
RD
67 return val
68 def MoveXY(self, *_args, **_kwargs):
69 val = apply(misc2c.wxCaret_MoveXY,(self,) + _args, _kwargs)
70 return val
71 def Move(self, *_args, **_kwargs):
72 val = apply(misc2c.wxCaret_Move,(self,) + _args, _kwargs)
73 return val
e02c03a4
RD
74 def SetSizeWH(self, *_args, **_kwargs):
75 val = apply(misc2c.wxCaret_SetSizeWH,(self,) + _args, _kwargs)
76 return val
77 def SetSize(self, *_args, **_kwargs):
78 val = apply(misc2c.wxCaret_SetSize,(self,) + _args, _kwargs)
79 return val
8f17924e
RD
80 def Show(self, *_args, **_kwargs):
81 val = apply(misc2c.wxCaret_Show,(self,) + _args, _kwargs)
82 return val
83 def Hide(self, *_args, **_kwargs):
84 val = apply(misc2c.wxCaret_Hide,(self,) + _args, _kwargs)
85 return val
8f17924e
RD
86 def __repr__(self):
87 return "<C wxCaret instance at %s>" % (self.this,)
88class wxCaret(wxCaretPtr):
89 def __init__(self,*_args,**_kwargs):
90 self.this = apply(misc2c.new_wxCaret,_args,_kwargs)
91 self.thisown = 1
92
93
94
95
4120ef2b
RD
96class wxFontEnumeratorPtr :
97 def __init__(self,this):
98 self.this = this
99 self.thisown = 0
100 def __del__(self,misc2c=misc2c):
101 if self.thisown == 1 :
102 misc2c.delete_wxFontEnumerator(self)
103 def _setSelf(self, *_args, **_kwargs):
104 val = apply(misc2c.wxFontEnumerator__setSelf,(self,) + _args, _kwargs)
105 return val
106 def EnumerateFacenames(self, *_args, **_kwargs):
107 val = apply(misc2c.wxFontEnumerator_EnumerateFacenames,(self,) + _args, _kwargs)
108 return val
109 def EnumerateEncodings(self, *_args, **_kwargs):
110 val = apply(misc2c.wxFontEnumerator_EnumerateEncodings,(self,) + _args, _kwargs)
111 return val
112 def GetEncodings(self, *_args, **_kwargs):
113 val = apply(misc2c.wxFontEnumerator_GetEncodings,(self,) + _args, _kwargs)
114 return val
115 def GetFacenames(self, *_args, **_kwargs):
116 val = apply(misc2c.wxFontEnumerator_GetFacenames,(self,) + _args, _kwargs)
117 return val
118 def __repr__(self):
119 return "<C wxFontEnumerator instance at %s>" % (self.this,)
120class wxFontEnumerator(wxFontEnumeratorPtr):
121 def __init__(self,*_args,**_kwargs):
122 self.this = apply(misc2c.new_wxFontEnumerator,_args,_kwargs)
123 self.thisown = 1
f6bcfd97 124 self._setSelf(self, wxFontEnumerator)
4120ef2b
RD
125
126
127
128
129class wxBusyCursorPtr :
130 def __init__(self,this):
131 self.this = this
132 self.thisown = 0
133 def __del__(self,misc2c=misc2c):
134 if self.thisown == 1 :
135 misc2c.delete_wxBusyCursor(self)
136 def __repr__(self):
137 return "<C wxBusyCursor instance at %s>" % (self.this,)
138class wxBusyCursor(wxBusyCursorPtr):
139 def __init__(self,*_args,**_kwargs):
140 self.this = apply(misc2c.new_wxBusyCursor,_args,_kwargs)
141 self.thisown = 1
142
143
144
145
c368d904
RD
146class wxWindowDisablerPtr :
147 def __init__(self,this):
148 self.this = this
149 self.thisown = 0
150 def __del__(self,misc2c=misc2c):
151 if self.thisown == 1 :
152 misc2c.delete_wxWindowDisabler(self)
153 def __repr__(self):
154 return "<C wxWindowDisabler instance at %s>" % (self.this,)
155class wxWindowDisabler(wxWindowDisablerPtr):
156 def __init__(self,*_args,**_kwargs):
157 self.this = apply(misc2c.new_wxWindowDisabler,_args,_kwargs)
158 self.thisown = 1
159
160
161
162
6e18ca6c
RD
163class wxMutexGuiLockerPtr :
164 def __init__(self,this):
165 self.this = this
166 self.thisown = 0
167 def __del__(self,misc2c=misc2c):
168 if self.thisown == 1 :
169 misc2c.delete_wxMutexGuiLocker(self)
170 def __repr__(self):
171 return "<C wxMutexGuiLocker instance at %s>" % (self.this,)
172class wxMutexGuiLocker(wxMutexGuiLockerPtr):
173 def __init__(self,*_args,**_kwargs):
174 self.this = apply(misc2c.new_wxMutexGuiLocker,_args,_kwargs)
175 self.thisown = 1
176
177
178
179
f6bcfd97
BP
180class wxTipProviderPtr :
181 def __init__(self,this):
182 self.this = this
183 self.thisown = 0
184 def __del__(self,misc2c=misc2c):
185 if self.thisown == 1 :
186 misc2c.delete_wxTipProvider(self)
187 def GetTip(self, *_args, **_kwargs):
188 val = apply(misc2c.wxTipProvider_GetTip,(self,) + _args, _kwargs)
189 return val
190 def GetCurrentTip(self, *_args, **_kwargs):
191 val = apply(misc2c.wxTipProvider_GetCurrentTip,(self,) + _args, _kwargs)
192 return val
193 def __repr__(self):
194 return "<C wxTipProvider instance at %s>" % (self.this,)
195class wxTipProvider(wxTipProviderPtr):
196 def __init__(self,this):
197 self.this = this
198
199
200
201
202class wxPyTipProviderPtr(wxTipProviderPtr):
203 def __init__(self,this):
204 self.this = this
205 self.thisown = 0
206 def __repr__(self):
207 return "<C wxPyTipProvider instance at %s>" % (self.this,)
208class wxPyTipProvider(wxPyTipProviderPtr):
209 def __init__(self,*_args,**_kwargs):
210 self.this = apply(misc2c.new_wxPyTipProvider,_args,_kwargs)
211 self.thisown = 1
212
213
214
215
9416aa89 216class wxDragImagePtr(wxObjectPtr):
f6bcfd97
BP
217 def __init__(self,this):
218 self.this = this
219 self.thisown = 0
220 def __del__(self,misc2c=misc2c):
221 if self.thisown == 1 :
222 misc2c.delete_wxDragImage(self)
10e07c70
RD
223 def SetBackingBitmap(self, *_args, **_kwargs):
224 val = apply(misc2c.wxDragImage_SetBackingBitmap,(self,) + _args, _kwargs)
225 return val
f6bcfd97
BP
226 def BeginDrag(self, *_args, **_kwargs):
227 val = apply(misc2c.wxDragImage_BeginDrag,(self,) + _args, _kwargs)
228 return val
229 def BeginDrag2(self, *_args, **_kwargs):
230 val = apply(misc2c.wxDragImage_BeginDrag2,(self,) + _args, _kwargs)
231 return val
232 def EndDrag(self, *_args, **_kwargs):
233 val = apply(misc2c.wxDragImage_EndDrag,(self,) + _args, _kwargs)
234 return val
235 def Move(self, *_args, **_kwargs):
236 val = apply(misc2c.wxDragImage_Move,(self,) + _args, _kwargs)
237 return val
238 def Show(self, *_args, **_kwargs):
239 val = apply(misc2c.wxDragImage_Show,(self,) + _args, _kwargs)
240 return val
241 def Hide(self, *_args, **_kwargs):
242 val = apply(misc2c.wxDragImage_Hide,(self,) + _args, _kwargs)
243 return val
244 def GetImageRect(self, *_args, **_kwargs):
245 val = apply(misc2c.wxDragImage_GetImageRect,(self,) + _args, _kwargs)
246 if val: val = wxRectPtr(val) ; val.thisown = 1
247 return val
248 def RedrawImage(self, *_args, **_kwargs):
249 val = apply(misc2c.wxDragImage_RedrawImage,(self,) + _args, _kwargs)
250 return val
251 def __repr__(self):
252 return "<C wxDragImage instance at %s>" % (self.this,)
253class wxDragImage(wxDragImagePtr):
254 def __init__(self,*_args,**_kwargs):
255 self.this = apply(misc2c.new_wxDragImage,_args,_kwargs)
256 self.thisown = 1
257
258
259
cdf14688
RD
260def wxDragIcon(*_args,**_kwargs):
261 val = wxDragImagePtr(apply(misc2c.new_wxDragIcon,_args,_kwargs))
262 val.thisown = 1
263 return val
264
265def wxDragString(*_args,**_kwargs):
266 val = wxDragImagePtr(apply(misc2c.new_wxDragString,_args,_kwargs))
267 val.thisown = 1
268 return val
269
270def wxDragTreeItem(*_args,**_kwargs):
271 val = wxDragImagePtr(apply(misc2c.new_wxDragTreeItem,_args,_kwargs))
272 val.thisown = 1
273 return val
274
275def wxDragListItem(*_args,**_kwargs):
276 val = wxDragImagePtr(apply(misc2c.new_wxDragListItem,_args,_kwargs))
277 val.thisown = 1
278 return val
279
f6bcfd97 280
9416aa89 281class wxPyTimerPtr(wxObjectPtr):
f6bcfd97
BP
282 def __init__(self,this):
283 self.this = this
284 self.thisown = 0
285 def __del__(self,misc2c=misc2c):
286 if self.thisown == 1 :
287 misc2c.delete_wxPyTimer(self)
288 def GetInterval(self, *_args, **_kwargs):
289 val = apply(misc2c.wxPyTimer_GetInterval,(self,) + _args, _kwargs)
290 return val
291 def IsOneShot(self, *_args, **_kwargs):
292 val = apply(misc2c.wxPyTimer_IsOneShot,(self,) + _args, _kwargs)
293 return val
294 def IsRunning(self, *_args, **_kwargs):
295 val = apply(misc2c.wxPyTimer_IsRunning,(self,) + _args, _kwargs)
296 return val
297 def SetOwner(self, *_args, **_kwargs):
298 val = apply(misc2c.wxPyTimer_SetOwner,(self,) + _args, _kwargs)
299 return val
300 def Start(self, *_args, **_kwargs):
301 val = apply(misc2c.wxPyTimer_Start,(self,) + _args, _kwargs)
302 return val
303 def Stop(self, *_args, **_kwargs):
304 val = apply(misc2c.wxPyTimer_Stop,(self,) + _args, _kwargs)
305 return val
306 def __repr__(self):
307 return "<C wxPyTimer instance at %s>" % (self.this,)
308class wxPyTimer(wxPyTimerPtr):
309 def __init__(self,*_args,**_kwargs):
310 self.this = apply(misc2c.new_wxPyTimer,_args,_kwargs)
311 self.thisown = 1
312
313
314
315
316class wxLogPtr :
317 def __init__(self,this):
318 self.this = this
319 self.thisown = 0
320 def Flush(self, *_args, **_kwargs):
321 val = apply(misc2c.wxLog_Flush,(self,) + _args, _kwargs)
322 return val
323 def HasPendingMessages(self, *_args, **_kwargs):
324 val = apply(misc2c.wxLog_HasPendingMessages,(self,) + _args, _kwargs)
325 return val
326 def SetVerbose(self, *_args, **_kwargs):
327 val = apply(misc2c.wxLog_SetVerbose,(self,) + _args, _kwargs)
328 return val
329 def GetVerbose(self, *_args, **_kwargs):
330 val = apply(misc2c.wxLog_GetVerbose,(self,) + _args, _kwargs)
331 return val
332 def __repr__(self):
333 return "<C wxLog instance at %s>" % (self.this,)
334class wxLog(wxLogPtr):
335 def __init__(self,*_args,**_kwargs):
336 self.this = apply(misc2c.new_wxLog,_args,_kwargs)
337 self.thisown = 1
338
339
340
341
342class wxLogStderrPtr(wxLogPtr):
343 def __init__(self,this):
344 self.this = this
345 self.thisown = 0
346 def __repr__(self):
347 return "<C wxLogStderr instance at %s>" % (self.this,)
348class wxLogStderr(wxLogStderrPtr):
349 def __init__(self,*_args,**_kwargs):
350 self.this = apply(misc2c.new_wxLogStderr,_args,_kwargs)
351 self.thisown = 1
352
353
354
355
356class wxLogTextCtrlPtr(wxLogPtr):
357 def __init__(self,this):
358 self.this = this
359 self.thisown = 0
360 def __repr__(self):
361 return "<C wxLogTextCtrl instance at %s>" % (self.this,)
362class wxLogTextCtrl(wxLogTextCtrlPtr):
363 def __init__(self,*_args,**_kwargs):
364 self.this = apply(misc2c.new_wxLogTextCtrl,_args,_kwargs)
365 self.thisown = 1
366
367
368
369
370class wxLogGuiPtr(wxLogPtr):
371 def __init__(self,this):
372 self.this = this
373 self.thisown = 0
374 def __repr__(self):
375 return "<C wxLogGui instance at %s>" % (self.this,)
376class wxLogGui(wxLogGuiPtr):
377 def __init__(self,*_args,**_kwargs):
378 self.this = apply(misc2c.new_wxLogGui,_args,_kwargs)
379 self.thisown = 1
380
381
382
383
384class wxLogWindowPtr(wxLogPtr):
385 def __init__(self,this):
386 self.this = this
387 self.thisown = 0
388 def Show(self, *_args, **_kwargs):
389 val = apply(misc2c.wxLogWindow_Show,(self,) + _args, _kwargs)
390 return val
391 def GetFrame(self, *_args, **_kwargs):
392 val = apply(misc2c.wxLogWindow_GetFrame,(self,) + _args, _kwargs)
f6bcfd97
BP
393 return val
394 def GetOldLog(self, *_args, **_kwargs):
395 val = apply(misc2c.wxLogWindow_GetOldLog,(self,) + _args, _kwargs)
396 if val: val = wxLogPtr(val)
397 return val
398 def IsPassingMessages(self, *_args, **_kwargs):
399 val = apply(misc2c.wxLogWindow_IsPassingMessages,(self,) + _args, _kwargs)
400 return val
401 def PassMessages(self, *_args, **_kwargs):
402 val = apply(misc2c.wxLogWindow_PassMessages,(self,) + _args, _kwargs)
403 return val
404 def __repr__(self):
405 return "<C wxLogWindow instance at %s>" % (self.this,)
406class wxLogWindow(wxLogWindowPtr):
407 def __init__(self,*_args,**_kwargs):
408 self.this = apply(misc2c.new_wxLogWindow,_args,_kwargs)
409 self.thisown = 1
410
411
412
413
414class wxLogNullPtr :
415 def __init__(self,this):
416 self.this = this
417 self.thisown = 0
418 def __del__(self,misc2c=misc2c):
419 if self.thisown == 1 :
420 misc2c.delete_wxLogNull(self)
421 def __repr__(self):
422 return "<C wxLogNull instance at %s>" % (self.this,)
423class wxLogNull(wxLogNullPtr):
424 def __init__(self,*_args,**_kwargs):
425 self.this = apply(misc2c.new_wxLogNull,_args,_kwargs)
426 self.thisown = 1
427
428
429
430
c368d904
RD
431class wxProcessEventPtr(wxEventPtr):
432 def __init__(self,this):
433 self.this = this
434 self.thisown = 0
435 def GetPid(self, *_args, **_kwargs):
436 val = apply(misc2c.wxProcessEvent_GetPid,(self,) + _args, _kwargs)
437 return val
438 def GetExitCode(self, *_args, **_kwargs):
439 val = apply(misc2c.wxProcessEvent_GetExitCode,(self,) + _args, _kwargs)
440 return val
441 def __setattr__(self,name,value):
442 if name == "m_pid" :
443 misc2c.wxProcessEvent_m_pid_set(self,value)
444 return
445 if name == "m_exitcode" :
446 misc2c.wxProcessEvent_m_exitcode_set(self,value)
447 return
448 self.__dict__[name] = value
449 def __getattr__(self,name):
450 if name == "m_pid" :
451 return misc2c.wxProcessEvent_m_pid_get(self)
452 if name == "m_exitcode" :
453 return misc2c.wxProcessEvent_m_exitcode_get(self)
454 raise AttributeError,name
455 def __repr__(self):
456 return "<C wxProcessEvent instance at %s>" % (self.this,)
457class wxProcessEvent(wxProcessEventPtr):
458 def __init__(self,*_args,**_kwargs):
459 self.this = apply(misc2c.new_wxProcessEvent,_args,_kwargs)
460 self.thisown = 1
461
462
463
464
465class wxProcessPtr(wxEvtHandlerPtr):
466 def __init__(self,this):
467 self.this = this
468 self.thisown = 0
469 def Destroy(self, *_args, **_kwargs):
470 val = apply(misc2c.wxProcess_Destroy,(self,) + _args, _kwargs)
471 return val
472 def _setSelf(self, *_args, **_kwargs):
473 val = apply(misc2c.wxProcess__setSelf,(self,) + _args, _kwargs)
474 return val
475 def base_OnTerminate(self, *_args, **_kwargs):
476 val = apply(misc2c.wxProcess_base_OnTerminate,(self,) + _args, _kwargs)
477 return val
478 def Redirect(self, *_args, **_kwargs):
479 val = apply(misc2c.wxProcess_Redirect,(self,) + _args, _kwargs)
480 return val
481 def IsRedirected(self, *_args, **_kwargs):
482 val = apply(misc2c.wxProcess_IsRedirected,(self,) + _args, _kwargs)
483 return val
484 def Detach(self, *_args, **_kwargs):
485 val = apply(misc2c.wxProcess_Detach,(self,) + _args, _kwargs)
486 return val
487 def GetInputStream(self, *_args, **_kwargs):
488 val = apply(misc2c.wxProcess_GetInputStream,(self,) + _args, _kwargs)
489 return val
490 def GetErrorStream(self, *_args, **_kwargs):
491 val = apply(misc2c.wxProcess_GetErrorStream,(self,) + _args, _kwargs)
492 return val
493 def GetOutputStream(self, *_args, **_kwargs):
494 val = apply(misc2c.wxProcess_GetOutputStream,(self,) + _args, _kwargs)
495 if val: val = wxOutputStreamPtr(val)
496 return val
497 def CloseOutput(self, *_args, **_kwargs):
498 val = apply(misc2c.wxProcess_CloseOutput,(self,) + _args, _kwargs)
499 return val
500 def __repr__(self):
501 return "<C wxProcess instance at %s>" % (self.this,)
502class wxProcess(wxProcessPtr):
503 def __init__(self,*_args,**_kwargs):
504 self.this = apply(misc2c.new_wxProcess,_args,_kwargs)
505 self.thisown = 1
506 self._setSelf(self, wxProcess)
507
508
509
510
9416aa89 511class wxJoystickPtr(wxObjectPtr):
185d7c3e
RD
512 def __init__(self,this):
513 self.this = this
514 self.thisown = 0
ac346f50
RD
515 def __del__(self,misc2c=misc2c):
516 if self.thisown == 1 :
517 misc2c.delete_wxJoystick(self)
185d7c3e
RD
518 def GetPosition(self, *_args, **_kwargs):
519 val = apply(misc2c.wxJoystick_GetPosition,(self,) + _args, _kwargs)
520 if val: val = wxPointPtr(val) ; val.thisown = 1
521 return val
522 def GetZPosition(self, *_args, **_kwargs):
523 val = apply(misc2c.wxJoystick_GetZPosition,(self,) + _args, _kwargs)
524 return val
525 def GetButtonState(self, *_args, **_kwargs):
526 val = apply(misc2c.wxJoystick_GetButtonState,(self,) + _args, _kwargs)
527 return val
528 def GetPOVPosition(self, *_args, **_kwargs):
529 val = apply(misc2c.wxJoystick_GetPOVPosition,(self,) + _args, _kwargs)
530 return val
531 def GetPOVCTSPosition(self, *_args, **_kwargs):
532 val = apply(misc2c.wxJoystick_GetPOVCTSPosition,(self,) + _args, _kwargs)
533 return val
534 def GetRudderPosition(self, *_args, **_kwargs):
535 val = apply(misc2c.wxJoystick_GetRudderPosition,(self,) + _args, _kwargs)
536 return val
537 def GetUPosition(self, *_args, **_kwargs):
538 val = apply(misc2c.wxJoystick_GetUPosition,(self,) + _args, _kwargs)
539 return val
540 def GetVPosition(self, *_args, **_kwargs):
541 val = apply(misc2c.wxJoystick_GetVPosition,(self,) + _args, _kwargs)
542 return val
543 def GetMovementThreshold(self, *_args, **_kwargs):
544 val = apply(misc2c.wxJoystick_GetMovementThreshold,(self,) + _args, _kwargs)
545 return val
546 def SetMovementThreshold(self, *_args, **_kwargs):
547 val = apply(misc2c.wxJoystick_SetMovementThreshold,(self,) + _args, _kwargs)
548 return val
549 def IsOk(self, *_args, **_kwargs):
550 val = apply(misc2c.wxJoystick_IsOk,(self,) + _args, _kwargs)
551 return val
552 def GetNumberJoysticks(self, *_args, **_kwargs):
553 val = apply(misc2c.wxJoystick_GetNumberJoysticks,(self,) + _args, _kwargs)
554 return val
555 def GetManufacturerId(self, *_args, **_kwargs):
556 val = apply(misc2c.wxJoystick_GetManufacturerId,(self,) + _args, _kwargs)
557 return val
558 def GetProductId(self, *_args, **_kwargs):
559 val = apply(misc2c.wxJoystick_GetProductId,(self,) + _args, _kwargs)
560 return val
561 def GetProductName(self, *_args, **_kwargs):
562 val = apply(misc2c.wxJoystick_GetProductName,(self,) + _args, _kwargs)
563 return val
564 def GetXMin(self, *_args, **_kwargs):
565 val = apply(misc2c.wxJoystick_GetXMin,(self,) + _args, _kwargs)
566 return val
567 def GetYMin(self, *_args, **_kwargs):
568 val = apply(misc2c.wxJoystick_GetYMin,(self,) + _args, _kwargs)
569 return val
570 def GetZMin(self, *_args, **_kwargs):
571 val = apply(misc2c.wxJoystick_GetZMin,(self,) + _args, _kwargs)
572 return val
573 def GetXMax(self, *_args, **_kwargs):
574 val = apply(misc2c.wxJoystick_GetXMax,(self,) + _args, _kwargs)
575 return val
576 def GetYMax(self, *_args, **_kwargs):
577 val = apply(misc2c.wxJoystick_GetYMax,(self,) + _args, _kwargs)
578 return val
579 def GetZMax(self, *_args, **_kwargs):
580 val = apply(misc2c.wxJoystick_GetZMax,(self,) + _args, _kwargs)
581 return val
582 def GetNumberButtons(self, *_args, **_kwargs):
583 val = apply(misc2c.wxJoystick_GetNumberButtons,(self,) + _args, _kwargs)
584 return val
585 def GetNumberAxes(self, *_args, **_kwargs):
586 val = apply(misc2c.wxJoystick_GetNumberAxes,(self,) + _args, _kwargs)
587 return val
588 def GetMaxButtons(self, *_args, **_kwargs):
589 val = apply(misc2c.wxJoystick_GetMaxButtons,(self,) + _args, _kwargs)
590 return val
591 def GetMaxAxes(self, *_args, **_kwargs):
592 val = apply(misc2c.wxJoystick_GetMaxAxes,(self,) + _args, _kwargs)
593 return val
594 def GetPollingMin(self, *_args, **_kwargs):
595 val = apply(misc2c.wxJoystick_GetPollingMin,(self,) + _args, _kwargs)
596 return val
597 def GetPollingMax(self, *_args, **_kwargs):
598 val = apply(misc2c.wxJoystick_GetPollingMax,(self,) + _args, _kwargs)
599 return val
600 def GetRudderMin(self, *_args, **_kwargs):
601 val = apply(misc2c.wxJoystick_GetRudderMin,(self,) + _args, _kwargs)
602 return val
603 def GetRudderMax(self, *_args, **_kwargs):
604 val = apply(misc2c.wxJoystick_GetRudderMax,(self,) + _args, _kwargs)
605 return val
606 def GetUMin(self, *_args, **_kwargs):
607 val = apply(misc2c.wxJoystick_GetUMin,(self,) + _args, _kwargs)
608 return val
609 def GetUMax(self, *_args, **_kwargs):
610 val = apply(misc2c.wxJoystick_GetUMax,(self,) + _args, _kwargs)
611 return val
612 def GetVMin(self, *_args, **_kwargs):
613 val = apply(misc2c.wxJoystick_GetVMin,(self,) + _args, _kwargs)
614 return val
615 def GetVMax(self, *_args, **_kwargs):
616 val = apply(misc2c.wxJoystick_GetVMax,(self,) + _args, _kwargs)
617 return val
618 def HasRudder(self, *_args, **_kwargs):
619 val = apply(misc2c.wxJoystick_HasRudder,(self,) + _args, _kwargs)
620 return val
621 def HasZ(self, *_args, **_kwargs):
622 val = apply(misc2c.wxJoystick_HasZ,(self,) + _args, _kwargs)
623 return val
624 def HasU(self, *_args, **_kwargs):
625 val = apply(misc2c.wxJoystick_HasU,(self,) + _args, _kwargs)
626 return val
627 def HasV(self, *_args, **_kwargs):
628 val = apply(misc2c.wxJoystick_HasV,(self,) + _args, _kwargs)
629 return val
630 def HasPOV(self, *_args, **_kwargs):
631 val = apply(misc2c.wxJoystick_HasPOV,(self,) + _args, _kwargs)
632 return val
633 def HasPOV4Dir(self, *_args, **_kwargs):
634 val = apply(misc2c.wxJoystick_HasPOV4Dir,(self,) + _args, _kwargs)
635 return val
636 def HasPOVCTS(self, *_args, **_kwargs):
637 val = apply(misc2c.wxJoystick_HasPOVCTS,(self,) + _args, _kwargs)
638 return val
639 def SetCapture(self, *_args, **_kwargs):
640 val = apply(misc2c.wxJoystick_SetCapture,(self,) + _args, _kwargs)
641 return val
642 def ReleaseCapture(self, *_args, **_kwargs):
643 val = apply(misc2c.wxJoystick_ReleaseCapture,(self,) + _args, _kwargs)
644 return val
645 def __repr__(self):
646 return "<C wxJoystick instance at %s>" % (self.this,)
647class wxJoystick(wxJoystickPtr):
648 def __init__(self,*_args,**_kwargs):
649 self.this = apply(misc2c.new_wxJoystick,_args,_kwargs)
650 self.thisown = 1
651
652
653
654
493f1553
RD
655class wxWavePtr(wxObjectPtr):
656 def __init__(self,this):
657 self.this = this
658 self.thisown = 0
659 def __del__(self,misc2c=misc2c):
660 if self.thisown == 1 :
661 misc2c.delete_wxWave(self)
662 def IsOk(self, *_args, **_kwargs):
663 val = apply(misc2c.wxWave_IsOk,(self,) + _args, _kwargs)
664 return val
665 def Play(self, *_args, **_kwargs):
666 val = apply(misc2c.wxWave_Play,(self,) + _args, _kwargs)
667 return val
668 def __repr__(self):
669 return "<C wxWave instance at %s>" % (self.this,)
670class wxWave(wxWavePtr):
671 def __init__(self,*_args,**_kwargs):
672 self.this = apply(misc2c.new_wxWave,_args,_kwargs)
673 self.thisown = 1
674
675
676
677
d24a34bb
RD
678
679
680#-------------- FUNCTION WRAPPERS ------------------
681
bc29c5e0
RD
682wxFileSelector = misc2c.wxFileSelector
683
684wxGetTextFromUser = misc2c.wxGetTextFromUser
685
1b62f00d
RD
686wxGetPasswordFromUser = misc2c.wxGetPasswordFromUser
687
bc29c5e0
RD
688wxGetSingleChoice = misc2c.wxGetSingleChoice
689
690wxGetSingleChoiceIndex = misc2c.wxGetSingleChoiceIndex
691
692wxMessageBox = misc2c.wxMessageBox
693
694wxGetNumberFromUser = misc2c.wxGetNumberFromUser
695
696wxColourDisplay = misc2c.wxColourDisplay
697
698wxDisplayDepth = misc2c.wxDisplayDepth
699
1e7ecb7b
RD
700wxGetDisplayDepth = misc2c.wxGetDisplayDepth
701
702wxDisplaySize = misc2c.wxDisplaySize
703
704def wxGetDisplaySize(*_args, **_kwargs):
705 val = apply(misc2c.wxGetDisplaySize,_args,_kwargs)
706 if val: val = wxSizePtr(val); val.thisown = 1
707 return val
708
709wxDisplaySizeMM = misc2c.wxDisplaySizeMM
710
711def wxGetDisplaySizeMM(*_args, **_kwargs):
712 val = apply(misc2c.wxGetDisplaySizeMM,_args,_kwargs)
713 if val: val = wxSizePtr(val); val.thisown = 1
714 return val
715
91c41b30
RD
716wxClientDisplayRect = misc2c.wxClientDisplayRect
717
718def wxGetClientDisplayRect(*_args, **_kwargs):
719 val = apply(misc2c.wxGetClientDisplayRect,_args,_kwargs)
720 if val: val = wxRectPtr(val); val.thisown = 1
721 return val
722
bc29c5e0
RD
723wxSetCursor = misc2c.wxSetCursor
724
2d091820
RD
725def wxFindWindowByLabel(*_args, **_kwargs):
726 val = apply(misc2c.wxFindWindowByLabel,_args,_kwargs)
d24a34bb
RD
727 return val
728
2d091820
RD
729def wxFindWindowByName(*_args, **_kwargs):
730 val = apply(misc2c.wxFindWindowByName,_args,_kwargs)
d24a34bb
RD
731 return val
732
bc29c5e0
RD
733wxBeginBusyCursor = misc2c.wxBeginBusyCursor
734
735def wxGetActiveWindow(*_args, **_kwargs):
736 val = apply(misc2c.wxGetActiveWindow,_args,_kwargs)
bc29c5e0
RD
737 return val
738
493f1553
RD
739def wxGenericFindWindowAtPoint(*_args, **_kwargs):
740 val = apply(misc2c.wxGenericFindWindowAtPoint,_args,_kwargs)
741 return val
742
743def wxFindWindowAtPoint(*_args, **_kwargs):
744 val = apply(misc2c.wxFindWindowAtPoint,_args,_kwargs)
745 return val
746
747wxCheckForInterrupt = misc2c.wxCheckForInterrupt
748
25832b3f
RD
749wxFlushEvents = misc2c.wxFlushEvents
750
bc29c5e0
RD
751wxResourceAddIdentifier = misc2c.wxResourceAddIdentifier
752
753wxResourceClear = misc2c.wxResourceClear
754
755def wxResourceCreateBitmap(*_args, **_kwargs):
756 val = apply(misc2c.wxResourceCreateBitmap,_args,_kwargs)
757 if val: val = wxBitmapPtr(val); val.thisown = 1
758 return val
759
760def wxResourceCreateIcon(*_args, **_kwargs):
761 val = apply(misc2c.wxResourceCreateIcon,_args,_kwargs)
762 if val: val = wxIconPtr(val); val.thisown = 1
763 return val
764
765def wxResourceCreateMenuBar(*_args, **_kwargs):
766 val = apply(misc2c.wxResourceCreateMenuBar,_args,_kwargs)
bc29c5e0
RD
767 return val
768
769wxResourceGetIdentifier = misc2c.wxResourceGetIdentifier
770
771wxResourceParseData = misc2c.wxResourceParseData
772
773wxResourceParseFile = misc2c.wxResourceParseFile
774
775wxResourceParseString = misc2c.wxResourceParseString
776
777def wxSystemSettings_GetSystemColour(*_args, **_kwargs):
778 val = apply(misc2c.wxSystemSettings_GetSystemColour,_args,_kwargs)
779 if val: val = wxColourPtr(val); val.thisown = 1
780 return val
781
782def wxSystemSettings_GetSystemFont(*_args, **_kwargs):
783 val = apply(misc2c.wxSystemSettings_GetSystemFont,_args,_kwargs)
784 if val: val = wxFontPtr(val); val.thisown = 1
785 return val
786
787wxSystemSettings_GetSystemMetric = misc2c.wxSystemSettings_GetSystemMetric
788
8f17924e
RD
789wxCaret_GetBlinkTime = misc2c.wxCaret_GetBlinkTime
790
791wxCaret_SetBlinkTime = misc2c.wxCaret_SetBlinkTime
792
6e18ca6c
RD
793wxSafeYield = misc2c.wxSafeYield
794
4120ef2b
RD
795wxPostEvent = misc2c.wxPostEvent
796
d29aba2f
RD
797wxWakeUpIdle = misc2c.wxWakeUpIdle
798
6e18ca6c
RD
799wxWakeUpMainThread = misc2c.wxWakeUpMainThread
800
801wxMutexGuiEnter = misc2c.wxMutexGuiEnter
802
803wxMutexGuiLeave = misc2c.wxMutexGuiLeave
804
805wxThread_IsMain = misc2c.wxThread_IsMain
c368d904 806
f6bcfd97
BP
807wxShowTip = misc2c.wxShowTip
808
809def wxCreateFileTipProvider(*_args, **_kwargs):
810 val = apply(misc2c.wxCreateFileTipProvider,_args,_kwargs)
811 if val: val = wxTipProviderPtr(val); val.thisown = 1
812 return val
813
f6bcfd97
BP
814wxSysErrorCode = misc2c.wxSysErrorCode
815
816wxSysErrorMsg = misc2c.wxSysErrorMsg
817
818wxLogFatalError = misc2c.wxLogFatalError
819
820wxLogError = misc2c.wxLogError
821
822wxLogWarning = misc2c.wxLogWarning
823
824wxLogMessage = misc2c.wxLogMessage
825
826wxLogInfo = misc2c.wxLogInfo
827
828wxLogVerbose = misc2c.wxLogVerbose
829
830wxLogStatus = misc2c.wxLogStatus
831
832wxLogStatusFrame = misc2c.wxLogStatusFrame
833
834wxLogSysError = misc2c.wxLogSysError
835
c368d904
RD
836wxExecute = misc2c.wxExecute
837
493f1553
RD
838def wxWaveData(*_args, **_kwargs):
839 val = apply(misc2c.wxWaveData,_args,_kwargs)
840 if val: val = wxWavePtr(val); val.thisown = 1
841 return val
842
edf2f43e
RD
843wxToolTip_Enable = misc2c.wxToolTip_Enable
844
845wxToolTip_SetDelay = misc2c.wxToolTip_SetDelay
846
f6bcfd97
BP
847wxLog_IsEnabled = misc2c.wxLog_IsEnabled
848
849wxLog_EnableLogging = misc2c.wxLog_EnableLogging
850
851wxLog_OnLog = misc2c.wxLog_OnLog
852
853wxLog_FlushActive = misc2c.wxLog_FlushActive
854
855def wxLog_GetActiveTarget(*_args, **_kwargs):
856 val = apply(misc2c.wxLog_GetActiveTarget,_args,_kwargs)
857 if val: val = wxLogPtr(val)
858 return val
859
860def wxLog_SetActiveTarget(*_args, **_kwargs):
861 val = apply(misc2c.wxLog_SetActiveTarget,_args,_kwargs)
862 if val: val = wxLogPtr(val)
863 return val
864
865wxLog_Suspend = misc2c.wxLog_Suspend
866
867wxLog_Resume = misc2c.wxLog_Resume
868
869wxLog_DontCreateOnDemand = misc2c.wxLog_DontCreateOnDemand
870
871wxLog_SetTraceMask = misc2c.wxLog_SetTraceMask
872
873wxLog_AddTraceMask = misc2c.wxLog_AddTraceMask
874
875wxLog_RemoveTraceMask = misc2c.wxLog_RemoveTraceMask
876
877wxLog_GetTraceMask = misc2c.wxLog_GetTraceMask
878
879wxLog_IsAllowedTraceMask = misc2c.wxLog_IsAllowedTraceMask
880
d24a34bb
RD
881
882
883#-------------- VARIABLE WRAPPERS ------------------
884
bc29c5e0
RD
885wxSYS_WHITE_BRUSH = misc2c.wxSYS_WHITE_BRUSH
886wxSYS_LTGRAY_BRUSH = misc2c.wxSYS_LTGRAY_BRUSH
887wxSYS_GRAY_BRUSH = misc2c.wxSYS_GRAY_BRUSH
888wxSYS_DKGRAY_BRUSH = misc2c.wxSYS_DKGRAY_BRUSH
889wxSYS_BLACK_BRUSH = misc2c.wxSYS_BLACK_BRUSH
890wxSYS_NULL_BRUSH = misc2c.wxSYS_NULL_BRUSH
891wxSYS_HOLLOW_BRUSH = misc2c.wxSYS_HOLLOW_BRUSH
892wxSYS_WHITE_PEN = misc2c.wxSYS_WHITE_PEN
893wxSYS_BLACK_PEN = misc2c.wxSYS_BLACK_PEN
894wxSYS_NULL_PEN = misc2c.wxSYS_NULL_PEN
895wxSYS_OEM_FIXED_FONT = misc2c.wxSYS_OEM_FIXED_FONT
896wxSYS_ANSI_FIXED_FONT = misc2c.wxSYS_ANSI_FIXED_FONT
897wxSYS_ANSI_VAR_FONT = misc2c.wxSYS_ANSI_VAR_FONT
898wxSYS_SYSTEM_FONT = misc2c.wxSYS_SYSTEM_FONT
899wxSYS_DEVICE_DEFAULT_FONT = misc2c.wxSYS_DEVICE_DEFAULT_FONT
900wxSYS_DEFAULT_PALETTE = misc2c.wxSYS_DEFAULT_PALETTE
901wxSYS_SYSTEM_FIXED_FONT = misc2c.wxSYS_SYSTEM_FIXED_FONT
902wxSYS_DEFAULT_GUI_FONT = misc2c.wxSYS_DEFAULT_GUI_FONT
903wxSYS_COLOUR_SCROLLBAR = misc2c.wxSYS_COLOUR_SCROLLBAR
904wxSYS_COLOUR_BACKGROUND = misc2c.wxSYS_COLOUR_BACKGROUND
905wxSYS_COLOUR_ACTIVECAPTION = misc2c.wxSYS_COLOUR_ACTIVECAPTION
906wxSYS_COLOUR_INACTIVECAPTION = misc2c.wxSYS_COLOUR_INACTIVECAPTION
907wxSYS_COLOUR_MENU = misc2c.wxSYS_COLOUR_MENU
908wxSYS_COLOUR_WINDOW = misc2c.wxSYS_COLOUR_WINDOW
909wxSYS_COLOUR_WINDOWFRAME = misc2c.wxSYS_COLOUR_WINDOWFRAME
910wxSYS_COLOUR_MENUTEXT = misc2c.wxSYS_COLOUR_MENUTEXT
911wxSYS_COLOUR_WINDOWTEXT = misc2c.wxSYS_COLOUR_WINDOWTEXT
912wxSYS_COLOUR_CAPTIONTEXT = misc2c.wxSYS_COLOUR_CAPTIONTEXT
913wxSYS_COLOUR_ACTIVEBORDER = misc2c.wxSYS_COLOUR_ACTIVEBORDER
914wxSYS_COLOUR_INACTIVEBORDER = misc2c.wxSYS_COLOUR_INACTIVEBORDER
915wxSYS_COLOUR_APPWORKSPACE = misc2c.wxSYS_COLOUR_APPWORKSPACE
916wxSYS_COLOUR_HIGHLIGHT = misc2c.wxSYS_COLOUR_HIGHLIGHT
917wxSYS_COLOUR_HIGHLIGHTTEXT = misc2c.wxSYS_COLOUR_HIGHLIGHTTEXT
918wxSYS_COLOUR_BTNFACE = misc2c.wxSYS_COLOUR_BTNFACE
919wxSYS_COLOUR_BTNSHADOW = misc2c.wxSYS_COLOUR_BTNSHADOW
920wxSYS_COLOUR_GRAYTEXT = misc2c.wxSYS_COLOUR_GRAYTEXT
921wxSYS_COLOUR_BTNTEXT = misc2c.wxSYS_COLOUR_BTNTEXT
922wxSYS_COLOUR_INACTIVECAPTIONTEXT = misc2c.wxSYS_COLOUR_INACTIVECAPTIONTEXT
923wxSYS_COLOUR_BTNHIGHLIGHT = misc2c.wxSYS_COLOUR_BTNHIGHLIGHT
924wxSYS_COLOUR_3DDKSHADOW = misc2c.wxSYS_COLOUR_3DDKSHADOW
925wxSYS_COLOUR_3DLIGHT = misc2c.wxSYS_COLOUR_3DLIGHT
926wxSYS_COLOUR_INFOTEXT = misc2c.wxSYS_COLOUR_INFOTEXT
927wxSYS_COLOUR_INFOBK = misc2c.wxSYS_COLOUR_INFOBK
928wxSYS_COLOUR_DESKTOP = misc2c.wxSYS_COLOUR_DESKTOP
929wxSYS_COLOUR_3DFACE = misc2c.wxSYS_COLOUR_3DFACE
930wxSYS_COLOUR_3DSHADOW = misc2c.wxSYS_COLOUR_3DSHADOW
931wxSYS_COLOUR_3DHIGHLIGHT = misc2c.wxSYS_COLOUR_3DHIGHLIGHT
932wxSYS_COLOUR_3DHILIGHT = misc2c.wxSYS_COLOUR_3DHILIGHT
933wxSYS_COLOUR_BTNHILIGHT = misc2c.wxSYS_COLOUR_BTNHILIGHT
934wxSYS_MOUSE_BUTTONS = misc2c.wxSYS_MOUSE_BUTTONS
935wxSYS_BORDER_X = misc2c.wxSYS_BORDER_X
936wxSYS_BORDER_Y = misc2c.wxSYS_BORDER_Y
937wxSYS_CURSOR_X = misc2c.wxSYS_CURSOR_X
938wxSYS_CURSOR_Y = misc2c.wxSYS_CURSOR_Y
939wxSYS_DCLICK_X = misc2c.wxSYS_DCLICK_X
940wxSYS_DCLICK_Y = misc2c.wxSYS_DCLICK_Y
941wxSYS_DRAG_X = misc2c.wxSYS_DRAG_X
942wxSYS_DRAG_Y = misc2c.wxSYS_DRAG_Y
943wxSYS_EDGE_X = misc2c.wxSYS_EDGE_X
944wxSYS_EDGE_Y = misc2c.wxSYS_EDGE_Y
945wxSYS_HSCROLL_ARROW_X = misc2c.wxSYS_HSCROLL_ARROW_X
946wxSYS_HSCROLL_ARROW_Y = misc2c.wxSYS_HSCROLL_ARROW_Y
947wxSYS_HTHUMB_X = misc2c.wxSYS_HTHUMB_X
948wxSYS_ICON_X = misc2c.wxSYS_ICON_X
949wxSYS_ICON_Y = misc2c.wxSYS_ICON_Y
950wxSYS_ICONSPACING_X = misc2c.wxSYS_ICONSPACING_X
951wxSYS_ICONSPACING_Y = misc2c.wxSYS_ICONSPACING_Y
952wxSYS_WINDOWMIN_X = misc2c.wxSYS_WINDOWMIN_X
953wxSYS_WINDOWMIN_Y = misc2c.wxSYS_WINDOWMIN_Y
954wxSYS_SCREEN_X = misc2c.wxSYS_SCREEN_X
955wxSYS_SCREEN_Y = misc2c.wxSYS_SCREEN_Y
956wxSYS_FRAMESIZE_X = misc2c.wxSYS_FRAMESIZE_X
957wxSYS_FRAMESIZE_Y = misc2c.wxSYS_FRAMESIZE_Y
958wxSYS_SMALLICON_X = misc2c.wxSYS_SMALLICON_X
959wxSYS_SMALLICON_Y = misc2c.wxSYS_SMALLICON_Y
960wxSYS_HSCROLL_Y = misc2c.wxSYS_HSCROLL_Y
961wxSYS_VSCROLL_X = misc2c.wxSYS_VSCROLL_X
962wxSYS_VSCROLL_ARROW_X = misc2c.wxSYS_VSCROLL_ARROW_X
963wxSYS_VSCROLL_ARROW_Y = misc2c.wxSYS_VSCROLL_ARROW_Y
964wxSYS_VTHUMB_Y = misc2c.wxSYS_VTHUMB_Y
965wxSYS_CAPTION_Y = misc2c.wxSYS_CAPTION_Y
966wxSYS_MENU_Y = misc2c.wxSYS_MENU_Y
967wxSYS_NETWORK_PRESENT = misc2c.wxSYS_NETWORK_PRESENT
968wxSYS_PENWINDOWS_PRESENT = misc2c.wxSYS_PENWINDOWS_PRESENT
969wxSYS_SHOW_SOUNDS = misc2c.wxSYS_SHOW_SOUNDS
970wxSYS_SWAP_BUTTONS = misc2c.wxSYS_SWAP_BUTTONS
f6bcfd97
BP
971wxLOG_FatalError = misc2c.wxLOG_FatalError
972wxLOG_Error = misc2c.wxLOG_Error
973wxLOG_Warning = misc2c.wxLOG_Warning
974wxLOG_Message = misc2c.wxLOG_Message
975wxLOG_Info = misc2c.wxLOG_Info
976wxLOG_Status = misc2c.wxLOG_Status
977wxLOG_Debug = misc2c.wxLOG_Debug
978wxLOG_Trace = misc2c.wxLOG_Trace
979wxLOG_Progress = misc2c.wxLOG_Progress
980wxLOG_User = misc2c.wxLOG_User
1b62f00d 981wxEVT_END_PROCESS = misc2c.wxEVT_END_PROCESS