1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk1/cursor.h
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef __GTKCURSORH__
11 #define __GTKCURSORH__
13 #include "wx/gdiobj.h"
14 #include "wx/gdicmn.h"
20 //-----------------------------------------------------------------------------
22 //-----------------------------------------------------------------------------
24 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIObject
28 wxCursor(wxStockCursor id
) { InitFromStock(id
); }
29 #if WXWIN_COMPATIBILITY_2_8
30 wxCursor(int id
) { InitFromStock((wxStockCursor
)id
); }
33 wxCursor( const wxImage
& image
);
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
);
40 /* WARNING: the following ctor is missing:
42 wxCursor(const wxString& name,
43 wxBitmapType type = wxCURSOR_DEFAULT_TYPE,
44 int hotSpotX = 0, int hotSpotY = 0);
51 GdkCursor
*GetCursor() const;
54 void InitFromStock(wxStockCursor
);
56 virtual wxGDIRefData
*CreateGDIRefData() const;
57 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
60 DECLARE_DYNAMIC_CLASS(wxCursor
)
63 #endif // __GTKCURSORH__