]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/cursor.h
move frame decorations drawing to the base class
[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/object.h"
14
15 class WXDLLIMPEXP_CORE wxColour;
16 class WXDLLIMPEXP_CORE wxImage;
17
18 //-----------------------------------------------------------------------------
19 // wxCursor
20 //-----------------------------------------------------------------------------
21
22 class WXDLLIMPEXP_CORE wxCursor: public wxObject
23 {
24 public:
25
26 wxCursor();
27 wxCursor( int 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, const wxColour *fg = NULL, const wxColour *bg = NULL );
34 virtual ~wxCursor();
35 bool operator == ( const wxCursor& cursor ) const;
36 bool operator != ( const wxCursor& cursor ) const;
37 bool Ok() const;
38
39 // implementation
40
41 GdkCursor *GetCursor() const;
42
43 private:
44 DECLARE_DYNAMIC_CLASS(wxCursor)
45 };
46
47 #endif // _WX_GTK_CURSOR_H_