]> git.saurik.com Git - wxWidgets.git/blobdiff - include/wx/mac/carbon/dcclient.h
Adding support for item font/style/color customization, unfortunately, it does not...
[wxWidgets.git] / include / wx / mac / carbon / dcclient.h
index 993e01dacd16bf7a21070e8406ed98d0c0149f41..4fc84defdd661af82bc8a6c6e65183723aa8d720 100644 (file)
@@ -31,10 +31,16 @@ class WXDLLEXPORT wxWindowDC: public wxDC
   // Create a DC corresponding to a canvas
   wxWindowDC(wxWindow *win);
 
-  ~wxWindowDC(void);
+  virtual ~wxWindowDC(void);
+  wxWindow *GetWindow() const { return m_window; }
   protected :
     virtual void DoGetSize( int *width, int *height ) const;
     wxWindow     *m_window;
+#if wxMAC_USE_CORE_GRAPHICS
+       bool            m_release;
+       int                     m_width;
+       int                     m_height;
+#endif
 };
 
 
@@ -48,10 +54,12 @@ class WXDLLEXPORT wxClientDC: public wxWindowDC
   // Create a DC corresponding to a canvas
   wxClientDC(wxWindow *win);
 
-  ~wxClientDC(void);
+  virtual ~wxClientDC(void);
 
 protected:
+#if !wxMAC_USE_CORE_GRAPHICS
   virtual void DoGetSize( int *width, int *height ) const;
+#endif
 };
 
 class WXDLLEXPORT wxPaintDC: public wxWindowDC
@@ -64,10 +72,12 @@ class WXDLLEXPORT wxPaintDC: public wxWindowDC
   // Create a DC corresponding to a canvas
   wxPaintDC(wxWindow *win);
 
-  ~wxPaintDC(void);
+  virtual ~wxPaintDC(void);
 
 protected:
+#if !wxMAC_USE_CORE_GRAPHICS
   virtual void DoGetSize( int *width, int *height ) const;
+#endif
 };
 
 #endif