1 ///////////////////////////////////////////////////////////////////////////// 2 // Name: wx/gtk1/cursor.h 3 // Purpose: 4 // Author: Robert Roebling 5 // Copyright: (c) 1998 Robert Roebling 6 // Licence: wxWindows licence 7 ///////////////////////////////////////////////////////////////////////////// 8 9 #ifndef __GTKCURSORH__ 10 #define __GTKCURSORH__ 11 12 #include "wx/gdicmn.h" 13 14 #if wxUSE_IMAGE 15 #include "wx/image.h" 16 #endif 17 18 //----------------------------------------------------------------------------- 19 // wxCursor 20 //----------------------------------------------------------------------------- 21 22 class WXDLLIMPEXP_CORE wxCursor : public wxCursorBase 23 { 24 public: 25 wxCursor(); wxCursor(wxStockCursor id)26 wxCursor(wxStockCursor id) { InitFromStock(id); } 27 #if WXWIN_COMPATIBILITY_2_8 wxCursor(int id)28 wxCursor(int id) { InitFromStock((wxStockCursor)id); } 29 #endif 30 #if wxUSE_IMAGE 31 wxCursor( const wxImage & image ); 32 #endif 33 wxCursor( const char bits[], int width, int height, 34 int hotSpotX=-1, int hotSpotY=-1, 35 const char maskBits[] = NULL, 36 const wxColour* fg = NULL, const wxColour* bg = NULL); 37 38 /* WARNING: the following ctor is missing: 39 40 wxCursor(const wxString& name, 41 wxBitmapType type = wxCURSOR_DEFAULT_TYPE, 42 int hotSpotX = 0, int hotSpotY = 0); 43 */ 44 45 virtual ~wxCursor(); 46 47 // implementation 48 49 GdkCursor *GetCursor() const; 50 51 protected: 52 void InitFromStock(wxStockCursor); 53 54 virtual wxGDIRefData *CreateGDIRefData() const; 55 virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; 56 57 private: 58 wxDECLARE_DYNAMIC_CLASS(wxCursor); 59 }; 60 61 #endif // __GTKCURSORH__ 62