MeshLib C++ Docs
Loading...
Searching...
No Matches
MRObjectTagEventDispatcher.h
Go to the documentation of this file.
1#pragma once
2
3#include "MRMeshFwd.h"
4#include "MRSignal.h"
5
6namespace MR
7{
8
10class ObjectTagEventDispatcher
11{
12public:
14 MRMESH_API static ObjectTagEventDispatcher& instance();
15
16 using TagAddedSignal = Signal<void ( Object* obj, const std::string& tag )>;
18 TagAddedSignal tagAddedSignal;
19
20 using TagRemovedSignal = Signal<void ( Object* obj, const std::string& tag )>;
22 TagRemovedSignal tagRemovedSignal;
23
24private:
25 struct ProtectedTag {};
26 explicit ObjectTagEventDispatcher( ProtectedTag );
27};
28
29} // namespace MR
#define MRMESH_API
Definition MRMeshFwd.h:80
unsafe ObjectTagEventDispatcher(MR._ByValue_ObjectTagEventDispatcher _other)
Definition MRCameraOrientationPlugin.h:8