1 /////////////////////////////////////////////////////////////////////////////
2 // Name: wx/gtk/cursor.h
4 // Author: Robert Roebling
5 // Copyright: (c) 1998 Robert Roebling
6 // Licence: wxWindows licence
7 /////////////////////////////////////////////////////////////////////////////
9 #ifndef _WX_GTK_CURSOR_H_
10 #define _WX_GTK_CURSOR_H_
12 #include "wx/gdiobj.h"
13 #include "wx/gdicmn.h"
15 class WXDLLIMPEXP_FWD_CORE wxColour
;
16 class WXDLLIMPEXP_FWD_CORE wxImage
;
18 //-----------------------------------------------------------------------------
20 //-----------------------------------------------------------------------------
22 class WXDLLIMPEXP_CORE wxCursor
: public wxGDIObject
26 wxCursor(wxStockCursor id
) { InitFromStock(id
); }
27 #if WXWIN_COMPATIBILITY_2_8
28 wxCursor(int id
) { InitFromStock((wxStockCursor
)id
); }
31 wxCursor( const wxImage
& image
);
32 wxCursor(const wxString
& name
,
33 wxBitmapType type
= wxCURSOR_DEFAULT_TYPE
,
34 int hotSpotX
= 0, int hotSpotY
= 0);
36 wxCursor( const char bits
[], int width
, int height
,
37 int hotSpotX
= -1, int hotSpotY
= -1,
38 const char maskBits
[] = NULL
,
39 const wxColour
* fg
= NULL
, const wxColour
* bg
= NULL
);
44 GdkCursor
*GetCursor() const;
47 void InitFromStock(wxStockCursor
);
49 void InitFromImage(const wxImage
& image
);
52 virtual wxGDIRefData
*CreateGDIRefData() const;
53 virtual wxGDIRefData
*CloneGDIRefData(const wxGDIRefData
*data
) const;
56 DECLARE_DYNAMIC_CLASS(wxCursor
)
59 #endif // _WX_GTK_CURSOR_H_