]>
Commit | Line | Data |
---|---|---|
b3c86150 VS |
1 | ///////////////////////////////////////////////////////////////////////////// |
2 | // Name: wx/dfb/cursor.h | |
3 | // Purpose: wxCursor declaration | |
4 | // Author: Vaclav Slavik | |
5 | // Created: 2006-08-08 | |
b3c86150 VS |
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 | ||
8f884a0d | 13 | #include "wx/gdiobj.h" |
b3c86150 VS |
14 | #include "wx/gdicmn.h" |
15 | ||
b5dbe15d | 16 | class WXDLLIMPEXP_FWD_CORE wxBitmap; |
b3c86150 VS |
17 | |
18 | //----------------------------------------------------------------------------- | |
19 | // wxCursor | |
20 | //----------------------------------------------------------------------------- | |
21 | ||
8f884a0d | 22 | class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject |
b3c86150 VS |
23 | { |
24 | public: | |
25 | wxCursor() {} | |
0ef5b1da FM |
26 | wxCursor(wxStockCursor id) { InitFromStock(id); } |
27 | #if WXWIN_COMPATIBILITY_2_8 | |
28 | wxCursor(int id) { InitFromStock((wxStockCursor)id); } | |
29 | #endif | |
b3c86150 | 30 | wxCursor(const wxString& name, |
0ef5b1da | 31 | wxBitmapType type = wxCURSOR_DEFAULT_TYPE, |
b3c86150 VS |
32 | int hotSpotX = 0, int hotSpotY = 0); |
33 | ||
b3c86150 VS |
34 | // implementation |
35 | wxBitmap GetBitmap() const; | |
36 | ||
37 | protected: | |
0ef5b1da FM |
38 | void InitFromStock(wxStockCursor); |
39 | ||
b3c86150 | 40 | // ref counting code |
8f884a0d VZ |
41 | virtual wxGDIRefData *CreateGDIRefData() const; |
42 | virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; | |
b3c86150 VS |
43 | |
44 | DECLARE_DYNAMIC_CLASS(wxCursor) | |
45 | }; | |
46 | ||
47 | #endif // _WX_DFB_CURSOR_H_ |