Move IEventHandler out of Event to allow for forward declaration
This commit is contained in:
@@ -8,18 +8,19 @@
|
|||||||
|
|
||||||
namespace openVulkanoCpp
|
namespace openVulkanoCpp
|
||||||
{
|
{
|
||||||
|
class IEventHandler
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
virtual ~IEventHandler() = default;
|
||||||
|
virtual void SetInvalid() = 0;
|
||||||
|
};
|
||||||
|
|
||||||
template<typename... Arguments>
|
template<typename... Arguments>
|
||||||
class Event final
|
class Event final
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
typedef std::function<void(Arguments...)> Function;
|
typedef std::function<void(Arguments...)> Function;
|
||||||
|
|
||||||
class IEventHandler
|
|
||||||
{
|
|
||||||
public:
|
|
||||||
virtual ~IEventHandler() = default;
|
|
||||||
virtual void SetInvalid() = 0;
|
|
||||||
};
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
enum class EventHandlerType { STATIC, INSTANCED, INSTANCED_SHARED_PTR, INSTANCED_WEAK_PTR, FUNCTIONAL };
|
enum class EventHandlerType { STATIC, INSTANCED, INSTANCED_SHARED_PTR, INSTANCED_WEAK_PTR, FUNCTIONAL };
|
||||||
|
|||||||
Reference in New Issue
Block a user