changed port handling

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@10057 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Stefan Csomor
2001-05-08 16:08:09 +00:00
parent 71e483d39a
commit 0eaa1d68c2
27 changed files with 98 additions and 185 deletions

View File

@@ -48,6 +48,15 @@ extern int wxPageNumber;
// wxDC
//-----------------------------------------------------------------------------
class WXDLLEXPORT wxMacPortSetter
{
public :
wxMacPortSetter( wxDC* dc ) ;
~wxMacPortSetter() ;
private :
AGAPortHelper m_ph ;
} ;
class WXDLLEXPORT wxDC: public wxDCBase
{
DECLARE_DYNAMIC_CLASS(wxDC)
@@ -255,15 +264,9 @@ protected:
mutable bool m_macPenInstalled ;
mutable bool m_macBrushInstalled ;
mutable long m_macPortId ;
GrafPtr m_macOrigPort ;
Rect m_macClipRect ;
Point m_macLocalOrigin ;
mutable AGAPortHelper m_macPortHelper ;
void MacSetupPort() const ;
void MacVerifySetup() const { if ( m_macPortId != m_macCurrentPortId ) MacSetupPort() ; }
static void MacInvalidateSetup() { m_macCurrentPortId++ ; }
static long m_macCurrentPortId ;
void MacSetupPort( AGAPortHelper* ph ) const ;
};
#endif