1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/dfb/cursor.h
3 // Purpose: wxCursor declaration
4 // Author: Vaclav Slavik
6 // Copyright: (c) 2006 REA Elektronik GmbH
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_DFB_CURSOR_H_
11 #define _WX_DFB_CURSOR_H_
13 #include "wx/gdiobj.h"
14 #include "wx/gdicmn.h"
16 class WXDLLIMPEXP_FWD_CORE wxBitmap
;
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIObject
26 wxCursor(wxStockCursor id
) { InitFromStock(id
); }
27 #if WXWIN_COMPATIBILITY_2_8
28 wxCursor(int id
) { InitFromStock((wxStockCursor
)id
); }
30 wxCursor(const wxString
& name
,
31 wxBitmapType type
= wxCURSOR_DEFAULT_TYPE
,
32 int hotSpotX
= 0, int hotSpotY
= 0);
35 wxBitmap
GetBitmap() const;
38 void InitFromStock(wxStockCursor
);
41 virtual wxGDIRefData
*CreateGDIRefData() const;
42 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
44 DECLARE_DYNAMIC_CLASS(wxCursor
)
47 #endif // _WX_DFB_CURSOR_H_