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