adding open and close hand cursor constants, implementation currently OSX only, closes #10360

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57965 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2009-01-10 09:45:16 +00:00
parent 2ae328d17f
commit 179c2d9136
3 changed files with 25 additions and 1 deletions

View File

@@ -128,6 +128,14 @@ enum wxStockCursor
#ifdef __WXMAC__
wxCURSOR_COPY_ARROW , // MacOS Theme Plus arrow
#endif
#ifdef __WXMAC__
wxCURSOR_OPEN_HAND,
wxCURSOR_CLOSED_HAND,
#else
// TODO CS supply openhand and closedhand cursors
wxCURSOR_OPEN_HAND = wxCURSOR_HAND,
wxCURSOR_CLOSED_HAND = wxCURSOR_HAND,
#endif
#ifdef __X__
// Not yet implemented for Windows
wxCURSOR_CROSS_REVERSE,

View File

@@ -647,6 +647,14 @@ void wxCursor::InitFromStock(wxStockCursor cursor_type)
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:

View File

@@ -224,7 +224,7 @@ WX_NSCursor wxMacCocoaCreateStockCursor( int cursor_type )
case wxCURSOR_HAND:
cursor = [[NSCursor pointingHandCursor] retain];
break;
case wxCURSOR_BULLSEYE:
cursor = wxGetStockCursor(kwxCursorBullseye);
break;
@@ -269,6 +269,14 @@ WX_NSCursor wxMacCocoaCreateStockCursor( int cursor_type )
cursor = wxGetStockCursor(kwxCursorRoller);
break;
case wxCURSOR_OPEN_HAND:
cursor = [[NSCursor openHandCursor] retain];
break;
case wxCURSOR_CLOSED_HAND:
cursor = [[NSCursor closedHandCursor] retain];
break;
case wxCURSOR_CHAR:
case wxCURSOR_ARROW:
case wxCURSOR_LEFT_BUTTON: