Sleeping Wombat GUI  0.100
swGUI
Public Types | Public Member Functions | Private Attributes | List of all members
sw::gui::EventProxy< EventArgType > Class Template Reference

Helper class for accessing event. More...

#include <EventProxy.h>

Public Types

typedef EventDelegate< EventArgType > DelegateType
 
typedef std::unique_ptr< EventArgType > ArgumentsOwnerPtr
 

Public Member Functions

 EventProxy (EventHandlers &delegatesContainer, const RegisteredEvent *eventInfo)
 
void operator+= (DelegateType delegate)
 
bool operator-= (DelegateType delegate)
 
void AddDelegate (DelegateType delegate)
 
bool RemoveDelegate (DelegateType delegate)
 
bool RaiseEvent (UIElement *sender, ArgumentsOwnerPtr &&arguments)
 

Private Attributes

EventHandlersm_handlers
 
const RegisteredEventm_eventInfo
 

Detailed Description

template<typename EventArgType>
class sw::gui::EventProxy< EventArgType >

Helper class for accessing event.

Member Typedef Documentation

template<typename EventArgType>
typedef std::unique_ptr< EventArgType > sw::gui::EventProxy< EventArgType >::ArgumentsOwnerPtr
template<typename EventArgType>
typedef EventDelegate< EventArgType > sw::gui::EventProxy< EventArgType >::DelegateType

Constructor & Destructor Documentation

template<typename EventArgType >
sw::gui::EventProxy< EventArgType >::EventProxy ( EventHandlers delegatesContainer,
const RegisteredEvent eventInfo 
)
inlineexplicit

Member Function Documentation

template<typename EventArgType>
void sw::gui::EventProxy< EventArgType >::AddDelegate ( DelegateType  delegate)
inline
template<typename EventArgType>
void sw::gui::EventProxy< EventArgType >::operator+= ( DelegateType  delegate)
inline
template<typename EventArgType>
bool sw::gui::EventProxy< EventArgType >::operator-= ( DelegateType  delegate)
inline
template<typename EventArgType >
bool sw::gui::EventProxy< EventArgType >::RaiseEvent ( UIElement sender,
ArgumentsOwnerPtr &&  arguments 
)
inline
template<typename EventArgType>
bool sw::gui::EventProxy< EventArgType >::RemoveDelegate ( DelegateType  delegate)
inline

Member Data Documentation

template<typename EventArgType>
const RegisteredEvent* sw::gui::EventProxy< EventArgType >::m_eventInfo
private
template<typename EventArgType>
EventHandlers& sw::gui::EventProxy< EventArgType >::m_handlers
private

The documentation for this class was generated from the following file: