]> git.saurik.com Git - wxWidgets.git/blame - include/wx/cursor.h
Added _GSOCKET_STANDALONE_ symbol
[wxWidgets.git] / include / wx / cursor.h
CommitLineData
34138703
JS
1#ifndef _WX_CURSOR_H_BASE_
2#define _WX_CURSOR_H_BASE_
c801d85f 3
2049ba38 4#if defined(__WXMSW__)
c801d85f 5#include "wx/msw/cursor.h"
2049ba38 6#elif defined(__WXMOTIF__)
34138703 7#include "wx/motif/cursor.h"
2049ba38 8#elif defined(__WXGTK__)
c801d85f 9#include "wx/gtk/cursor.h"
b4e76e0d
RR
10#elif defined(__WXQT__)
11#include "wx/qt/cursor.h"
34138703
JS
12#elif defined(__WXMAC__)
13#include "wx/mac/cursor.h"
1777b9bb
DW
14#elif defined(__WXPM__)
15#include "wx/os2/cursor.h"
34138703
JS
16#elif defined(__WXSTUBS__)
17#include "wx/stubs/cursor.h"
c801d85f
KB
18#endif
19
eebe4016
KB
20#include "wx/utils.h"
21/* This is a small class which can be used by all ports
22 to temporarily suspend the busy cursor. Useful in modal
23 dialogs.
24*/
25class wxBusyCursorSuspender
26{
27public:
28 wxBusyCursorSuspender()
29 {
30 m_wasBusy = wxIsBusy();
31 if(m_wasBusy)
32 wxEndBusyCursor();
33 }
34 ~wxBusyCursorSuspender()
35 {
36 if(m_wasBusy)
37 wxBeginBusyCursor();
38 }
39 private:
40 bool m_wasBusy;
41};
c801d85f 42#endif
34138703 43 // _WX_CURSOR_H_BASE_