git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@38343
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
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 ;
} ;
}
#endif
+wxMacPortSaver::wxMacPortSaver( GrafPtr port )
+{
+ ::GetPort( &m_port ) ;
+ ::SetPort( port ) ;
+}
+
+wxMacPortSaver::~wxMacPortSaver()
+{
+ ::SetPort( m_port ) ;
+}
+
#endif // wxUSE_GUI