DECLARE_NO_COPY_CLASS(wxMacPortSaver)
public:
- wxMacPortSaver( GrafPtr port )
- {
- ::GetPort( &m_port ) ;
- ::SetPort( port ) ;
- }
- ~wxMacPortSaver()
- {
- ::SetPort( m_port ) ;
- }
+ wxMacPortSaver( GrafPtr port );
+ ~wxMacPortSaver();
private :
GrafPtr m_port ;
} ;
template<> inline EventParamType wxMacGetEventParamType<HIRect>() { return typeHIRect ; }
template<> inline EventParamType wxMacGetEventParamType<void*>() { return typeVoidPtr ; }
#endif
+#if TARGET_API_MAC_OSX && ( MAC_OS_X_VERSION_MAX_ALLOWED > MAC_OS_X_VERSION_10_2 )
template<> inline EventParamType wxMacGetEventParamType<CFDictionaryRef>() { return typeCFDictionaryRef ; }
+#endif
template<> inline EventParamType wxMacGetEventParamType<Collection>() { return typeCollection ; }
template<> inline EventParamType wxMacGetEventParamType<CGContextRef>() { return typeCGContextRef ; }
/*
~wxMacCFRefHolder()
{
- CFRelease( m_ref ) ;
+ Release() ;
}
void Release()
ControlRef wxMacFindControlUnderMouse( wxTopLevelWindowMac* toplevelWindow, const Point& location , WindowRef window , ControlPartCode *outPart ) ;
-#if WORDS_BIGENDIAN
+#ifdef WORDS_BIGENDIAN
inline Rect* wxMacGetPictureBounds( PicHandle pict , Rect* rect )
{
*rect = (**pict).picFrame ;