diff options
Diffstat (limited to 'source/Asura.Editor/core/slot.h')
-rw-r--r-- | source/Asura.Editor/core/slot.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/source/Asura.Editor/core/slot.h b/source/Asura.Editor/core/slot.h deleted file mode 100644 index f569cfe..0000000 --- a/source/Asura.Editor/core/slot.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef __ASURA_EDITOR_SLOT_H__ -#define __ASURA_EDITOR_SLOT_H__ - -#include <asura-utils/scripting/portable.hpp> -#include <asura-core/input/event.h> - -#include "../controls/widget.h" - -namespace AsuraEditor -{ - - /// - /// Ӧsignalıհ - /// - class Slot - { - public: - Slot(Luax::LuaxState& state, Widget& widget, int refID) - : mState(state) - , mRefID(refID) - , mWidget(widget) - { - } - - void operator()() - { - mWidget.PushLuaxMemberRef(mState, mRefID); - if (lua_isfunction(mState, -1)) // callback - { - mState.Call(0, 0); - } - } - - private: - Luax::LuaxState& mState; - Widget& mWidget; - int mRefID; - - }; - -} - -#endif
\ No newline at end of file |