]> git.saurik.com Git - wxWidgets.git/blob - include/wx/x11/cursor.h
Add import/export macros
[wxWidgets.git] / include / wx / x11 / cursor.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: cursor.h
3 // Purpose: wxCursor class
4 // Author: Julian Smart
5 // Modified by:
6 // Created: 17/09/98
7 // RCS-ID: $Id$
8 // Copyright: (c) Julian Smart
9 // Licence: wxWindows licence
10 /////////////////////////////////////////////////////////////////////////////
11
12 #ifndef _WX_CURSOR_H_
13 #define _WX_CURSOR_H_
14
15 #if defined(__GNUG__) && !defined(NO_GCC_PRAGMA)
16 #pragma interface "cursor.h"
17 #endif
18
19 #include "wx/bitmap.h"
20
21 #if wxUSE_IMAGE
22 #include "wx/image.h"
23 #endif
24
25 //-----------------------------------------------------------------------------
26 // wxCursor
27 //-----------------------------------------------------------------------------
28
29 class WXDLLIMPEXP_CORE wxCursor: public wxObject
30 {
31 public:
32
33 wxCursor();
34 wxCursor( int cursorId );
35 wxCursor( const wxCursor &cursor );
36 #if wxUSE_IMAGE
37 wxCursor( const wxImage & image );
38 #endif
39 wxCursor( const char bits[], int width, int height,
40 int hotSpotX=-1, int hotSpotY=-1,
41 const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0 );
42 ~wxCursor();
43 wxCursor& operator = ( const wxCursor& cursor );
44 bool operator == ( const wxCursor& cursor ) const;
45 bool operator != ( const wxCursor& cursor ) const;
46 bool Ok() const;
47
48 // implementation
49
50 WXCursor GetCursor() const;
51
52 private:
53 DECLARE_DYNAMIC_CLASS(wxCursor)
54 };
55
56
57 #endif
58 // _WX_CURSOR_H_