|
|
@ -21,6 +21,7 @@ class CursorFactory : public ComSingleObject<IAvnCursorFactory, &IID_IAvnCursorF |
|
|
Cursor* resizeRightCursor = new Cursor([NSCursor resizeRightCursor]); |
|
|
Cursor* resizeRightCursor = new Cursor([NSCursor resizeRightCursor]); |
|
|
Cursor* resizeWestEastCursor = new Cursor([NSCursor resizeLeftRightCursor]); |
|
|
Cursor* resizeWestEastCursor = new Cursor([NSCursor resizeLeftRightCursor]); |
|
|
Cursor* operationNotAllowedCursor = new Cursor([NSCursor operationNotAllowedCursor]); |
|
|
Cursor* operationNotAllowedCursor = new Cursor([NSCursor operationNotAllowedCursor]); |
|
|
|
|
|
Cursor* noCursor = new Cursor([NSCursor arrowCursor], true); |
|
|
|
|
|
|
|
|
std::map<AvnStandardCursorType, Cursor*> s_cursorMap = |
|
|
std::map<AvnStandardCursorType, Cursor*> s_cursorMap = |
|
|
{ |
|
|
{ |
|
|
@ -46,11 +47,13 @@ class CursorFactory : public ComSingleObject<IAvnCursorFactory, &IID_IAvnCursorF |
|
|
{ CursorIbeam, IBeamCursor }, |
|
|
{ CursorIbeam, IBeamCursor }, |
|
|
{ CursorLeftSide, resizeLeftCursor }, |
|
|
{ CursorLeftSide, resizeLeftCursor }, |
|
|
{ CursorRightSide, resizeRightCursor }, |
|
|
{ CursorRightSide, resizeRightCursor }, |
|
|
{ CursorNo, operationNotAllowedCursor } |
|
|
{ CursorNo, operationNotAllowedCursor }, |
|
|
|
|
|
{ CursorNone, noCursor } |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
public: |
|
|
public: |
|
|
FORWARD_IUNKNOWN() |
|
|
FORWARD_IUNKNOWN() |
|
|
|
|
|
|
|
|
virtual HRESULT GetCursor (AvnStandardCursorType cursorType, IAvnCursor** retOut) override |
|
|
virtual HRESULT GetCursor (AvnStandardCursorType cursorType, IAvnCursor** retOut) override |
|
|
{ |
|
|
{ |
|
|
*retOut = s_cursorMap[cursorType]; |
|
|
*retOut = s_cursorMap[cursorType]; |
|
|
|