1
0
mirror of https://github.com/Halofreak1990/XFXFramework synced 2024-12-26 13:49:34 +01:00
XFXFramework/include/System/Windows/RoutedEventArgs.h
Tom Lint 81af66d336 Code Audit
Replaced all copyright symbols with (c) to improve cross-platform
reading
Added classes to XFX::Audio namespace
Added and updated classes in XFX::Graphics namespace
Updated event function signature
Replaced const char* ToString() with const String& ToString()
2013-06-02 14:32:43 +02:00

32 lines
731 B
C++

#ifndef _SYSTEM_WINDOWS_ROUTEDEVENTARGS_
#define _SYSTEM_WINDOWS_ROUTEDEVENTARGS_
#include <System/Event.h>
namespace System
{
namespace Windows
{
// Contains state information and event data associated with a routed event.
class RoutedEventArgs : public EventArgs
{
private:
Object* _originalSource;
friend class FrameworkElement;
RoutedEventArgs(Object * const originalSource) : _originalSource(originalSource) { }
public:
Object* getOriginalSource() const { return _originalSource; }
RoutedEventArgs() : _originalSource(null) { }
virtual ~RoutedEventArgs() { }
};
typedef Event<Object * const, RoutedEventArgs * const> RoutedEventHandler;
}
}
#endif //_SYSTEM_WINDOWS_ROUTEDEVENTARGS_