X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/271cad4cf73376f27c2071b53e534e7ad51ece82..400a9e419b229cd511d73922bd5506aaab3b120e:/include/wx/mac/carbon/private.h diff --git a/include/wx/mac/carbon/private.h b/include/wx/mac/carbon/private.h index 899266858b..b4c54a7418 100644 --- a/include/wx/mac/carbon/private.h +++ b/include/wx/mac/carbon/private.h @@ -34,6 +34,10 @@ #error "please update to Apple's lastest universal headers from http://developer.apple.com/sdk/" #endif +#ifndef MAC_OS_X_VERSION_10_3 + #define MAC_OS_X_VERSION_10_3 1030 +#endif + #if wxUSE_GUI #include "wx/window.h" @@ -261,14 +265,22 @@ public : OSStatus SetParameter( EventParamName inName, EventParamType inType, UInt32 inSize, void * inData) ; - template OSStatus SetParameter( EventParamName inName, EventParamType type , T *data ) + template OSStatus SetParameter( EventParamName inName, EventParamType inDesiredType , T *data ) + { + return SetParameter( inName, inDesiredType , sizeof( T ) , data ) ; + } + template OSStatus SetParameter( EventParamName inName, EventParamType inDesiredType , T data ) { - return SetParameter( inName, type , sizeof( T ) , data ) ; + return SetParameter( inName, inDesiredType , &data ) ; } template OSStatus SetParameter( EventParamName inName, T *data ) { return SetParameter( inName, wxMacGetEventParamType() , data ) ; } + template OSStatus SetParameter( EventParamName inName, T data ) + { + return SetParameter( inName, wxMacGetEventParamType() , &data ) ; + } EventKind GetKind() { @@ -365,11 +377,14 @@ private: #endif - +// utils.cpp wxUint32 wxMacGetSystemEncFromFontEnc(wxFontEncoding encoding) ; wxFontEncoding wxMacGetFontEncFromSystemEnc(wxUint32 encoding) ; +// toplevel.cpp + +ControlRef wxMacFindControlUnderMouse( Point location , WindowRef window , ControlPartCode *outPart ) ; #endif // _WX_PRIVATE_H_