Move IEventHandler out of Event to allow for forward declaration

This commit is contained in:
2021-07-25 13:37:21 +02:00
parent 66ff6b3bab
commit 440b6ca0e5

View File

@@ -8,18 +8,19 @@
namespace openVulkanoCpp
{
class IEventHandler
{
public:
virtual ~IEventHandler() = default;
virtual void SetInvalid() = 0;
};
template<typename... Arguments>
class Event final
{
public:
typedef std::function<void(Arguments...)> Function;
class IEventHandler
{
public:
virtual ~IEventHandler() = default;
virtual void SetInvalid() = 0;
};
private:
enum class EventHandlerType { STATIC, INSTANCED, INSTANCED_SHARED_PTR, INSTANCED_WEAK_PTR, FUNCTIONAL };