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,12 +8,6 @@
namespace openVulkanoCpp
{
template<typename... Arguments>
class Event final
{
public:
typedef std::function<void(Arguments...)> Function;
class IEventHandler
{
public:
@@ -21,6 +15,13 @@ namespace openVulkanoCpp
virtual void SetInvalid() = 0;
};
template<typename... Arguments>
class Event final
{
public:
typedef std::function<void(Arguments...)> Function;
private:
enum class EventHandlerType { STATIC, INSTANCED, INSTANCED_SHARED_PTR, INSTANCED_WEAK_PTR, FUNCTIONAL };