From 66c5fdc564dd892ed265132d6c1378dbe3cebcee Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 27 Mar 2019 09:07:54 +0800 Subject: *misc --- source/libs/asura-lib-core/input/cursor.h | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) (limited to 'source/libs/asura-lib-core/input/cursor.h') 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 + class CursorImpl; + + // 鼠标指针的相关枚举 +#include "Cursor.defs" + + class Cursor + : public AEScripting::Portable { 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 -- cgit v1.1-26-g67d0