]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/cursor.h
build fix for wxGTK/Univ build (#9706)
[wxWidgets.git] / include / wx / gtk1 / cursor.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/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 __GTKCURSORH__
11 #define __GTKCURSORH__
12
13 #include "wx/gdiobj.h"
14 #include "wx/gdicmn.h"
15
16 #if wxUSE_IMAGE
17 #include "wx/image.h"
18 #endif
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 wxCursor( const char bits[], int width, int height,
33 int hotSpotX=-1, int hotSpotY=-1,
34 const char maskBits[] = NULL, 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 // __GTKCURSORH__