// wxCursor
//-----------------------------------------------------------------------------
-class wxCursorRefData: public wxObjectRefData
+class wxCursorRefData : public wxGDIRefData
{
- public:
-
+public:
wxCursorRefData();
virtual ~wxCursorRefData();
wxCursorRefData::wxCursorRefData()
{
- m_cursor = (GdkCursor *) NULL;
+ m_cursor = NULL;
}
wxCursorRefData::~wxCursorRefData()
}
-wxCursor::wxCursor( int cursorId )
+void wxCursor::InitFromStock( wxStockCursor cursorId )
{
m_refData = new wxCursorRefData();
{
}
-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(*static_cast<const wxCursorRefData *>(data));
}
//-----------------------------------------------------------------------------