X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/55ccdb93e4ae4b606a4068cb37492c1ec3ed77a6..fc32630a5e03e60a67d4ef53fc59985ea087b451:/include/wx/x11/cursor.h?ds=inline diff --git a/include/wx/x11/cursor.h b/include/wx/x11/cursor.h index 3a22621bd1..01849e8085 100644 --- a/include/wx/x11/cursor.h +++ b/include/wx/x11/cursor.h @@ -12,40 +12,39 @@ #ifndef _WX_CURSOR_H_ #define _WX_CURSOR_H_ -#include "wx/bitmap.h" +#include "wx/gdiobj.h" +#include "wx/colour.h" -#if wxUSE_IMAGE -#include "wx/image.h" -#endif +class WXDLLIMPEXP_FWD_CORE wxImage; //----------------------------------------------------------------------------- // wxCursor //----------------------------------------------------------------------------- -class WXDLLIMPEXP_CORE wxCursor: public wxObject +class WXDLLIMPEXP_CORE wxCursor : public wxGDIObject { public: - wxCursor(); wxCursor( int cursorId ); #if wxUSE_IMAGE wxCursor( const wxImage & image ); #endif + wxCursor( const char bits[], int width, int height, int hotSpotX=-1, int hotSpotY=-1, const char maskBits[]=0, wxColour *fg=0, wxColour *bg=0 ); virtual ~wxCursor(); - bool Ok() const { return IsOk(); } - bool IsOk() const; // implementation WXCursor GetCursor() const; +protected: + virtual wxGDIRefData *CreateGDIRefData() const; + virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; + private: DECLARE_DYNAMIC_CLASS(wxCursor) }; - -#endif - // _WX_CURSOR_H_ +#endif // _WX_CURSOR_H_