cursors for cocoa

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29690 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2004-10-06 22:11:46 +00:00
parent f744f3456c
commit 5558135c48
6 changed files with 80 additions and 25 deletions

View File

@@ -30,6 +30,7 @@ public:
protected:
int m_width, m_height;
WX_NSCursor m_hCursor;
};
#define M_CURSORDATA ((wxCursorRefData *)m_refData)
@@ -62,6 +63,11 @@ public:
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; }
inline bool operator != (const wxCursor& cursor) { return m_refData != cursor.m_refData; }
inline WX_NSCursor GetNSCursor() const
{
return (M_CURSORDATA ? M_CURSORDATA->m_hCursor : 0);
}
};