summaryrefslogtreecommitdiff
path: root/source/Asura.Editor/core/signal.h
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2019-08-01 09:15:04 +0800
committerchai <chaifix@163.com>2019-08-01 09:15:04 +0800
commit99b90496765df21c5f377f42b9ed073ccb34c1fd (patch)
tree201cade18b6571d6ab5318945aed59a3610295a5 /source/Asura.Editor/core/signal.h
parent084623519e95f0ab0cf4bc328b5fa736d679c5bd (diff)
*misc
Diffstat (limited to 'source/Asura.Editor/core/signal.h')
-rw-r--r--source/Asura.Editor/core/signal.h52
1 files changed, 0 insertions, 52 deletions
diff --git a/source/Asura.Editor/core/signal.h b/source/Asura.Editor/core/signal.h
deleted file mode 100644
index f73f4b1..0000000
--- a/source/Asura.Editor/core/signal.h
+++ /dev/null
@@ -1,52 +0,0 @@
-#ifndef __ASRUA_EDTIRO_SIGNAL_H__
-#define __ASRUA_EDTIRO_SIGNAL_H__
-
-#include <vector>
-
-#include <asura-utils/scripting/portable.hpp>
-
-#include "../widgets/widget.h"
-#include "slot.h"
-
-namespace AsuraEditor
-{
-
- ///
- /// ؼ¼
- ///
- class Signal
- {
- public:
- Signal();
-
- ///
- /// Fire¼connectļߣãconnectĺ
- ///
- void operator()(void* userdata)
- {
- for (auto callback : mCallbacks)
- callback();
- }
-
- ///
- /// עص
- ///
- void Connect(const Slot& callback)
- {
- mCallbacks.push_back(callback);
- }
-
- ///
- ///
- ///
- void Disconnect();
-
- private:
-
- std::vector<Slot> mCallbacks; //
-
- };
-
-}
-
-#endif \ No newline at end of file