summaryrefslogtreecommitdiff
path: root/source/libs/asura-lib-core/input/cursor.h
diff options
context:
space:
mode:
Diffstat (limited to 'source/libs/asura-lib-core/input/cursor.h')
-rw-r--r--source/libs/asura-lib-core/input/cursor.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/source/libs/asura-lib-core/input/cursor.h b/source/libs/asura-lib-core/input/cursor.h
index a8e53a6..553fda4 100644
--- a/source/libs/asura-lib-core/input/cursor.h
+++ b/source/libs/asura-lib-core/input/cursor.h
@@ -1,4 +1,3 @@
-
#ifndef __ASURA_ENGINE_CURSOR_H__
#define __ASURA_ENGINE_CURSOR_H__
@@ -15,12 +14,17 @@ namespace AsuraEngine
namespace Input
{
- class Cursor ASURA_FINAL : public AEScripting::Portable<Cursor>
+ class CursorImpl;
+
+ // ָö
+#include "Cursor.defs"
+
+ class Cursor
+ : public AEScripting::Portable<Cursor>
{
public:
- // ָö
- #include "Cursor.defs"
+ LUAX_DECL_FACTORY(Cursor);
Cursor(Graphics::ImageData& imageData, int hotx, int hoty);
Cursor(SystemCursor cursortype);
@@ -31,18 +35,20 @@ namespace AsuraEngine
CursorType GetType() const;
SystemCursor GetSystemType() const;
- LUAX_DECL_FACTORY(Cursor);
-
private:
- SDL_Cursor* mCursorHandle;
-
- CursorType mType;
+ CursorType mType;
SystemCursor mSystemType;
+ CursorImpl* mImpl;
+
+ };
+
+ ASURA_ABSTRACT class CursorImpl
+ {
};
}
}
-#endif
+#endif \ No newline at end of file