/////////////////////////////////////////////////////////////////////////////
// Name: private.h
// Purpose: Private declarations: as this header is only included by
-// wxWindows itself, it may contain identifiers which don't start
+// wxWidgets itself, it may contain identifiers which don't start
// with "wx".
// Author: Stefan Csomor
// Modified by:
#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"
WindowRef m_data ;
} ;
-wxWindow *wxFindControlFromMacControl(ControlRef inControl ) ;
-wxTopLevelWindowMac* wxFindWinFromMacWindow( WindowRef inWindow ) ;
+wxWindow * wxFindControlFromMacControl(ControlRef inControl ) ;
+wxTopLevelWindowMac* wxFindWinFromMacWindow( WindowRef inWindow ) ;
+wxMenu* wxFindMenuFromMacMenu(MenuRef inMenuRef) ;
+
extern wxWindow* g_MacLastWindow ;
pascal OSStatus wxMacTopLevelMouseEventHandler( EventHandlerCallRef handler , EventRef event , void *data ) ;
-Rect wxMacGetBoundsForControl( wxWindow* window , const wxPoint& pos , const wxSize &size ) ;
+Rect wxMacGetBoundsForControl( wxWindow* window , const wxPoint& pos , const wxSize &size , bool adjustForOrigin = true ) ;
template<typename T> EventParamType wxMacGetEventParamType() { wxFAIL_MSG( wxT("Unknown Param Type") ) ; return 0 ; }
template<> inline EventParamType wxMacGetEventParamType<RgnHandle>() { return typeQDRgnHandle ; }
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, inDesiredType , sizeof( T ) , data ) ;
+ }
+ template <typename T> OSStatus SetParameter( EventParamName inName, EventParamType inDesiredType , T data )
{
- return SetParameter( inName, type , sizeof( 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()
+ UInt32 GetKind()
{
return ::GetEventKind( m_eventRef ) ;
}
#endif
-
+// utils.cpp
wxUint32 wxMacGetSystemEncFromFontEnc(wxFontEncoding encoding) ;
wxFontEncoding wxMacGetFontEncFromSystemEnc(wxUint32 encoding) ;
+void wxMacWakeUp() ;
+
+// toplevel.cpp
+ControlRef wxMacFindControlUnderMouse( Point location , WindowRef window , ControlPartCode *outPart ) ;
#endif
// _WX_PRIVATE_H_