X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7c23a0b01b3fb667ec41fc8271ce1ee5b5aa4e19..0dbd6262a9ee7d735fb3930707346298f71b2cb7:/include/wx/stubs/cursor.h?ds=sidebyside diff --git a/include/wx/stubs/cursor.h b/include/wx/stubs/cursor.h index 5484414e7b..bc6397069f 100644 --- a/include/wx/stubs/cursor.h +++ b/include/wx/stubs/cursor.h @@ -45,7 +45,6 @@ public: // Copy constructors inline wxCursor(const wxCursor& cursor) { Ref(cursor); } - inline wxCursor(const wxCursor* cursor) { if (cursor) Ref(*cursor); } wxCursor(const char bits[], int width, int height, int hotSpotX = -1, int hotSpotY = -1, const char maskBits[] = NULL); @@ -57,7 +56,8 @@ public: wxCursor(int cursor_type); ~wxCursor(); - virtual bool Ok() const { return (m_refData != NULL && M_CURSORDATA->m_hCursor) ; } + // TODO: also verify the internal cursor handle + virtual bool Ok() const { return (m_refData != NULL) ; } inline wxCursor& operator = (const wxCursor& cursor) { if (*this == cursor) return (*this); Ref(cursor); return *this; } inline bool operator == (const wxCursor& cursor) { return m_refData == cursor.m_refData; } @@ -69,5 +69,7 @@ public: */ }; +extern WXDLLEXPORT void wxSetCursor(const wxCursor& cursor); + #endif // _WX_CURSOR_H_