friend class wxCursor;
- DECLARE_NO_ASSIGN_CLASS(wxCursorRefData)
+ wxDECLARE_NO_ASSIGN_CLASS(wxCursorRefData);
};
-#define M_CURSORDATA wx_static_cast(wxCursorRefData*, m_refData)
+#define M_CURSORDATA static_cast<wxCursorRefData*>(m_refData)
#if wxOSX_USE_COCOA_OR_CARBON
{
}
-wxCursor::wxCursor(const char WXUNUSED(bits)[], int WXUNUSED(width), int WXUNUSED(height),
- int WXUNUSED(hotSpotX), int WXUNUSED(hotSpotY), const char WXUNUSED(maskBits)[])
-{
-}
-
wxCursor::wxCursor( const wxImage &image )
{
#if wxUSE_IMAGE
wxGDIRefData *wxCursor::CloneGDIRefData(const wxGDIRefData *data) const
{
- return new wxCursorRefData(*wx_static_cast(const wxCursorRefData *, data));
+ return new wxCursorRefData(*static_cast<const wxCursorRefData *>(data));
}
bool wxCursor::CreateFromXpm(const char* const* bits)
}
// Cursors by stock number
-wxCursor::wxCursor(wxStockCursor cursor_type)
+void wxCursor::InitFromStock(wxStockCursor cursor_type)
{
m_refData = new wxCursorRefData;
#if wxOSX_USE_COCOA
M_CURSORDATA->m_hCursor = wxGetStockCursor(kwxCursorRoller);
break;
+ case wxCURSOR_OPEN_HAND:
+ M_CURSORDATA->m_themeCursor = kThemeOpenHandCursor;
+ break;
+
+ case wxCURSOR_CLOSED_HAND:
+ M_CURSORDATA->m_themeCursor = kThemeClosedHandCursor;
+ break;
+
case wxCURSOR_CHAR:
case wxCURSOR_ARROW:
case wxCURSOR_LEFT_BUTTON: