]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/misc2.i
wxEVT_USER_FIRST readded
[wxWidgets.git] / wxPython / src / misc2.i
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: misc2.i
3 // Purpose: Definitions of miscelaneous functions and classes that need
4 // to know about wxWindow. (So they can't be in misc.i or an
5 // import loop will happen.)
6 //
7 // Author: Robin Dunn
8 //
9 // Created: 18-June-1999
10 // RCS-ID: $Id$
11 // Copyright: (c) 1998 by Total Control Software
12 // Licence: wxWindows license
13 /////////////////////////////////////////////////////////////////////////////
14
15 %module misc2
16
17 %{
18 #include "helpers.h"
19 #include <wx/resource.h>
20 #include <wx/tooltip.h>
21 #include <wx/caret.h>
22 #include <wx/fontenum.h>
23 #include <wx/tipdlg.h>
24 #include <wx/process.h>
25 #include <wx/joystick.h>
26 %}
27
28 //----------------------------------------------------------------------
29
30 %include typemaps.i
31 %include my_typemaps.i
32
33 // Import some definitions of other classes, etc.
34 %import _defs.i
35 %import windows.i
36 %import misc.i
37 %import gdi.i
38 %import events.i
39 %import streams.i
40
41 %{
42 static wxString wxPyEmptyStr("");
43 %}
44
45 //---------------------------------------------------------------------------
46 // Dialog Functions
47
48 wxString wxFileSelector(char* message,
49 char* default_path = NULL,
50 char* default_filename = NULL,
51 char* default_extension = NULL,
52 char* wildcard = "*.*",
53 int flags = 0,
54 wxWindow *parent = NULL,
55 int x = -1, int y = -1);
56
57 wxString wxGetTextFromUser(const wxString& message,
58 const wxString& caption = wxPyEmptyStr,
59 const wxString& default_value = wxPyEmptyStr,
60 wxWindow *parent = NULL,
61 int x = -1, int y = -1,
62 bool centre = TRUE);
63
64
65 // TODO: Need to custom wrap this one...
66 // int wxGetMultipleChoice(char* message, char* caption,
67 // int LCOUNT, char** choices,
68 // int nsel, int *selection,
69 // wxWindow *parent = NULL, int x = -1, int y = -1,
70 // bool centre = TRUE, int width=150, int height=200);
71
72
73 wxString wxGetSingleChoice(const wxString& message, const wxString& caption,
74 int LCOUNT, wxString* choices,
75 wxWindow *parent = NULL,
76 int x = -1, int y = -1,
77 bool centre = TRUE,
78 int width=150, int height=200);
79
80 int wxGetSingleChoiceIndex(const wxString& message, const wxString& caption,
81 int LCOUNT, wxString* choices,
82 wxWindow *parent = NULL,
83 int x = -1, int y = -1,
84 bool centre = TRUE,
85 int width=150, int height=200);
86
87
88 int wxMessageBox(const wxString& message,
89 const wxString& caption = wxPyEmptyStr,
90 int style = wxOK | wxCENTRE,
91 wxWindow *parent = NULL,
92 int x = -1, int y = -1);
93
94 long wxGetNumberFromUser(const wxString& message,
95 const wxString& prompt,
96 const wxString& caption,
97 long value,
98 long min = 0, long max = 100,
99 wxWindow *parent = NULL,
100 const wxPoint& pos = wxDefaultPosition);
101
102 //---------------------------------------------------------------------------
103 // GDI Functions
104
105 bool wxColourDisplay();
106
107 int wxDisplayDepth();
108 int wxGetDisplayDepth();
109
110 void wxDisplaySize(int* OUTPUT, int* OUTPUT);
111 wxSize wxGetDisplaySize();
112 void wxDisplaySizeMM(int* OUTPUT, int* OUTPUT);
113 wxSize wxGetDisplaySizeMM();
114
115 void wxSetCursor(wxCursor& cursor);
116
117 //----------------------------------------------------------------------
118 // Miscellaneous functions
119
120 wxWindow * wxFindWindowByLabel(const wxString& label, wxWindow *parent=NULL);
121 wxWindow * wxFindWindowByName(const wxString& name, wxWindow *parent=NULL);
122
123 void wxBeginBusyCursor(wxCursor *cursor = wxHOURGLASS_CURSOR);
124 wxWindow * wxGetActiveWindow();
125
126
127 //---------------------------------------------------------------------------
128 // Resource System
129
130 bool wxResourceAddIdentifier(char *name, int value);
131 void wxResourceClear(void);
132 wxBitmap wxResourceCreateBitmap(char *resource);
133 wxIcon wxResourceCreateIcon(char *resource);
134 wxMenuBar * wxResourceCreateMenuBar(char *resource);
135 int wxResourceGetIdentifier(char *name);
136 bool wxResourceParseData(char *resource, wxResourceTable *table = NULL);
137 bool wxResourceParseFile(char *filename, wxResourceTable *table = NULL);
138 bool wxResourceParseString(char *resource, wxResourceTable *table = NULL);
139
140 //---------------------------------------------------------------------------
141 // System Settings
142
143 enum {
144 wxSYS_WHITE_BRUSH,
145 wxSYS_LTGRAY_BRUSH,
146 wxSYS_GRAY_BRUSH,
147 wxSYS_DKGRAY_BRUSH,
148 wxSYS_BLACK_BRUSH,
149 wxSYS_NULL_BRUSH,
150 wxSYS_HOLLOW_BRUSH,
151 wxSYS_WHITE_PEN,
152 wxSYS_BLACK_PEN,
153 wxSYS_NULL_PEN,
154 wxSYS_OEM_FIXED_FONT,
155 wxSYS_ANSI_FIXED_FONT,
156 wxSYS_ANSI_VAR_FONT,
157 wxSYS_SYSTEM_FONT,
158 wxSYS_DEVICE_DEFAULT_FONT,
159 wxSYS_DEFAULT_PALETTE,
160 wxSYS_SYSTEM_FIXED_FONT,
161 wxSYS_DEFAULT_GUI_FONT,
162
163 wxSYS_COLOUR_SCROLLBAR,
164 wxSYS_COLOUR_BACKGROUND,
165 wxSYS_COLOUR_ACTIVECAPTION,
166 wxSYS_COLOUR_INACTIVECAPTION,
167 wxSYS_COLOUR_MENU,
168 wxSYS_COLOUR_WINDOW,
169 wxSYS_COLOUR_WINDOWFRAME,
170 wxSYS_COLOUR_MENUTEXT,
171 wxSYS_COLOUR_WINDOWTEXT,
172 wxSYS_COLOUR_CAPTIONTEXT,
173 wxSYS_COLOUR_ACTIVEBORDER,
174 wxSYS_COLOUR_INACTIVEBORDER,
175 wxSYS_COLOUR_APPWORKSPACE,
176 wxSYS_COLOUR_HIGHLIGHT,
177 wxSYS_COLOUR_HIGHLIGHTTEXT,
178 wxSYS_COLOUR_BTNFACE,
179 wxSYS_COLOUR_BTNSHADOW,
180 wxSYS_COLOUR_GRAYTEXT,
181 wxSYS_COLOUR_BTNTEXT,
182 wxSYS_COLOUR_INACTIVECAPTIONTEXT,
183 wxSYS_COLOUR_BTNHIGHLIGHT,
184
185 wxSYS_COLOUR_3DDKSHADOW,
186 wxSYS_COLOUR_3DLIGHT,
187 wxSYS_COLOUR_INFOTEXT,
188 wxSYS_COLOUR_INFOBK,
189
190 wxSYS_COLOUR_DESKTOP,
191 wxSYS_COLOUR_3DFACE,
192 wxSYS_COLOUR_3DSHADOW,
193 wxSYS_COLOUR_3DHIGHLIGHT,
194 wxSYS_COLOUR_3DHILIGHT,
195 wxSYS_COLOUR_BTNHILIGHT,
196
197 wxSYS_MOUSE_BUTTONS,
198 wxSYS_BORDER_X,
199 wxSYS_BORDER_Y,
200 wxSYS_CURSOR_X,
201 wxSYS_CURSOR_Y,
202 wxSYS_DCLICK_X,
203 wxSYS_DCLICK_Y,
204 wxSYS_DRAG_X,
205 wxSYS_DRAG_Y,
206 wxSYS_EDGE_X,
207 wxSYS_EDGE_Y,
208 wxSYS_HSCROLL_ARROW_X,
209 wxSYS_HSCROLL_ARROW_Y,
210 wxSYS_HTHUMB_X,
211 wxSYS_ICON_X,
212 wxSYS_ICON_Y,
213 wxSYS_ICONSPACING_X,
214 wxSYS_ICONSPACING_Y,
215 wxSYS_WINDOWMIN_X,
216 wxSYS_WINDOWMIN_Y,
217 wxSYS_SCREEN_X,
218 wxSYS_SCREEN_Y,
219 wxSYS_FRAMESIZE_X,
220 wxSYS_FRAMESIZE_Y,
221 wxSYS_SMALLICON_X,
222 wxSYS_SMALLICON_Y,
223 wxSYS_HSCROLL_Y,
224 wxSYS_VSCROLL_X,
225 wxSYS_VSCROLL_ARROW_X,
226 wxSYS_VSCROLL_ARROW_Y,
227 wxSYS_VTHUMB_Y,
228 wxSYS_CAPTION_Y,
229 wxSYS_MENU_Y,
230 wxSYS_NETWORK_PRESENT,
231 wxSYS_PENWINDOWS_PRESENT,
232 wxSYS_SHOW_SOUNDS,
233 wxSYS_SWAP_BUTTONS,
234 };
235
236
237
238 %inline %{
239
240 wxColour wxSystemSettings_GetSystemColour(int index) {
241 return wxSystemSettings::GetSystemColour(index);
242 }
243
244 wxFont wxSystemSettings_GetSystemFont(int index) {
245 return wxSystemSettings::GetSystemFont(index);
246 }
247
248 int wxSystemSettings_GetSystemMetric(int index) {
249 return wxSystemSettings::GetSystemMetric(index);
250 }
251 %}
252
253 //---------------------------------------------------------------------------
254 // wxToolTip
255
256 class wxToolTip {
257 public:
258 wxToolTip(const wxString &tip);
259
260 void SetTip(const wxString& tip);
261 wxString GetTip();
262 // *** Not in the "public" interface void SetWindow(wxWindow *win);
263 wxWindow *GetWindow();
264 };
265
266
267 %inline %{
268 void wxToolTip_Enable(bool flag) {
269 wxToolTip::Enable(flag);
270 }
271
272 void wxToolTip_SetDelay(long milliseconds) {
273 wxToolTip::SetDelay(milliseconds);
274 }
275 %}
276
277 //----------------------------------------------------------------------
278
279 class wxCaret {
280 public:
281 wxCaret(wxWindow* window, const wxSize& size);
282 ~wxCaret();
283
284 bool IsOk();
285 bool IsVisible();
286 %name(GetPositionTuple)void GetPosition(int *OUTPUT, int *OUTPUT);
287 wxPoint GetPosition();
288 %name(GetSizeTuple)void GetSize(int *OUTPUT, int *OUTPUT);
289 wxSize GetSize();
290 wxWindow *GetWindow();
291 %name(MoveXY)void Move(int x, int y);
292 void Move(const wxPoint& pt);
293 %name(SetSizeWH) void SetSize(int width, int height);
294 void SetSize(const wxSize& size);
295 void Show(int show = TRUE);
296 void Hide();
297 };
298
299 %inline %{
300 int wxCaret_GetBlinkTime() {
301 return wxCaret::GetBlinkTime();
302 }
303
304 void wxCaret_SetBlinkTime(int milliseconds) {
305 wxCaret::SetBlinkTime(milliseconds);
306 }
307 %}
308
309 //----------------------------------------------------------------------
310
311 %{
312 class wxPyFontEnumerator : public wxFontEnumerator {
313 public:
314 wxPyFontEnumerator() {}
315 ~wxPyFontEnumerator() {}
316
317 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
318 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
319
320 PYPRIVATE;
321 };
322
323 IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
324 IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
325
326 %}
327
328 %name(wxFontEnumerator) class wxPyFontEnumerator {
329 public:
330 wxPyFontEnumerator();
331 ~wxPyFontEnumerator();
332 void _setSelf(PyObject* self, PyObject* _class);
333 %pragma(python) addtomethod = "__init__:self._setSelf(self, wxFontEnumerator)"
334
335 bool EnumerateFacenames(
336 wxFontEncoding encoding = wxFONTENCODING_SYSTEM, // all
337 bool fixedWidthOnly = FALSE);
338 bool EnumerateEncodings(const char* facename = "");
339
340 //wxArrayString* GetEncodings();
341 //wxArrayString* GetFacenames();
342 %addmethods {
343 PyObject* GetEncodings() {
344 wxArrayString* arr = self->GetEncodings();
345 PyObject* list = PyList_New(0);
346 for (size_t x=0; x<arr->GetCount(); x++)
347 PyList_Append(list, PyString_FromString((*arr)[x]));
348 return list;
349 }
350
351 PyObject* GetFacenames() {
352 wxArrayString* arr = self->GetFacenames();
353 PyObject* list = PyList_New(0);
354 for (size_t x=0; x<arr->GetCount(); x++)
355 PyList_Append(list, PyString_FromString((*arr)[x]));
356 return list;
357 }
358 }
359 };
360
361 //----------------------------------------------------------------------
362
363 class wxBusyCursor {
364 public:
365 wxBusyCursor(wxCursor* cursor = wxHOURGLASS_CURSOR);
366 ~wxBusyCursor();
367 };
368
369 //----------------------------------------------------------------------
370
371 class wxWindowDisabler {
372 public:
373 wxWindowDisabler(wxWindow *winToSkip = NULL);
374 ~wxWindowDisabler();
375 };
376
377 //----------------------------------------------------------------------
378
379 void wxPostEvent(wxEvtHandler *dest, wxEvent& event);
380 void wxWakeUpIdle();
381
382 bool wxSafeYield(wxWindow* win=NULL);
383
384 //----------------------------------------------------------------------
385
386
387 class wxTipProvider
388 {
389 public:
390 // wxTipProvider(size_t currentTip); **** Abstract base class
391 ~wxTipProvider();
392
393 virtual wxString GetTip() = 0;
394 size_t GetCurrentTip();
395
396 };
397
398
399 // The C++ version of wxPyTipProvider
400 %{
401 class wxPyTipProvider : public wxTipProvider {
402 public:
403 wxPyTipProvider(size_t currentTip)
404 : wxTipProvider(currentTip) {}
405
406 DEC_PYCALLBACK_STRING__pure(GetTip);
407
408 PYPRIVATE;
409 };
410
411 IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
412
413 %}
414
415
416 // Now let SWIG know about it
417 class wxPyTipProvider : public wxTipProvider {
418 public:
419 wxPyTipProvider(size_t currentTip);
420 };
421
422
423
424 bool wxShowTip(wxWindow *parent, wxTipProvider *tipProvider, bool showAtStartup = TRUE);
425 %new wxTipProvider * wxCreateFileTipProvider(const wxString& filename, size_t currentTip);
426
427
428 //----------------------------------------------------------------------
429
430 %{
431 #include <wx/generic/dragimgg.h>
432 static wxPoint wxPyNullPoint;
433 %}
434
435 %name (wxDragImage) class wxGenericDragImage
436 {
437 public:
438
439 wxGenericDragImage(const wxBitmap& image,
440 const wxCursor& cursor = wxNullCursor,
441 const wxPoint& hotspot = wxPyNullPoint);
442 ~wxGenericDragImage();
443
444 bool BeginDrag(const wxPoint& hotspot, wxWindow* window,
445 bool fullScreen = FALSE, wxRect* rect = NULL);
446
447 %name(BeginDrag2) bool BeginDrag(const wxPoint& hotspot, wxWindow* window,
448 wxWindow* fullScreenRect);
449
450 bool EndDrag();
451 bool Move(const wxPoint& pt);
452 bool Show();
453 bool Hide();
454
455 wxRect GetImageRect(const wxPoint& pos) const;
456 bool RedrawImage(const wxPoint& oldPos, const wxPoint& newPos,
457 bool eraseOld, bool drawNew);
458 };
459
460
461 // Alternate Constructors
462 %new wxGenericDragImage* wxDragIcon(const wxIcon& image,
463 const wxCursor& cursor = wxNullCursor,
464 const wxPoint& hotspot = wxPyNullPoint);
465
466 %new wxGenericDragImage* wxDragString(const wxString& str,
467 const wxCursor& cursor = wxNullCursor,
468 const wxPoint& hotspot = wxPyNullPoint);
469
470 %new wxGenericDragImage* wxDragTreeItem(const wxTreeCtrl& treeCtrl, wxTreeItemId& id);
471
472 %new wxGenericDragImage* wxDragListItem(const wxListCtrl& listCtrl, long id);
473
474
475 %{
476
477 wxGenericDragImage* wxDragIcon(const wxIcon& image,
478 const wxCursor& cursor,
479 const wxPoint& hotspot) {
480 return new wxGenericDragImage(image, cursor, hotspot);
481 }
482
483 wxGenericDragImage* wxDragString(const wxString& str,
484 const wxCursor& cursor,
485 const wxPoint& hotspot) {
486 return new wxGenericDragImage(str, cursor, hotspot);
487 }
488
489 wxGenericDragImage* wxDragTreeItem(const wxTreeCtrl& treeCtrl, wxTreeItemId& id) {
490 return new wxGenericDragImage(treeCtrl, id);
491 }
492
493 wxGenericDragImage* wxDragListItem(const wxListCtrl& listCtrl, long id) {
494 return new wxGenericDragImage(listCtrl, id);
495 }
496
497 %}
498
499
500
501 //----------------------------------------------------------------------
502
503 class wxPyTimer {
504 public:
505 wxPyTimer(PyObject* notify);
506 ~wxPyTimer();
507 int GetInterval();
508 bool IsOneShot();
509 bool IsRunning();
510 void SetOwner(wxEvtHandler *owner, int id = -1);
511 void Start(int milliseconds=-1, int oneShot=FALSE);
512 void Stop();
513 };
514
515 //----------------------------------------------------------------------
516 //----------------------------------------------------------------------
517
518
519 enum
520 {
521 wxLOG_FatalError, // program can't continue, abort immediately
522 wxLOG_Error, // a serious error, user must be informed about it
523 wxLOG_Warning, // user is normally informed about it but may be ignored
524 wxLOG_Message, // normal message (i.e. normal output of a non GUI app)
525 wxLOG_Info, // informational message (a.k.a. 'Verbose')
526 wxLOG_Status, // informational: might go to the status line of GUI app
527 wxLOG_Debug, // never shown to the user, disabled in release mode
528 wxLOG_Trace, // trace messages are also only enabled in debug mode
529 wxLOG_Progress, // used for progress indicator (not yet)
530 wxLOG_User = 100 // user defined levels start here
531 };
532
533
534 class wxLog
535 {
536 public:
537 wxLog();
538
539 static bool IsEnabled();
540 static bool EnableLogging(bool doIt = TRUE);
541 static void OnLog(wxLogLevel level, const char *szString, int t=0);
542
543 virtual void Flush();
544 bool HasPendingMessages() const;
545
546 static void FlushActive();
547 static wxLog *GetActiveTarget();
548 static wxLog *SetActiveTarget(wxLog *pLogger);
549
550 static void Suspend();
551 static void Resume();
552
553 void SetVerbose(bool bVerbose = TRUE);
554
555 static void DontCreateOnDemand();
556 static void SetTraceMask(wxTraceMask ulMask);
557 static void AddTraceMask(const wxString& str);
558 static void RemoveTraceMask(const wxString& str);
559
560 bool GetVerbose() const { return m_bVerbose; }
561
562 static wxTraceMask GetTraceMask();
563 static bool IsAllowedTraceMask(const char *mask);
564
565 };
566
567
568 class wxLogStderr : public wxLog
569 {
570 public:
571 wxLogStderr(/* TODO: FILE *fp = (FILE *) NULL*/);
572 };
573
574
575 class wxLogTextCtrl : public wxLog
576 {
577 public:
578 wxLogTextCtrl(wxTextCtrl *pTextCtrl);
579 };
580
581
582 class wxLogGui : public wxLog
583 {
584 public:
585 wxLogGui();
586 };
587
588 class wxLogWindow : public wxLog
589 {
590 public:
591 wxLogWindow(wxFrame *pParent, // the parent frame (can be NULL)
592 const char *szTitle, // the title of the frame
593 bool bShow = TRUE, // show window immediately?
594 bool bPassToOld = TRUE); // pass log messages to the old target?
595
596 void Show(bool bShow = TRUE);
597 wxFrame *GetFrame() const;
598 wxLog *GetOldLog() const;
599 bool IsPassingMessages() const;
600 void PassMessages(bool bDoPass) { m_bPassMessages = bDoPass; }
601 };
602
603
604 class wxLogNull
605 {
606 public:
607 wxLogNull();
608 ~wxLogNull();
609 };
610
611
612 unsigned long wxSysErrorCode();
613 const char* wxSysErrorMsg(unsigned long nErrCode = 0);
614 void wxLogFatalError(const char *szFormat);
615 void wxLogError(const char *szFormat);
616 void wxLogWarning(const char *szFormat);
617 void wxLogMessage(const char *szFormat);
618 void wxLogInfo(const char *szFormat);
619 void wxLogVerbose(const char *szFormat);
620 void wxLogStatus(const char *szFormat);
621 %name(wxLogStatusFrame)void wxLogStatus(wxFrame *pFrame, const char *szFormat);
622 void wxLogSysError(const char *szFormat);
623
624
625
626 //----------------------------------------------------------------------
627
628 class wxProcessEvent : public wxEvent {
629 public:
630 wxProcessEvent(int id = 0, int pid = 0, int exitcode = 0);
631 int GetPid();
632 int GetExitCode();
633 int m_pid, m_exitcode;
634 };
635
636
637
638
639 %{ // C++ version of wxProcess derived class
640
641 class wxPyProcess : public wxProcess {
642 public:
643 wxPyProcess(wxEvtHandler *parent = NULL, int id = -1)
644 : wxProcess(parent, id)
645 {}
646
647 DEC_PYCALLBACK_VOID_INTINT(OnTerminate);
648
649 PYPRIVATE;
650 };
651
652 IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
653 %}
654
655
656 %name(wxProcess)class wxPyProcess : public wxEvtHandler {
657 public:
658 wxPyProcess(wxEvtHandler *parent = NULL, int id = -1);
659 %addmethods { void Destroy() { delete self; } }
660
661 void _setSelf(PyObject* self, PyObject* _class);
662 %pragma(python) addtomethod = "__init__:self._setSelf(self, wxProcess)"
663
664 void base_OnTerminate(int pid, int status);
665
666 void Redirect();
667 bool IsRedirected();
668 void Detach();
669
670 wxInputStream *GetInputStream();
671 wxInputStream *GetErrorStream();
672 wxOutputStream *GetOutputStream();
673
674 void CloseOutput();
675 };
676
677
678
679 long wxExecute(const wxString& command,
680 int sync = FALSE,
681 wxPyProcess *process = NULL);
682
683 //----------------------------------------------------------------------
684
685 #ifdef __WXMSW__
686 class wxJoystick {
687 public:
688 wxJoystick(int joystick = wxJOYSTICK1);
689 wxPoint GetPosition();
690 int GetZPosition();
691 int GetButtonState();
692 int GetPOVPosition();
693 int GetPOVCTSPosition();
694 int GetRudderPosition();
695 int GetUPosition();
696 int GetVPosition();
697 int GetMovementThreshold();
698 void SetMovementThreshold(int threshold) ;
699
700 bool IsOk(void);
701 int GetNumberJoysticks();
702 int GetManufacturerId();
703 int GetProductId();
704 wxString GetProductName();
705 int GetXMin();
706 int GetYMin();
707 int GetZMin();
708 int GetXMax();
709 int GetYMax();
710 int GetZMax();
711 int GetNumberButtons();
712 int GetNumberAxes();
713 int GetMaxButtons();
714 int GetMaxAxes();
715 int GetPollingMin();
716 int GetPollingMax();
717 int GetRudderMin();
718 int GetRudderMax();
719 int GetUMin();
720 int GetUMax();
721 int GetVMin();
722 int GetVMax();
723
724 bool HasRudder();
725 bool HasZ();
726 bool HasU();
727 bool HasV();
728 bool HasPOV();
729 bool HasPOV4Dir();
730 bool HasPOVCTS();
731
732 bool SetCapture(wxWindow* win, int pollingFreq = 0);
733 bool ReleaseCapture();
734 };
735 #endif
736
737 //----------------------------------------------------------------------
738 //----------------------------------------------------------------------
739