]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/renderer.cpp
Compile fixes
[wxWidgets.git] / src / mac / carbon / renderer.cpp
index f295b9861acc707f1cb30f542efaa372b02c6222..5a14e7f08e840ce39cb4cbb38875f8653e2d6ed0 100644 (file)
@@ -49,6 +49,12 @@ public:
                                     const wxRect& rect,
                                     int flags = 0);
 
+    // draw a (vertical) sash
+    virtual void DrawSplitterSash(wxWindow *win,
+                                  wxDC& dc,
+                                  const wxSize& size,
+                                  wxCoord position);
+
 private:
     // the tree buttons
     wxBitmap m_bmpTreeExpanded,
@@ -185,3 +191,20 @@ wxRendererMac::DrawTreeItemButton(wxWindow *win,
 #endif // 0/1
 }
 
+void
+wxRendererMac::DrawSash(wxWindow *win,
+                        wxDC& dc,
+                        const wxSize& size,
+                        wxCoord position)
+{
+    // VZ: we have to somehow determine if we're drawing a normal sash or
+    //     a brushed metal one as they look quite differently... this is
+    //     completely bogus anyhow, of course (TODO)
+
+    const wxCoord h = size.y;
+
+    dc.SetPen(*wxLIGHT_GREY_PEN);
+    dc.SetBrush(*wxWHITE_BRUSH);
+    dc.DrawRectangle(position, 0, 7, h);
+}
+