Sleeping Wombat GUI  0.100
swGUI
Classes | Namespaces | Macros
EventHandlers.h File Reference
#include "DelegateContainer.h"
#include "IEventArgs.h"

Go to the source code of this file.

Classes

class  sw::gui::EventHandlers
 Container class for delegates. More...
 

Namespaces

 sw
 
 sw::gui
 

Macros

#define REGISTER_EVENT_DECLARATION(name, strategy, className, argsType)
 
#define REGISTER_EVENT_DEFINITION(name, strategy, className, argsType)   const ::sw::gui::RegisteredEvent* className::s ## name = ::sw::gui::EventsSystem::Get().RegisterEvent( #name, ::sw::gui::strategy, TypeID::get< className >(), TypeID::get< argsType >() );
 

Detailed Description

Author
nieznanysprawiciel

Macro Definition Documentation

#define REGISTER_EVENT_DECLARATION (   name,
  strategy,
  className,
  argsType 
)
Value:
static const ::sw::gui::RegisteredEvent* s ## name; \
::sw::gui::EventProxy< argsType > name() { return ::sw::gui::EventProxy< argsType >( m_eventHandlers, s ## name ); }
Helper class for accessing event.
Definition: EventProxy.h:24
#define REGISTER_EVENT_DEFINITION (   name,
  strategy,
  className,
  argsType 
)    const ::sw::gui::RegisteredEvent* className::s ## name = ::sw::gui::EventsSystem::Get().RegisterEvent( #name, ::sw::gui::strategy, TypeID::get< className >(), TypeID::get< argsType >() );