Game Develop Core: AuiTabArt.h Source File

| Game Develop Core Core library for developing platforms and tools compatible with Game Develop.

- Main Page
- Modules
- Classes

- File List
- File Members

All Classes Files Functions Variables Typedefs Enumerations Macros Groups Pages
AuiTabArt.h
Go to the documentation of this file.
1
5 #if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
6 #ifndef GDAUITABART_H
7 #define GDAUITABART_H
8 #include <wx/aui/auibook.h>
9
10 namespace gd
11 {
12
24 class AuiTabArt : public wxAuiTabArt
25 {
26
27 public:
28 AuiTabArt();
29 virtual ~AuiTabArt();
30
31 wxAuiTabArt* Clone();
32 void SetFlags(unsigned int flags);
33 void SetSizingInfo(const wxSize& tab_ctrl_size,
34 size_t tab_count);
35
36 void SetNormalFont(const wxFont& font);
37 void SetSelectedFont(const wxFont& font);
38 void SetMeasuringFont(const wxFont& font);
39
40 virtual void SetColour(const wxColour& colour);
41 virtual void SetActiveColour(const wxColour& colour);
42
43 virtual void DrawBorder( wxDC& dc,wxWindow* wnd, const wxRect& rect);
44
45 virtual int GetBorderWidth( wxWindow* wnd) { return 1; }
46
47 virtual int GetAdditionalBorderSpace( wxWindow* wnd) { return 0; }
48
49 void DrawBackground(
50 wxDC& dc,
51 wxWindow* wnd,
52 const wxRect& rect);
53
54 void DrawTab(wxDC& dc,
55 wxWindow* wnd,
56 const wxAuiNotebookPage& pane,
57 const wxRect& in_rect,
58 int close_button_state,
59 wxRect* out_tab_rect,
60 wxRect* out_button_rect,
61 int* x_extent);
62
63 void DrawButton(
64 wxDC& dc,
65 wxWindow* wnd,
66 const wxRect& in_rect,
67 int bitmap_id,
68 int button_state,
69 int orientation,
70 wxRect* out_rect);
71
72 void DisableBackgroundGradient(bool disable = true) { noBgGradient = disable; }
73
74 int GetIndentSize();
75
76 wxSize GetTabSize(
77 wxDC& dc,
78 wxWindow* wnd,
79 const wxString& caption,
80 const wxBitmap& bitmap,
81 bool active,
82 int close_button_state,
83 int* x_extent);
84
85 int ShowDropDown(
86 wxWindow* wnd,
87 const wxAuiNotebookPageArray& items,
88 int active_idx);
89
90 int GetBestTabCtrlSize(wxWindow* wnd,
91 const wxAuiNotebookPageArray& pages,
92 const wxSize& required_bmp_size);
93
94 protected:
95
96 wxFont m_normal_font;
97 wxFont m_selected_font;
98 wxFont m_measuring_font;
99 wxColour m_active_colour;
100 wxColour m_base_colour;
101 wxPen m_base_colour_pen;
102 wxPen m_border_pen;
103 wxBrush m_base_colour_brush;
104 wxBitmap m_active_close_bmp;
105 wxBitmap m_disabled_close_bmp;
106 wxBitmap m_active_left_bmp;
107 wxBitmap m_disabled_left_bmp;
108 wxBitmap m_active_right_bmp;
109 wxBitmap m_disabled_right_bmp;
110 wxBitmap m_active_windowlist_bmp;
111 wxBitmap m_disabled_windowlist_bmp;
112
113 int m_fixed_tab_width;
114 int m_tab_ctrl_height;
115 unsigned int m_flags;
116 bool noBgGradient;
117 };
118
119
120 }
121
122 #endif // GDAUITABART_H
123 #endif