X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/57b10cb4ebc329fdfb49002b59094de074083443..f7732fa59a48ada168c88ccd004eca3c848d8a05:/src/gtk/cursor.cpp diff --git a/src/gtk/cursor.cpp b/src/gtk/cursor.cpp index 265b98cd3b..0e778d1f8c 100644 --- a/src/gtk/cursor.cpp +++ b/src/gtk/cursor.cpp @@ -25,13 +25,14 @@ // wxCursor //----------------------------------------------------------------------------- -class wxCursorRefData: public wxObjectRefData +class wxCursorRefData: public wxGDIRefData { - public: - +public: wxCursorRefData(); virtual ~wxCursorRefData(); + virtual bool IsOk() const { return m_cursor != NULL; } + GdkCursor *m_cursor; }; @@ -360,14 +361,19 @@ wxCursor::~wxCursor() { } -bool wxCursor::IsOk() const +GdkCursor *wxCursor::GetCursor() const { - return (m_refData != NULL); + return M_CURSORDATA->m_cursor; } -GdkCursor *wxCursor::GetCursor() const +wxGDIRefData *wxCursor::CreateGDIRefData() const { - return M_CURSORDATA->m_cursor; + return new wxCursorRefData; +} + +wxGDIRefData *wxCursor::CloneGDIRefData(const wxGDIRefData *data) const +{ + return new wxCursorRefData(*wx_static_cast(const wxCursorRefData *, data)); } //-----------------------------------------------------------------------------