adding event construction
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@26734 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
336a6aba60
commit
2aefa0ef8a
@ -261,14 +261,22 @@ public :
|
||||
|
||||
|
||||
OSStatus SetParameter( EventParamName inName, EventParamType inType, UInt32 inSize, void * inData) ;
|
||||
template <typename T> OSStatus SetParameter( EventParamName inName, EventParamType type , T *data )
|
||||
template <typename T> OSStatus SetParameter( EventParamName inName, EventParamType inDesiredType , T *data )
|
||||
{
|
||||
return SetParameter( inName, type , sizeof( T ) , data ) ;
|
||||
return SetParameter( inName, inDesiredType , sizeof( T ) , data ) ;
|
||||
}
|
||||
template <typename T> OSStatus SetParameter( EventParamName inName, EventParamType inDesiredType , T data )
|
||||
{
|
||||
return SetParameter<T>( inName, inDesiredType , &data ) ;
|
||||
}
|
||||
template <typename T> OSStatus SetParameter( EventParamName inName, T *data )
|
||||
{
|
||||
return SetParameter<T>( inName, wxMacGetEventParamType<T>() , data ) ;
|
||||
}
|
||||
template <typename T> OSStatus SetParameter( EventParamName inName, T data )
|
||||
{
|
||||
return SetParameter<T>( inName, wxMacGetEventParamType<T>() , &data ) ;
|
||||
}
|
||||
|
||||
EventKind GetKind()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user