1 /////////////////////////////////////////////////////////////////////////////
4 // Author: Robert Roebling
6 // Copyright: (c) 1998 Robert Roebling
7 // Licence: wxWindows licence
8 /////////////////////////////////////////////////////////////////////////////
10 #ifndef _WX_GTK_CURSOR_H_
11 #define _WX_GTK_CURSOR_H_
13 #include "wx/gdiobj.h"
14 #include "wx/gdicmn.h"
16 class WXDLLIMPEXP_FWD_CORE wxColour
;
17 class WXDLLIMPEXP_FWD_CORE wxImage
;
19 //-----------------------------------------------------------------------------
21 //-----------------------------------------------------------------------------
23 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIObject
27 wxCursor(wxStockCursor id
) { InitFromStock(id
); }
28 #if WXWIN_COMPATIBILITY_2_8
29 wxCursor(int id
) { InitFromStock((wxStockCursor
)id
); }
32 wxCursor( const wxImage
& image
);
34 wxCursor( const char bits
[], int width
, int height
,
35 int hotSpotX
= -1, int hotSpotY
= -1,
36 const char maskBits
[] = NULL
,
37 const wxColour
* fg
= NULL
, const wxColour
* bg
= NULL
);
38 wxCursor(const wxString
& name
,
39 wxBitmapType type
= wxCURSOR_DEFAULT_TYPE
,
40 int hotSpotX
= 0, int hotSpotY
= 0);
45 GdkCursor
*GetCursor() const;
48 void InitFromStock(wxStockCursor
);
50 virtual wxGDIRefData
*CreateGDIRefData() const;
51 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
54 DECLARE_DYNAMIC_CLASS(wxCursor
)
57 #endif // _WX_GTK_CURSOR_H_