iEvent.h File Reference
#include <igor/iDefines.h>
#include <functional>
#include <memory>

Classes

class  igor::iEvent
 

Namespaces

namespace  igor
 resource parameters texture unit 3
 

Macros

#define IGOR_EVENT_CLASS_TYPE(type)
 
#define IGOR_EVENT_KIND_MASK(mask)    virtual iEventKindMask getEventKindMask() const override { return mask; }
 
#define IGOR_BIND_EVENT_FUNCTION(fn)   std::bind(&fn, this, std::placeholders::_1)
 

Typedefs

typedef iWindow * igor::iWindowPtr
 
typedef uint32 igor::iEventKindMask
 
typedef std::shared_ptr< iEvent > igor::iEventPtr
 

Enumerations

enum class  igor::iEventType {
  igor::iEventKeyDown , igor::iEventKeyUp , igor::iEventKeyASCII , igor::iEventMouseKeyDown ,
  igor::iEventMouseKeyUp , igor::iEventMouseKeyDoubleClick , igor::iEventMouseMove , igor::iEventMouseWheel ,
  igor::iEventWindowClose , igor::iEventWindowOpen , igor::iEventWindowResize , igor::iEventNodeAddedToScene ,
  igor::iEventNodeRemovedFromScene , igor::iEventSceneSelectionChanged , igor::iEventEntityCreated , igor::iEventEntityDestroyed ,
  igor::iEventTypeCount
}
 
enum class  igor::iEventKind {
  igor::Input = 1 , igor::Keyboard = 2 , igor::Mouse = 4 , igor::Window = 8 ,
  igor::Scene = 16 , igor::ECS = 32
}
 

Functions

std::wostream & igor::operator<< (std::wostream &stream, const iEvent &event)
 

Macro Definition Documentation

◆ IGOR_BIND_EVENT_FUNCTION

#define IGOR_BIND_EVENT_FUNCTION (   fn)    std::bind(&fn, this, std::placeholders::_1)

helper macro for defining a member function

Examples
Physics/src/PhysicsExample.cpp.

◆ IGOR_EVENT_CLASS_TYPE

#define IGOR_EVENT_CLASS_TYPE (   type)
Value:
static iEventType getStaticType() { return iEventType::type; } \
virtual iEventType getEventType() const override { return getStaticType(); } \
virtual const iaString getName() const override { return #type; }
Definition: iaString.h:55
iEventType
Definition: iEvent.h:45

helper macro to define event type

◆ IGOR_EVENT_KIND_MASK

#define IGOR_EVENT_KIND_MASK (   mask)     virtual iEventKindMask getEventKindMask() const override { return mask; }

helper to generate event kind mask