1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/cursor.h
3 // Purpose: wxCursor declaration
4 // Author: Vaclav Slavik
7 // Copyright: (c) 2006 REA Elektronik GmbH
8 // Licence: wxWindows licence
9 /////////////////////////////////////////////////////////////////////////////
11 #ifndef _WX_DFB_CURSOR_H_
12 #define _WX_DFB_CURSOR_H_
14 #include "wx/gdiobj.h"
15 #include "wx/gdicmn.h"
17 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIObject
27 wxCursor(wxStockCursor id
) { InitFromStock(id
); }
28 #if WXWIN_COMPATIBILITY_2_8
29 wxCursor(int id
) { InitFromStock((wxStockCursor
)id
); }
31 wxCursor(const wxString
& name
,
32 wxBitmapType type
= wxCURSOR_DEFAULT_TYPE
,
33 int hotSpotX
= 0, int hotSpotY
= 0);
36 wxBitmap
GetBitmap() const;
39 void InitFromStock(wxStockCursor
);
42 virtual wxGDIRefData
*CreateGDIRefData() const;
43 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
45 DECLARE_DYNAMIC_CLASS(wxCursor
)
48 #endif // _WX_DFB_CURSOR_H_