]> git.saurik.com Git - wxWidgets.git/commitdiff
mac cgcolor changes & cleanup
authorStefan Csomor <csomor@advancedconcepts.ch>
Thu, 22 Nov 2007 17:47:10 +0000 (17:47 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Thu, 22 Nov 2007 17:47:10 +0000 (17:47 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@50171 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/mac/carbon/brush.h
include/wx/mac/carbon/metafile.h
include/wx/mac/carbon/private.h

index ae73a725dd6444725f89201602cbe63989da422b..6f6bbb4ba6256527b197e35814cb10c9bd2062a9 100644 (file)
@@ -42,7 +42,7 @@ public:
     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
@@ -50,7 +50,7 @@ public:
 
     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 ;
index d0056405066fe53d7b0e32e863a34e282afd3b55..21ee5672d4449434a91eb45a6de3524509109371 100644 (file)
@@ -57,10 +57,12 @@ public:
     // 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
index 48bd4c4dc24ac1e2ec6c9f37a493f625d92c525d..9b00f047df9d7dab2ff47d1385372357dc9ccf50 100644 (file)
@@ -438,7 +438,6 @@ void wxMacCreateBitmapButton( ControlButtonContentInfo*info , const wxBitmap& bi
 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))
@@ -1073,6 +1072,13 @@ public:
 // 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