]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk/cursor.h
Ignore the DECLARE_*()'s when swigging
[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/gdiobj.h"
14
15 class WXDLLIMPEXP_FWD_CORE wxColour;
16 class WXDLLIMPEXP_FWD_CORE wxImage;
17
18 enum wxStockCursor;
19
20 //-----------------------------------------------------------------------------
21 // wxCursor
22 //-----------------------------------------------------------------------------
23
24 class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
25 {
26 public:
27 wxCursor();
28 wxCursor( wxStockCursor 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,
35 const wxColour *fg = NULL, const wxColour *bg = NULL );
36 virtual ~wxCursor();
37
38 // implementation
39
40 GdkCursor *GetCursor() const;
41
42 protected:
43 virtual wxGDIRefData *CreateGDIRefData() const;
44 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
45
46 private:
47 DECLARE_DYNAMIC_CLASS(wxCursor)
48 };
49
50 #endif // _WX_GTK_CURSOR_H_