]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/cursor.h
patch 1306473
[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 __GTKCURSORH__
11 #define __GTKCURSORH__
12
13 #include "wx/defs.h"
14 #include "wx/object.h"
15 #include "wx/gdicmn.h"
16
17 #if wxUSE_IMAGE
18 #include "wx/image.h"
19 #endif
20
21 //-----------------------------------------------------------------------------
22 // wxCursor
23 //-----------------------------------------------------------------------------
24
25 class WXDLLIMPEXP_CORE wxCursor: public wxObject
26 {
27 public:
28
29 wxCursor();
30 wxCursor( int cursorId );
31 wxCursor( const wxCursor &cursor );
32 #if wxUSE_IMAGE
33 wxCursor( const wxImage & image );
34 #endif
35 wxCursor( const char bits[], int width, int height,
36 int hotSpotX=-1, int hotSpotY=-1,
37 const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0 );
38 ~wxCursor();
39 wxCursor& operator = ( const wxCursor& cursor );
40 bool operator == ( const wxCursor& cursor ) const;
41 bool operator != ( const wxCursor& cursor ) const;
42 bool Ok() const;
43
44 // implementation
45
46 GdkCursor *GetCursor() const;
47
48 private:
49 DECLARE_DYNAMIC_CLASS(wxCursor)
50 };
51
52 #endif // __GTKCURSORH__