]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/misc2.i
More cleanup. Regenerated wxGTK code.
[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 40
b68dc582
RD
41%{
42 static wxString wxPyEmptyStr("");
43%}
44
06c0fba4
RD
45//---------------------------------------------------------------------------
46// Dialog Functions
47
48wxString 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
57wxString 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,
eec92d76 67// int LCOUNT, char** choices,
06c0fba4
RD
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
73wxString wxGetSingleChoice(const wxString& message, const wxString& caption,
eec92d76 74 int LCOUNT, wxString* choices,
06c0fba4
RD
75 wxWindow *parent = NULL,
76 int x = -1, int y = -1,
77 bool centre = TRUE,
78 int width=150, int height=200);
79
80int wxGetSingleChoiceIndex(const wxString& message, const wxString& caption,
eec92d76 81 int LCOUNT, wxString* choices,
06c0fba4
RD
82 wxWindow *parent = NULL,
83 int x = -1, int y = -1,
84 bool centre = TRUE,
85 int width=150, int height=200);
86
87
88int 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
94long 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,
b68dc582 100 const wxPoint& pos = wxDefaultPosition);
06c0fba4
RD
101
102//---------------------------------------------------------------------------
103// GDI Functions
104
105bool wxColourDisplay();
1e7ecb7b 106
06c0fba4 107int wxDisplayDepth();
1e7ecb7b
RD
108int wxGetDisplayDepth();
109
110void wxDisplaySize(int* OUTPUT, int* OUTPUT);
111wxSize wxGetDisplaySize();
112void wxDisplaySizeMM(int* OUTPUT, int* OUTPUT);
113wxSize wxGetDisplaySizeMM();
114
06c0fba4 115void wxSetCursor(wxCursor& cursor);
bb0054cd
RD
116
117//----------------------------------------------------------------------
06c0fba4 118// Miscellaneous functions
bb0054cd
RD
119
120wxWindow * wxFindWindowByLabel(const wxString& label, wxWindow *parent=NULL);
121wxWindow * wxFindWindowByName(const wxString& name, wxWindow *parent=NULL);
122
06c0fba4
RD
123void wxBeginBusyCursor(wxCursor *cursor = wxHOURGLASS_CURSOR);
124wxWindow * wxGetActiveWindow();
125
126
127//---------------------------------------------------------------------------
128// Resource System
129
130bool wxResourceAddIdentifier(char *name, int value);
131void wxResourceClear(void);
132wxBitmap wxResourceCreateBitmap(char *resource);
133wxIcon wxResourceCreateIcon(char *resource);
134wxMenuBar * wxResourceCreateMenuBar(char *resource);
135int wxResourceGetIdentifier(char *name);
136bool wxResourceParseData(char *resource, wxResourceTable *table = NULL);
137bool wxResourceParseFile(char *filename, wxResourceTable *table = NULL);
138bool wxResourceParseString(char *resource, wxResourceTable *table = NULL);
bb0054cd 139
06c0fba4
RD
140//---------------------------------------------------------------------------
141// System Settings
142
143enum {
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%}
bb0054cd
RD
252
253//---------------------------------------------------------------------------
254// wxToolTip
255
256class wxToolTip {
257public:
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//----------------------------------------------------------------------
f0261a72
RD
278
279class wxCaret {
280public:
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);
a1df7a95
RD
293 %name(SetSizeWH) void SetSize(int width, int height);
294 void SetSize(const wxSize& size);
f0261a72
RD
295 void Show(int show = TRUE);
296 void Hide();
f0261a72
RD
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
bb0054cd 309//----------------------------------------------------------------------
f0261a72
RD
310
311%{
312class wxPyFontEnumerator : public wxFontEnumerator {
313public:
314 wxPyFontEnumerator() {}
315 ~wxPyFontEnumerator() {}
316
b1462dfa 317 DEC_PYCALLBACK_BOOL_STRING(OnFacename);
f0261a72
RD
318 DEC_PYCALLBACK_BOOL_STRINGSTRING(OnFontEncoding);
319
320 PYPRIVATE;
321};
322
b1462dfa 323IMP_PYCALLBACK_BOOL_STRING(wxPyFontEnumerator, wxFontEnumerator, OnFacename);
f0261a72
RD
324IMP_PYCALLBACK_BOOL_STRINGSTRING(wxPyFontEnumerator, wxFontEnumerator, OnFontEncoding);
325
326%}
327
328%name(wxFontEnumerator) class wxPyFontEnumerator {
329public:
b1462dfa
RD
330 wxPyFontEnumerator();
331 ~wxPyFontEnumerator();
f6bcfd97
BP
332 void _setSelf(PyObject* self, PyObject* _class);
333 %pragma(python) addtomethod = "__init__:self._setSelf(self, wxFontEnumerator)"
f0261a72 334
b1462dfa
RD
335 bool EnumerateFacenames(
336 wxFontEncoding encoding = wxFONTENCODING_SYSTEM, // all
337 bool fixedWidthOnly = FALSE);
338 bool EnumerateEncodings(const char* facename = "");
65dd82cb
RD
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 }
f0261a72 359};
2abc0a0f
RD
360
361//----------------------------------------------------------------------
362
363class wxBusyCursor {
364public:
365 wxBusyCursor(wxCursor* cursor = wxHOURGLASS_CURSOR);
366 ~wxBusyCursor();
367};
368
b1462dfa 369//----------------------------------------------------------------------
2abc0a0f 370
c368d904
RD
371class wxWindowDisabler {
372public:
373 wxWindowDisabler(wxWindow *winToSkip = NULL);
374 ~wxWindowDisabler();
375};
376
377//----------------------------------------------------------------------
378
b1462dfa 379void wxPostEvent(wxEvtHandler *dest, wxEvent& event);
694759cf 380void wxWakeUpIdle();
2abc0a0f 381
c368d904
RD
382bool wxSafeYield(wxWindow* win=NULL);
383
2abc0a0f 384//----------------------------------------------------------------------
f6bcfd97
BP
385
386
387class wxTipProvider
388{
389public:
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%{
401class wxPyTipProvider : public wxTipProvider {
402public:
403 wxPyTipProvider(size_t currentTip)
404 : wxTipProvider(currentTip) {}
405
406 DEC_PYCALLBACK_STRING__pure(GetTip);
407
408 PYPRIVATE;
409};
410
411IMP_PYCALLBACK_STRING__pure( wxPyTipProvider, wxTipProvider, GetTip);
412
413%}
414
415
416// Now let SWIG know about it
417class wxPyTipProvider : public wxTipProvider {
418public:
419 wxPyTipProvider(size_t currentTip);
420};
421
422
423
424bool 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>
432static wxPoint wxPyNullPoint;
433%}
434
435%name (wxDragImage) class wxGenericDragImage
436{
437public:
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
477wxGenericDragImage* wxDragIcon(const wxIcon& image,
478 const wxCursor& cursor,
479 const wxPoint& hotspot) {
480 return new wxGenericDragImage(image, cursor, hotspot);
481}
482
483wxGenericDragImage* wxDragString(const wxString& str,
484 const wxCursor& cursor,
485 const wxPoint& hotspot) {
486 return new wxGenericDragImage(str, cursor, hotspot);
487}
488
489wxGenericDragImage* wxDragTreeItem(const wxTreeCtrl& treeCtrl, wxTreeItemId& id) {
490 return new wxGenericDragImage(treeCtrl, id);
491}
492
493wxGenericDragImage* wxDragListItem(const wxListCtrl& listCtrl, long id) {
494 return new wxGenericDragImage(listCtrl, id);
495}
496
497%}
498
499
500
501//----------------------------------------------------------------------
502
503class wxPyTimer {
504public:
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
519enum
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
534class wxLog
535{
536public:
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
568class wxLogStderr : public wxLog
569{
570public:
571 wxLogStderr(/* TODO: FILE *fp = (FILE *) NULL*/);
572};
573
574
575class wxLogTextCtrl : public wxLog
576{
577public:
578 wxLogTextCtrl(wxTextCtrl *pTextCtrl);
579};
580
581
582class wxLogGui : public wxLog
583{
584public:
585 wxLogGui();
586};
587
588class wxLogWindow : public wxLog
589{
590public:
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
604class wxLogNull
605{
606public:
607 wxLogNull();
608 ~wxLogNull();
609};
610
611
612unsigned long wxSysErrorCode();
613const char* wxSysErrorMsg(unsigned long nErrCode = 0);
614void wxLogFatalError(const char *szFormat);
615void wxLogError(const char *szFormat);
616void wxLogWarning(const char *szFormat);
617void wxLogMessage(const char *szFormat);
618void wxLogInfo(const char *szFormat);
619void wxLogVerbose(const char *szFormat);
620void wxLogStatus(const char *szFormat);
621%name(wxLogStatusFrame)void wxLogStatus(wxFrame *pFrame, const char *szFormat);
622void wxLogSysError(const char *szFormat);
623
624
c368d904
RD
625
626//----------------------------------------------------------------------
627
628class wxProcessEvent : public wxEvent {
629public:
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
641class wxPyProcess : public wxProcess {
642public:
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
652IMP_PYCALLBACK_VOID_INTINT( wxPyProcess, wxProcess, OnTerminate);
653%}
654
655
656%name(wxProcess)class wxPyProcess : public wxEvtHandler {
657public:
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
679long wxExecute(const wxString& command,
680 int sync = FALSE,
681 wxPyProcess *process = NULL);
682
185d7c3e
RD
683//----------------------------------------------------------------------
684
2cd2fac8 685#ifdef __WXMSW__
185d7c3e
RD
686class wxJoystick {
687public:
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};
2cd2fac8 735#endif
185d7c3e 736
f0261a72
RD
737//----------------------------------------------------------------------
738//----------------------------------------------------------------------
739