wxMacWindowClipper( const wxWindow* win ) ;
~wxMacWindowClipper() ;
private:
+ GrafPtr m_newPort ;
RgnHandle m_formerClip ;
RgnHandle m_newClip ;
} ;
+class WXDLLEXPORT wxMacWindowStateSaver : public wxMacWindowClipper
+{
+ DECLARE_NO_COPY_CLASS(wxMacWindowStateSaver)
+
+public:
+ wxMacWindowStateSaver( const wxWindow* win ) ;
+ ~wxMacWindowStateSaver() ;
+private:
+ GrafPtr m_newPort ;
+ ThemeDrawingState m_themeDrawingState ;
+} ;
+
/*
class wxMacDrawingHelper
{
wxTopLevelWindowMac* wxFindWinFromMacWindow( WindowRef inWindow ) ;
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 ; }