]> git.saurik.com Git - wxWidgets.git/blob - include/wx/dfb/cursor.h
Add wxDEPRECATED_MSG() and use it in a couple of places.
[wxWidgets.git] / include / wx / dfb / cursor.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/cursor.h
3 // Purpose: wxCursor declaration
4 // Author: Vaclav Slavik
5 // Created: 2006-08-08
6 // Copyright: (c) 2006 REA Elektronik GmbH
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_DFB_CURSOR_H_
11 #define _WX_DFB_CURSOR_H_
12
13 #include "wx/gdiobj.h"
14 #include "wx/gdicmn.h"
15
16 class WXDLLIMPEXP_FWD_CORE wxBitmap;
17
18 //-----------------------------------------------------------------------------
19 // wxCursor
20 //-----------------------------------------------------------------------------
21
22 class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
23 {
24 public:
25 wxCursor() {}
26 wxCursor(wxStockCursor id) { InitFromStock(id); }
27 #if WXWIN_COMPATIBILITY_2_8
28 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
29 #endif
30 wxCursor(const wxString& name,
31 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
32 int hotSpotX = 0, int hotSpotY = 0);
33
34 // implementation
35 wxBitmap GetBitmap() const;
36
37 protected:
38 void InitFromStock(wxStockCursor);
39
40 // ref counting code
41 virtual wxGDIRefData *CreateGDIRefData() const;
42 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
43
44 DECLARE_DYNAMIC_CLASS(wxCursor)
45 };
46
47 #endif // _WX_DFB_CURSOR_H_