X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4758baf5eb87bd1f1251a21e3fa8e5d658b9a3b6..8e77fd8bca165aab9709649d79a7cbc6a172d4e1:/include/wx/aui/tabart.h diff --git a/include/wx/aui/tabart.h b/include/wx/aui/tabart.h index e1418f2743..4a449678ac 100644 --- a/include/wx/aui/tabart.h +++ b/include/wx/aui/tabart.h @@ -4,7 +4,7 @@ // Author: Benjamin I. Williams // Modified by: Jens Lody (extracted from wx/aui/auibook.h) // Created: 2012-03-21 -// RCS-ID: $Id:$ +// RCS-ID: $Id$ // Copyright: (C) Copyright 2006, Kirix Corporation, All Rights Reserved. // Licence: wxWindows Library Licence, Version 3.1 /////////////////////////////////////////////////////////////////////////////// @@ -56,6 +56,11 @@ public: virtual void SetColour(const wxColour& colour) = 0; virtual void SetActiveColour(const wxColour& colour) = 0; + virtual void DrawBorder( + wxDC& dc, + wxWindow* wnd, + const wxRect& rect) = 0; + virtual void DrawBackground( wxDC& dc, wxWindow* wnd, @@ -95,6 +100,12 @@ public: virtual int GetIndentSize() = 0; + virtual int GetBorderWidth( + wxWindow* wnd) = 0; + + virtual int GetAdditionalBorderSpace( + wxWindow* wnd) = 0; + virtual int GetBestTabCtrlSize( wxWindow* wnd, const wxAuiNotebookPageArray& pages, @@ -121,6 +132,11 @@ public: void SetColour(const wxColour& colour); void SetActiveColour(const wxColour& colour); + void DrawBorder( + wxDC& dc, + wxWindow* wnd, + const wxRect& rect); + void DrawBackground( wxDC& dc, wxWindow* wnd, @@ -146,6 +162,12 @@ public: int GetIndentSize(); + int GetBorderWidth( + wxWindow* wnd); + + int GetAdditionalBorderSpace( + wxWindow* wnd); + wxSize GetTabSize( wxDC& dc, wxWindow* wnd, @@ -209,6 +231,11 @@ public: void SetColour(const wxColour& colour); void SetActiveColour(const wxColour& colour); + void DrawBorder( + wxDC& dc, + wxWindow* wnd, + const wxRect& rect); + void DrawBackground( wxDC& dc, wxWindow* wnd, @@ -234,6 +261,12 @@ public: int GetIndentSize(); + int GetBorderWidth( + wxWindow* wnd); + + int GetAdditionalBorderSpace( + wxWindow* wnd); + wxSize GetTabSize( wxDC& dc, wxWindow* wnd, @@ -275,7 +308,17 @@ protected: unsigned int m_flags; }; -#define wxAuiDefaultTabArt wxAuiGenericTabArt +#ifndef __WXUNIVERSAL__ + #if defined(__WXGTK20__) && !defined(__WXGTK3__) + #define wxHAS_NATIVE_TABART + #include "wx/aui/tabartgtk.h" + #define wxAuiDefaultTabArt wxAuiGtkTabArt + #endif +#endif // !__WXUNIVERSAL__ + +#ifndef wxHAS_NATIVE_TABART + #define wxAuiDefaultTabArt wxAuiGenericTabArt +#endif #endif // wxUSE_AUI