]> git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/cursor.h
Initial commit for Laurent Humbertclaude's Windows slave.
[wxWidgets.git] / include / wx / x11 / cursor.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/x11/cursor.h
3 // Purpose: wxCursor class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_CURSOR_H_
13 #define _WX_CURSOR_H_
14
15 #include "wx/gdiobj.h"
16 #include "wx/colour.h"
17
18 class WXDLLIMPEXP_FWD_CORE wxImage;
19
20 //-----------------------------------------------------------------------------
21 // wxCursor
22 //-----------------------------------------------------------------------------
23
24 class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
25 {
26 public:
27 wxCursor();
28 wxCursor( int cursorId );
29 #if wxUSE_IMAGE
30 wxCursor( const wxImage & image );
31 #endif
32
33 wxCursor( const char bits[], int width, int height,
34 int hotSpotX=-1, int hotSpotY=-1,
35 const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0 );
36 virtual ~wxCursor();
37
38 // implementation
39
40 WXCursor GetCursor() const;
41
42 protected:
43 virtual wxGDIRefData *CreateGDIRefData() const;
44 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
45
46 private:
47 DECLARE_DYNAMIC_CLASS(wxCursor)
48 };
49
50 #endif // _WX_CURSOR_H_