]> git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/cursor.h
Destroy the wxDialog::ShowWindowModalThenDo() functor a.s.a.p.
[wxWidgets.git] / include / wx / x11 / cursor.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/cursor.h
3 // Purpose: wxCursor class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // Copyright: (c) Julian Smart
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_CURSOR_H_
12 #define _WX_CURSOR_H_
13
14 #include "wx/gdiobj.h"
15 #include "wx/gdicmn.h"
16 #include "wx/colour.h"
17
18 class WXDLLIMPEXP_FWD_CORE wxImage;
19
20 //-----------------------------------------------------------------------------
21 // wxCursor
22 //-----------------------------------------------------------------------------
23
24 class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
25 {
26 public:
27 wxCursor();
28 wxCursor(wxStockCursor id) { InitFromStock(id); }
29 #if WXWIN_COMPATIBILITY_2_8
30 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
31 #endif
32 #if wxUSE_IMAGE
33 wxCursor( const wxImage & image );
34 #endif
35
36 wxCursor(const wxString& name,
37 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
38 int hotSpotX = 0, int hotSpotY = 0);
39 virtual ~wxCursor();
40
41 // implementation
42
43 WXCursor GetCursor() const;
44
45 protected:
46 void InitFromStock(wxStockCursor);
47
48 virtual wxGDIRefData *CreateGDIRefData() const;
49 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
50
51 private:
52 DECLARE_DYNAMIC_CLASS(wxCursor)
53 };
54
55 #endif // _WX_CURSOR_H_