From 99b90496765df21c5f377f42b9ed073ccb34c1fd Mon Sep 17 00:00:00 2001 From: chai Date: Thu, 1 Aug 2019 09:15:04 +0800 Subject: *misc --- source/Asura.Editor/core/slot.h | 43 ----------------------------------------- 1 file changed, 43 deletions(-) delete mode 100644 source/Asura.Editor/core/slot.h (limited to 'source/Asura.Editor/core/slot.h') 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 -#include - -#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 -- cgit v1.1-26-g67d0