]> git.saurik.com Git - wxWidgets.git/blob - include/wx/osx/cursor.h
Change version to 3.0.0.
[wxWidgets.git] / include / wx / osx / cursor.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/osx/cursor.h
3 // Purpose: wxCursor class
4 // Author: Stefan Csomor
5 // Modified by:
6 // Created: 1998-01-01
7 // Copyright: (c) Stefan Csomor
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_CURSOR_H_
12 #define _WX_CURSOR_H_
13
14 #include "wx/bitmap.h"
15
16 // Cursor
17 class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
18 {
19 public:
20 wxCursor();
21
22 wxCursor(const wxImage & image) ;
23 wxCursor(const wxString& name,
24 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
25 int hotSpotX = 0, int hotSpotY = 0);
26
27 wxCursor(wxStockCursor id) { InitFromStock(id); }
28 #if WXWIN_COMPATIBILITY_2_8
29 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
30 #endif
31 virtual ~wxCursor();
32
33 void MacInstall() const ;
34
35 void SetHCURSOR(WXHCURSOR cursor);
36 WXHCURSOR GetHCURSOR() const;
37
38 protected:
39 virtual wxGDIRefData *CreateGDIRefData() const;
40 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
41
42 private:
43 void InitFromStock(wxStockCursor);
44
45 void CreateFromImage(const wxImage & image) ;
46
47 DECLARE_DYNAMIC_CLASS(wxCursor)
48 };
49
50 extern WXDLLIMPEXP_CORE void wxSetCursor(const wxCursor& cursor);
51
52 #endif // _WX_CURSOR_H_