NXWidgets  1.19
Public Member Functions | Private Attributes | List of all members
NXWidgets::TEventArgs< T > Class Template Reference

#include <teventargs.hxx>

Inheritance diagram for NXWidgets::TEventArgs< T >:
Inheritance graph

Public Member Functions

 TEventArgs (const T &source)
 
virtual ~TEventArgs ()
 
const T & getSource (void) const
 

Private Attributes

m_source
 

Detailed Description

template<class T>
class NXWidgets::TEventArgs< T >

Base template class for all events within the NxWidgets system. All event types should inherit from this class.

Definition at line 100 of file teventargs.hxx.

Constructor & Destructor Documentation

◆ TEventArgs()

template<class T>
NXWidgets::TEventArgs< T >::TEventArgs ( const T &  source)
inline

Constructor.

Parameters
sourceThe object that raised the event.

Definition at line 112 of file teventargs.hxx.

◆ ~TEventArgs()

template<class T>
virtual NXWidgets::TEventArgs< T >::~TEventArgs ( )
inlinevirtual

Destructor.

Definition at line 121 of file teventargs.hxx.

Member Function Documentation

◆ getSource()

template<class T>
const T& NXWidgets::TEventArgs< T >::getSource ( void  ) const
inline

Get the source object that raised the event.

Definition at line 127 of file teventargs.hxx.

Member Data Documentation

◆ m_source

template<class T>
T NXWidgets::TEventArgs< T >::m_source
private

The object that raised the event

Definition at line 103 of file teventargs.hxx.


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