第三方框架改为仓内子集并完善构建忽略规则

完整 NIM_Duilib_Framework 仓库移至父目录,third_party 仅保留实际使用的 base、duilib、bin/resources 与许可证;.gitignore 覆盖 MSBuild 与打包产物。
This commit is contained in:
tongtong committed 2026-11-15 08:54:17 +08:00
1 parent 249e8548de
commit e1e26acc49
391 files changed
+342850

No files matched your search

@@ -0,0 +1,36 @@
#ifndef UI_UTILS_DELEGATE_H_
#define UI_UTILS_DELEGATE_H_
#pragma once
#include "Core/Define.h"
namespace ui
{
typedef std::function<bool(ui::EventArgs*)> EventCallback;
class CEventSource : public std::vector<EventCallback>
{
public:
CEventSource& operator += (const EventCallback& item)
{
push_back(item);
return *this;
}
bool operator() (ui::EventArgs* param) const
{
for (auto it = this->begin(); it != this->end(); it++) {
if(!(*it)(param)) return false;
}
return true;
}
};
typedef std::map<EventType, CEventSource> EventMap;
}
#endif // UI_UTILS_DELEGATE_H_