]> git.saurik.com Git - wxWidgets.git/blame - interface/aui/dockart.h
adjusted indentation with astyle; added Id keyword
[wxWidgets.git] / interface / aui / dockart.h
CommitLineData
23324ae1
FM
1/////////////////////////////////////////////////////////////////////////////
2// Name: aui/dockart.h
3// Purpose: documentation for wxAuiDockArt class
4// Author: wxWidgets team
5// RCS-ID: $Id$
6// Licence: wxWindows license
7/////////////////////////////////////////////////////////////////////////////
8
9/**
10 @class wxAuiDockArt
11 @headerfile dockart.h wx/aui/dockart.h
7c913512 12
23324ae1
FM
13 wxAuiDockArt is part of the wxAUI class framework.
14 See also @ref overview_wxauioverview "wxAUI overview".
7c913512 15
23324ae1
FM
16 Dock art provider code - a dock provider provides all drawing
17 functionality to the wxAui dock manager. This allows the dock
18 manager to have a plugable look-and-feel.
7c913512 19
23324ae1
FM
20 By default, a wxAuiManager uses an
21 instance of this class called @b wxAuiDefaultDockArt which
22 provides bitmap art and a colour scheme that is adapted to
23 the major platforms' look. You can either derive from that
24 class to alter its behaviour or write a completely new dock
25 art class. Call wxAuiManager::SetArtProvider
26 to make use this new dock art.
7c913512 27
23324ae1
FM
28 @library{wxaui}
29 @category{aui}
7c913512 30
23324ae1
FM
31 @seealso
32 wxAuiManager, wxAuiPaneInfo
33*/
7c913512 34class wxAuiDockArt
23324ae1
FM
35{
36public:
37 /**
38 Constructor.
39 */
40 wxAuiDockArt();
41
42 /**
43 Destructor.
44 */
45 ~wxAuiDockArt();
46
47 /**
48 Draws a background.
49 */
50 virtual void DrawBackground(wxDC& dc, wxWindow* window,
51 int orientation,
52 const wxRect& rect);
53
54 /**
55 Draws a border.
56 */
57 virtual void DrawBorder(wxDC& dc, wxWindow* window,
58 const wxRect& rect,
59 wxAuiPaneInfo& pane);
60
61 /**
62 Draws a caption.
63 */
64 virtual void DrawCaption(wxDC& dc, wxWindow* window,
65 const wxString& text,
66 const wxRect& rect,
67 wxAuiPaneInfo& pane);
68
69 /**
70 Draws a gripper.
71 */
72 virtual void DrawGripper(wxDC& dc, wxWindow* window,
73 const wxRect& rect,
74 wxAuiPaneInfo& pane);
75
76 /**
77 Draws a button in the pane's title bar.
78
79 @e button can be one of the values of @b wxAuiButtonId.
80
81 @e button_state can be one of the values of @b wxAuiPaneButtonState.
82 */
83 virtual void DrawPaneButton(wxDC& dc, wxWindow* window,
84 int button,
85 int button_state,
86 const wxRect& rect,
87 wxAuiPaneInfo& pane);
88
89 /**
90 Draws a sash between two windows.
91 */
92 virtual void DrawSash(wxDC& dc, wxWindow* window,
93 int orientation,
94 const wxRect& rect);
95
96 /**
97 The same as GetColour().
98 */
99 virtual wxColour GetColor(int id);
100
101 /**
102 Get the colour of a certain setting.
103
104 @e id can be one of the colour values of @b wxAuiPaneDockArtSetting.
105 */
106 virtual wxColour GetColour(int id);
107
108 /**
109 Get a font setting.
110 */
111 virtual wxFont GetFont(int id);
112
113 /**
114 Get the value of a certain setting.
115
116 @e id can be one of the size values of @b wxAuiPaneDockArtSetting.
117 */
118 virtual int GetMetric(int id);
119
120 /**
121 The same as SetColour().
122 */
123 virtual void SetColor(int id, const wxColour& color);
124
125 /**
126 Set a certain setting with the value @e colour.
127
128 @e id can be one of the colour values of @b wxAuiPaneDockArtSetting.
129 */
130 virtual void SetColour(int id, const wxColor& colour);
131
132 /**
133 Set a font setting.
134 */
135 virtual void SetFont(int id, const wxFont& font);
136
137 /**
138 Set a certain setting with the value @e new_val.
139
140 @e id can be one of the size values of @b wxAuiPaneDockArtSetting.
141 */
142 virtual void SetMetric(int id, int new_val);
143};