Code::Blocks  SVN r11506
notebookstyles.h
Go to the documentation of this file.
1 /*
2  * This file is part of the Code::Blocks IDE and licensed under the GNU Lesser General Public License, version 3
3  * http://www.gnu.org/licenses/lgpl-3.0.html
4  */
5 
6 #ifndef NOTEBOOKSTYLES_H
7 #define NOTEBOOKSTYLES_H
8 
9 #include "cbauibook.h"
10 
11 #if defined(__WXGTK__) && (USE_GTK_NOTEBOOK) && !wxCHECK_VERSION(3, 0, 0)
12  #define GSocket GLibSocket
13  #include <gtk/gtk.h>
14  #undef GSocket
15  #include <wx/artprov.h>
16 #endif
17 
18 
19 class wxDC;
20 class wxWindow;
21 class wxRect;
22 class wxString;
23 class wxBitmap;
24 
25 wxColor wxAuiStepColour(const wxColor& c, int percent);
26 
28 {
29 public:
30  NbStyleVC71();
31  wxAuiTabArt* Clone();
32 
33  void DrawTab(wxDC& dc, wxWindow* wnd, const wxAuiNotebookPage& page,
34  const wxRect& in_rect, int close_button_state,
35  wxRect* out_tab_rect, wxRect* out_button_rect,
36  int* x_extent);
37 
38  int GetBestTabCtrlSize(wxWindow* wnd, const wxAuiNotebookPageArray& pages,
39  const wxSize& required_bmp_size);
40 };
41 
43 {
44 public:
45  NbStyleFF2();
46  wxAuiTabArt* Clone();
47  void DrawTab(wxDC& dc, wxWindow* wnd, const wxAuiNotebookPage& page,
48  const wxRect& in_rect, int close_button_state,
49  wxRect* out_tab_rect, wxRect* out_button_rect,
50  int* x_extent);
51 
52  int GetBestTabCtrlSize(wxWindow* wnd, const wxAuiNotebookPageArray& pages,
53  const wxSize& required_bmp_size);
54 };
55 
56 #if defined(__WXGTK__) && (USE_GTK_NOTEBOOK) && !wxCHECK_VERSION(3, 0, 0)
57 class NbStyleGTK : public wxAuiDefaultTabArt
58 {
59 public:
60  NbStyleGTK();
61 
62  virtual wxAuiTabArt* Clone();
63  virtual void DrawBackground(wxDC& dc, wxWindow* wnd, const wxRect& rect);
64  virtual void DrawTab(wxDC& dc,
65  wxWindow* wnd,
66  const wxAuiNotebookPage& page,
67  const wxRect& in_rect,
68  int close_button_state,
69  wxRect* out_tab_rect,
70  wxRect* out_button_rect,
71  int* x_extent);
72  void DrawButton(wxDC& dc, wxWindow* wnd, const wxRect& in_rect, int bitmap_id,
73  int button_state, int orientation, wxRect* out_rect);
74  int GetBestTabCtrlSize(wxWindow* wnd, const wxAuiNotebookPageArray& pages,
75  const wxSize& required_bmp_size);
76  virtual wxSize GetTabSize(wxDC& dc, wxWindow* wnd, const wxString& caption, const wxBitmap& bitmap, bool active,
77  int close_button_state, int* x_extent);
78 private:
79  int m_Xthickness;
80  int m_Ythickness;
81  int m_TabHBorder;
82  int m_TabVBorder;
83  wxBitmap m_ActiveCloseButton;
84 };
85 #endif // #if defined(__WXGTK__) && (USE_GTK_NOTEBOOK) && !wxCHECK_VERSION(3, 0, 0)
86 
87 #endif // NOTEBOOKSTYLES_H
void DrawButton(wxDC &dc, wxWindow *wnd, const wxRect &inRect, int bitmapId, int buttonState, int orientation, wxRect *outRect)
wxSize GetTabSize(wxDC &dc, wxWindow *wnd, const wxString &caption, const wxBitmap &bitmap, bool active, int closeButtonState, int *xExtent)
int GetBestTabCtrlSize(wxWindow *wnd, const wxAuiNotebookPageArray &pages, const wxSize &required_bmp_size)
wxColor wxAuiStepColour(const wxColor &c, int percent)
wxAuiTabArt * Clone()
void DrawBackground(wxDC &dc, wxWindow *wnd, const wxRect &rect)
void DrawTab(wxDC &dc, wxWindow *wnd, const wxAuiNotebookPage &page, const wxRect &in_rect, int close_button_state, wxRect *out_tab_rect, wxRect *out_button_rect, int *x_extent)