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