X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4f305456585c3f53b58f90803d25f1392eaedb36..15ad38c34f3bbd0a0c912dee5575ff2d3bb8ed9a:/include/wx/mac/carbon/private.h diff --git a/include/wx/mac/carbon/private.h b/include/wx/mac/carbon/private.h index c64fcbb0b3..899266858b 100644 --- a/include/wx/mac/carbon/private.h +++ b/include/wx/mac/carbon/private.h @@ -105,10 +105,23 @@ public: 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 { @@ -186,7 +199,7 @@ wxWindow *wxFindControlFromMacControl(ControlRef inControl ) ; 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 EventParamType wxMacGetEventParamType() { wxFAIL_MSG( wxT("Unknown Param Type") ) ; return 0 ; } template<> inline EventParamType wxMacGetEventParamType() { return typeQDRgnHandle ; }