]> git.saurik.com Git - wxWidgets.git/blob - include/wx/gtk1/cursor.h
testing header replace
[wxWidgets.git] / include / wx / gtk1 / cursor.h
1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/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/gdiobj.h"
14 #include "wx/gdicmn.h"
15
16 #if wxUSE_IMAGE
17 #include "wx/image.h"
18 #endif
19
20 //-----------------------------------------------------------------------------
21 // wxCursor
22 //-----------------------------------------------------------------------------
23
24 class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject
25 {
26 public:
27 wxCursor();
28 wxCursor(wxStockCursor id) { InitFromStock(id); }
29 #if WXWIN_COMPATIBILITY_2_8
30 wxCursor(int id) { InitFromStock((wxStockCursor)id); }
31 #endif
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[] = NULL,
38 const wxColour* fg = NULL, const wxColour* bg = NULL);
39
40 /* WARNING: the following ctor is missing:
41
42 wxCursor(const wxString& name,
43 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
44 int hotSpotX = 0, int hotSpotY = 0);
45 */
46
47 virtual ~wxCursor();
48
49 // implementation
50
51 GdkCursor *GetCursor() const;
52
53 protected:
54 void InitFromStock(wxStockCursor);
55
56 virtual wxGDIRefData *CreateGDIRefData() const;
57 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const;
58
59 private:
60 DECLARE_DYNAMIC_CLASS(wxCursor)
61 };
62
63 #endif // __GTKCURSORH__