cursor.h 534 B

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // cursor.h
  3. // Avalonia.Native.OSX
  4. //
  5. // Created by ElBuda on 10/5/18.
  6. // Copyright © 2018 Avalonia. All rights reserved.
  7. //
  8. #ifndef cursor_h
  9. #define cursor_h
  10. #include "common.h"
  11. #include <map>
  12. class Cursor : public ComSingleObject<IAvnCursor, &IID_IAvnCursor>
  13. {
  14. private:
  15. NSCursor * _native;
  16. public:
  17. Cursor(NSCursor * cursor)
  18. {
  19. _native = cursor;
  20. }
  21. NSCursor* GetNative()
  22. {
  23. return _native;
  24. }
  25. };
  26. extern std::map<AvnStandardCursorType, Cursor*> s_cursorMap;
  27. #endif /* cursor_h */