void MacInstallBrush() const ;
#endif
- wxPoint m_macLocalOrigin ;
+ wxPoint m_macLocalOrigin ;
mutable void* m_macATSUIStyle ;
+ WXHDC m_macPort ;
#if wxMAC_USE_CORE_GRAPHICS
// CoreGraphics
wxGraphicContext * m_graphicContext ;
#else
- WXHDC m_macPort ;
mutable bool m_macFontInstalled ;
mutable bool m_macPenInstalled ;
mutable bool m_macBrushInstalled ;
#define MAC_OS_X_VERSION_10_3 1030
#endif
+#ifndef MAC_OS_X_VERSION_10_4
+ #define MAC_OS_X_VERSION_10_4 1040
+#endif
+
#ifdef __WXMAC_CARBON__
#include "wx/mac/corefoundation/cfstring.h"
#endif
ThemeDrawingState m_themeDrawingState ;
} ;
+#if wxMAC_USE_CORE_GRAPHICS
+class WXDLLEXPORT wxMacCGContextStateSaver
+{
+ DECLARE_NO_COPY_CLASS(wxMacCGContextStateSaver)
+
+public:
+ wxMacCGContextStateSaver( CGContextRef cg )
+ {
+ m_cg = cg ;
+ CGContextSaveGState( cg ) ;
+ }
+ ~wxMacCGContextStateSaver()
+ {
+ CGContextRestoreGState( m_cg ) ;
+ }
+private:
+ CGContextRef m_cg ;
+} ;
+
+#endif
/*
class wxMacDrawingHelper
{
int m_maskBytesPerRow ;
};
-#define M_BITMAPDATA ((wxBitmapRefData *)m_refData)
-
class WXDLLEXPORT wxIconRefData : public wxGDIRefData
{
public:
void Init() ;
virtual void Free();
+
+ void SetWidth( int width ) { m_width = width ; }
+ void SetHeight( int height ) { m_height = height ; }
+
+ int GetWidth() const { return m_width ; }
+ int GetHeight() const { return m_height ; }
+
WXHICON GetHICON() const { return (WXHICON) m_iconRef ; }
private :
IconRef m_iconRef ;
+ int m_width ;
+ int m_height ;
};
#endif // wxUSE_GUI