+
+//begin wxmac
+ GrafPtr m_macPort ;
+
+ // in order to preserve the const inheritance of the virtual functions, we have to
+ // use mutable variables starting from CWPro 5
+
+ void MacInstallFont() const ;
+ void MacInstallPen() const ;
+ void MacInstallBrush() const ;
+
+ mutable bool m_macFontInstalled ;
+ mutable bool m_macPenInstalled ;
+ mutable bool m_macBrushInstalled ;
+
+ mutable long m_macPortId ;
+ GrafPtr m_macOrigPort ;
+ Rect m_macClipRect ;
+ Point m_macLocalOrigin ;
+
+ void MacSetupPort() const ;
+ void MacVerifySetup() const { if ( m_macPortId != m_macCurrentPortId ) MacSetupPort() ; }
+
+ static long m_macCurrentPortId ;