mirror of
https://github.com/Halofreak1990/XFXFramework
synced 2024-12-26 13:49:34 +01:00
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()
32 lines
731 B
C++
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_
|