]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/cursor.h
3d93d7b47177153dc4b7f2c124f8b67a48e0b27f
[wxWidgets.git] / include / wx / gtk / cursor.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cursor.h
3 // Purpose:
4 // Author: Robert Roebling
5 // Id: $Id$
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
9
10 #ifndef _WX_GTK_CURSOR_H_
11 #define _WX_GTK_CURSOR_H_
12
13 #include "wx/gdiobj.h"
14 #include "wx/gdicmn.h"
15
16 class WXDLLIMPEXP_FWD_CORE wxColour;
17 class WXDLLIMPEXP_FWD_CORE wxImage;
18
19 //-----------------------------------------------------------------------------
20 // wxCursor
21 //-----------------------------------------------------------------------------
22
23 class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
24 {
25 public:
26 wxCursor();
27 wxCursor( wxStockCursor cursorId );
28 #if wxUSE_IMAGE
29 wxCursor( const wxImage & image );
30 #endif
31 wxCursor( const char bits[], int width, int height,
32 int hotSpotX = -1, int hotSpotY = -1,
33 const char maskBits[] = NULL,
34 const wxColour* fg = NULL, const wxColour* bg = NULL);
35 virtual ~wxCursor();
36
37 // implementation
38
39 GdkCursor *GetCursor() const;
40
41 protected:
42 virtual wxGDIRefData *CreateGDIRefData() const;
43 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
44
45 private:
46 DECLARE_DYNAMIC_CLASS(wxCursor)
47 };
48
49 #endif // _WX_GTK_CURSOR_H_