#include "wx/renderer.h"
#include "wx/aui/auibook.h"
+#include "wx/aui/framemanager.h"
+#include "wx/aui/dockart.h"
#ifdef __WXMAC__
#include "wx/osx/private.h"
}
+void wxAuiGenericTabArt::DrawBorder(wxDC& dc, wxWindow* wnd, const wxRect& rect)
+{
+ int i, border_width = GetBorderWidth(wnd);
+
+ wxRect theRect(rect);
+ for (i = 0; i < border_width; ++i)
+ {
+ dc.DrawRectangle(theRect.x, theRect.y, theRect.width, theRect.height);
+ theRect.Deflate(1);
+ }
+}
+
void wxAuiGenericTabArt::DrawBackground(wxDC& dc,
wxWindow* WXUNUSED(wnd),
const wxRect& rect)
return 5;
}
+int wxAuiGenericTabArt::GetBorderWidth(wxWindow* wnd)
+{
+ wxAuiManager* mgr = wxAuiManager::GetManager(wnd);
+ if (mgr)
+ {
+ wxAuiDockArt* art = mgr->GetArtProvider();
+ if (art)
+ return art->GetMetric(wxAUI_DOCKART_PANE_BORDER_SIZE);
+ }
+ return 1;
+}
+
+int wxAuiGenericTabArt::GetAdditionalBorderSpace(wxWindow* WXUNUSED(wnd))
+{
+ return 0;
+}
+
wxSize wxAuiGenericTabArt::GetTabSize(wxDC& dc,
wxWindow* WXUNUSED(wnd),
const wxString& caption,
m_selectedBkPen = wxPen(colour);
}
+void wxAuiSimpleTabArt::DrawBorder(wxDC& dc, wxWindow* wnd, const wxRect& rect)
+{
+ int i, border_width = GetBorderWidth(wnd);
+
+ wxRect theRect(rect);
+ for (i = 0; i < border_width; ++i)
+ {
+ dc.DrawRectangle(theRect.x, theRect.y, theRect.width, theRect.height);
+ theRect.Deflate(1);
+ }
+}
+
void wxAuiSimpleTabArt::DrawBackground(wxDC& dc,
wxWindow* WXUNUSED(wnd),
const wxRect& rect)
return 0;
}
+int wxAuiSimpleTabArt::GetBorderWidth(wxWindow* wnd)
+{
+ wxAuiManager* mgr = wxAuiManager::GetManager(wnd);
+ if (mgr)
+ {
+ wxAuiDockArt* art = mgr->GetArtProvider();
+ if (art)
+ return art->GetMetric(wxAUI_DOCKART_PANE_BORDER_SIZE);
+ }
+ return 1;
+}
+
+int wxAuiSimpleTabArt::GetAdditionalBorderSpace(wxWindow* WXUNUSED(wnd))
+{
+ return 0;
+}
+
wxSize wxAuiSimpleTabArt::GetTabSize(wxDC& dc,
wxWindow* WXUNUSED(wnd),
const wxString& caption,