virtual void SetStyle(int style) ;
virtual void SetStipple(const wxBitmap& stipple) ;
virtual void MacSetTheme(short macThemeBrush) ;
- virtual void MacSetThemeBackground(unsigned long macThemeBackground , WXRECTPTR extent) ;
+// TODO REMOVE virtual void MacSetThemeBackground(unsigned long macThemeBackground , WXRECTPTR extent) ;
bool operator == (const wxBrush& brush) const;
bool operator != (const wxBrush& brush) const
wxMacBrushKind MacGetBrushKind() const ;
- unsigned long MacGetThemeBackground(WXRECTPTR extent) const ;
+// TODO REMOVE unsigned long MacGetThemeBackground(WXRECTPTR extent) const ;
short MacGetTheme() const ;
wxColour& GetColour() const ;
virtual int GetStyle() const ;
// Implementation
WXHMETAFILE GetHMETAFILE() const ;
void SetHMETAFILE(WXHMETAFILE mf) ;
+#ifndef __LP64__
// Since the native metafile format is PDF for Quartz
// we need a call that allows setting PICT content for
// backwards compatibility
void SetPICT(void* pictHandle) ;
+#endif
};
class WXDLLEXPORT wxMetafileDC: public wxDC
void wxMacReleaseBitmapButton( ControlButtonContentInfo*info );
CGImageRef wxMacCreateCGImageFromBitmap( const wxBitmap& bitmap );
-#define MAC_WXCOLORREF(a) (*((RGBColor*)&(a)))
#define MAC_WXHBITMAP(a) (GWorldPtr(a))
#define MAC_WXHMETAFILE(a) (PicHandle(a))
#define MAC_WXHICON(a) (IconRef(a))
// graphics implementation
// ============================================================================
+// draw the image 'upside down' corrected as HIViewDrawCGImage does
+
+OSStatus WXDLLEXPORT wxMacDrawCGImage(
+ CGContextRef inContext,
+ const HIRect * inBounds,
+ CGImageRef inImage) ;
+
// make sure we all use one class for all conversions from wx to native colour
class wxMacCoreGraphicsColour