-// tab art class
-
-class WXDLLIMPEXP_AUI wxAuiTabArt
-{
-public:
-
- wxAuiTabArt() { }
- virtual ~wxAuiTabArt() { }
-
- virtual wxAuiTabArt* Clone() = 0;
- virtual void SetFlags(unsigned int flags) = 0;
-
- virtual void SetSizingInfo(const wxSize& tabCtrlSize,
- size_t tabCount) = 0;
-
- virtual void SetNormalFont(const wxFont& font) = 0;
- virtual void SetSelectedFont(const wxFont& font) = 0;
- virtual void SetMeasuringFont(const wxFont& font) = 0;
- virtual void SetColour(const wxColour& colour) = 0;
- virtual void SetActiveColour(const wxColour& colour) = 0;
-
- virtual void DrawBackground(
- wxDC& dc,
- wxWindow* wnd,
- const wxRect& rect) = 0;
-
- virtual void DrawTab(wxDC& dc,
- wxWindow* wnd,
- const wxAuiNotebookPage& pane,
- const wxRect& inRect,
- int closeButtonState,
- wxRect* outTabRect,
- wxRect* outButtonRect,
- int* xExtent) = 0;
-
- virtual void DrawButton(
- wxDC& dc,
- wxWindow* wnd,
- const wxRect& inRect,
- int bitmapId,
- int buttonState,
- int orientation,
- wxRect* outRect) = 0;
-
- virtual wxSize GetTabSize(
- wxDC& dc,
- wxWindow* wnd,
- const wxString& caption,
- const wxBitmap& bitmap,
- bool active,
- int closeButtonState,
- int* xExtent) = 0;
-
- virtual int ShowDropDown(
- wxWindow* wnd,
- const wxAuiNotebookPageArray& items,
- int activeIdx) = 0;
-
- virtual int GetIndentSize() = 0;
-
- virtual int GetBestTabCtrlSize(
- wxWindow* wnd,
- const wxAuiNotebookPageArray& pages,
- const wxSize& requiredBmpSize) = 0;
-};
-
-
-class WXDLLIMPEXP_AUI wxAuiDefaultTabArt : public wxAuiTabArt
-{
-
-public:
-
- wxAuiDefaultTabArt();
- virtual ~wxAuiDefaultTabArt();
-
- wxAuiTabArt* Clone();
- void SetFlags(unsigned int flags);
- void SetSizingInfo(const wxSize& tabCtrlSize,
- size_t tabCount);
-
- void SetNormalFont(const wxFont& font);
- void SetSelectedFont(const wxFont& font);
- void SetMeasuringFont(const wxFont& font);
- void SetColour(const wxColour& colour);
- void SetActiveColour(const wxColour& colour);
-
- void DrawBackground(
- wxDC& dc,
- wxWindow* wnd,
- const wxRect& rect);
-
- void DrawTab(wxDC& dc,
- wxWindow* wnd,
- const wxAuiNotebookPage& pane,
- const wxRect& inRect,
- int closeButtonState,
- wxRect* outTabRect,
- wxRect* outButtonRect,
- int* xExtent);
-
- void DrawButton(
- wxDC& dc,
- wxWindow* wnd,
- const wxRect& inRect,
- int bitmapId,
- int buttonState,
- int orientation,
- wxRect* outRect);
-
- int GetIndentSize();
-
- wxSize GetTabSize(
- wxDC& dc,
- wxWindow* wnd,
- const wxString& caption,
- const wxBitmap& bitmap,
- bool active,
- int closeButtonState,
- int* xExtent);
-
- int ShowDropDown(
- wxWindow* wnd,
- const wxAuiNotebookPageArray& items,
- int activeIdx);
-
- int GetBestTabCtrlSize(wxWindow* wnd,
- const wxAuiNotebookPageArray& pages,
- const wxSize& requiredBmpSize);
-
-protected:
-
- wxFont m_normalFont;
- wxFont m_selectedFont;
- wxFont m_measuringFont;
- wxColour m_baseColour;
- wxPen m_baseColourPen;
- wxPen m_borderPen;
- wxBrush m_baseColourBrush;
- wxColour m_activeColour;
- wxBitmap m_activeCloseBmp;
- wxBitmap m_disabledCloseBmp;
- wxBitmap m_activeLeftBmp;
- wxBitmap m_disabledLeftBmp;
- wxBitmap m_activeRightBmp;
- wxBitmap m_disabledRightBmp;
- wxBitmap m_activeWindowListBmp;
- wxBitmap m_disabledWindowListBmp;
-
- int m_fixedTabWidth;
- int m_tabCtrlHeight;
- unsigned int m_flags;
-};
-
-
-class WXDLLIMPEXP_AUI wxAuiSimpleTabArt : public wxAuiTabArt
-{
-
-public:
-
- wxAuiSimpleTabArt();
- virtual ~wxAuiSimpleTabArt();
-
- wxAuiTabArt* Clone();
- void SetFlags(unsigned int flags);
-
- void SetSizingInfo(const wxSize& tabCtrlSize,
- size_t tabCount);
-
- void SetNormalFont(const wxFont& font);
- void SetSelectedFont(const wxFont& font);
- void SetMeasuringFont(const wxFont& font);
- void SetColour(const wxColour& colour);
- void SetActiveColour(const wxColour& colour);
-
- void DrawBackground(
- wxDC& dc,
- wxWindow* wnd,
- const wxRect& rect);
-
- void DrawTab(wxDC& dc,
- wxWindow* wnd,
- const wxAuiNotebookPage& pane,
- const wxRect& inRect,
- int closeButtonState,
- wxRect* outTabRect,
- wxRect* outButtonRect,
- int* xExtent);
-
- void DrawButton(
- wxDC& dc,
- wxWindow* wnd,
- const wxRect& inRect,
- int bitmapId,
- int buttonState,
- int orientation,
- wxRect* outRect);
-
- int GetIndentSize();
-
- wxSize GetTabSize(
- wxDC& dc,
- wxWindow* wnd,
- const wxString& caption,
- const wxBitmap& bitmap,
- bool active,
- int closeButtonState,
- int* xExtent);
-
- int ShowDropDown(
- wxWindow* wnd,
- const wxAuiNotebookPageArray& items,
- int activeIdx);
-
- int GetBestTabCtrlSize(wxWindow* wnd,
- const wxAuiNotebookPageArray& pages,
- const wxSize& requiredBmpSize);
-
-protected:
-
- wxFont m_normalFont;
- wxFont m_selectedFont;
- wxFont m_measuringFont;
- wxPen m_normalBkPen;
- wxPen m_selectedBkPen;
- wxBrush m_normalBkBrush;
- wxBrush m_selectedBkBrush;
- wxBrush m_bkBrush;
- wxBitmap m_activeCloseBmp;
- wxBitmap m_disabledCloseBmp;
- wxBitmap m_activeLeftBmp;
- wxBitmap m_disabledLeftBmp;
- wxBitmap m_activeRightBmp;
- wxBitmap m_disabledRightBmp;
- wxBitmap m_activeWindowListBmp;
- wxBitmap m_disabledWindowListBmp;
-
- int m_fixedTabWidth;
- unsigned int m_flags;
-};
-
-
-
-
-
-
-
-
-