]>
Commit | Line | Data |
---|---|---|
499b2ed8 JS |
1 | % |
2 | % automatically generated by HelpGen $Revision$ from | |
4cbc57f0 | 3 | % toolwnd.h at 21/Jan/02 21:14:17 |
499b2ed8 JS |
4 | % |
5 | ||
6 | ||
7 | \section{\class{wxToolWindow}}\label{wxtoolwindow} | |
8 | ||
4cbc57f0 JS |
9 | |
10 | A tool window is a special kind of frame that paints its own title, and | |
11 | can be used to implement small floating windows. | |
12 | ||
499b2ed8 JS |
13 | \wxheading{Derived from} |
14 | ||
15 | \helpref{wxFrame}{wxframe} | |
16 | ||
4cbc57f0 JS |
17 | \wxheading{Include files} |
18 | ||
19 | <toolwnd.h> | |
20 | ||
499b2ed8 JS |
21 | \wxheading{Data structures} |
22 | ||
23 | \latexignore{\rtfignore{\wxheading{Members}}} | |
24 | ||
25 | ||
26 | \membersection{wxToolWindow::wxToolWindow}\label{wxtoolwindowwxtoolwindow} | |
27 | ||
28 | \func{}{wxToolWindow}{\void} | |
29 | ||
4cbc57f0 JS |
30 | Default constructor. |
31 | ||
499b2ed8 JS |
32 | |
33 | \membersection{wxToolWindow::\destruct{wxToolWindow}}\label{wxtoolwindowdtor} | |
34 | ||
35 | \func{}{\destruct{wxToolWindow}}{\void} | |
36 | ||
4cbc57f0 JS |
37 | Destructor. |
38 | ||
499b2ed8 JS |
39 | |
40 | \membersection{wxToolWindow::AddMiniButton}\label{wxtoolwindowaddminibutton} | |
41 | ||
42 | \func{void}{AddMiniButton}{\param{cbMiniButton* }{pBtn}} | |
43 | ||
4cbc57f0 | 44 | Adds a button. Buttons are added in right-to-left order. |
499b2ed8 JS |
45 | |
46 | ||
47 | \membersection{wxToolWindow::AdjustRectPos}\label{wxtoolwindowadjustrectpos} | |
48 | ||
49 | \func{void}{AdjustRectPos}{\param{const wxRect\& }{original}, \param{const wxSize\& }{newDim}, \param{wxRect\& }{newRect}} | |
50 | ||
4cbc57f0 JS |
51 | Helper function. |
52 | ||
499b2ed8 JS |
53 | |
54 | \membersection{wxToolWindow::CalcResizedRect}\label{wxtoolwindowcalcresizedrect} | |
55 | ||
56 | \func{void}{CalcResizedRect}{\param{wxRect\& }{rect}, \param{wxPoint\& }{delta}, \param{const wxSize\& }{minDim}} | |
57 | ||
4cbc57f0 JS |
58 | Calculate resized rectangle. |
59 | ||
499b2ed8 JS |
60 | |
61 | \membersection{wxToolWindow::DrawHintRect}\label{wxtoolwindowdrawhintrect} | |
62 | ||
63 | \func{void}{DrawHintRect}{\param{const wxRect\& }{r}} | |
64 | ||
4cbc57f0 JS |
65 | Draws the hint rectangle. |
66 | ||
499b2ed8 JS |
67 | |
68 | \membersection{wxToolWindow::GetClient}\label{wxtoolwindowgetclient} | |
69 | ||
70 | \func{wxWindow*}{GetClient}{\void} | |
71 | ||
4cbc57f0 JS |
72 | Returns the client window. |
73 | ||
499b2ed8 JS |
74 | |
75 | \membersection{wxToolWindow::GetMinimalWndDim}\label{wxtoolwindowgetminimalwnddim} | |
76 | ||
77 | \func{wxSize}{GetMinimalWndDim}{\void} | |
78 | ||
4cbc57f0 JS |
79 | Helper function. |
80 | ||
499b2ed8 JS |
81 | |
82 | \membersection{wxToolWindow::GetPreferredSize}\label{wxtoolwindowgetpreferredsize} | |
83 | ||
84 | \func{wxSize}{GetPreferredSize}{\param{const wxSize\& }{given}} | |
85 | ||
4cbc57f0 | 86 | Returns the preferred size for the window. |
499b2ed8 JS |
87 | |
88 | ||
89 | \membersection{wxToolWindow::GetScrMousePos}\label{wxtoolwindowgetscrmousepos} | |
90 | ||
91 | \func{void}{GetScrMousePos}{\param{wxMouseEvent\& }{event}, \param{wxPoint\& }{pos}} | |
92 | ||
4cbc57f0 JS |
93 | Gets the mouse position in screen coordinates. |
94 | ||
499b2ed8 JS |
95 | |
96 | \membersection{wxToolWindow::GetScrWindowRect}\label{wxtoolwindowgetscrwindowrect} | |
97 | ||
98 | \func{void}{GetScrWindowRect}{\param{wxRect\& }{r}} | |
99 | ||
4cbc57f0 JS |
100 | Maps client coordinates to screen coordinates. |
101 | ||
499b2ed8 JS |
102 | |
103 | \membersection{wxToolWindow::HandleTitleClick}\label{wxtoolwindowhandletitleclick} | |
104 | ||
105 | \func{bool}{HandleTitleClick}{\param{wxMouseEvent\& }{event}} | |
106 | ||
4cbc57f0 JS |
107 | Handles clicking on the title. By default, does nothing. |
108 | ||
499b2ed8 JS |
109 | |
110 | \membersection{wxToolWindow::HitTestWindow}\label{wxtoolwindowhittestwindow} | |
111 | ||
112 | \func{int}{HitTestWindow}{\param{wxMouseEvent\& }{event}} | |
113 | ||
4cbc57f0 JS |
114 | Tests if the mouse position is in this window. |
115 | ||
499b2ed8 JS |
116 | |
117 | \membersection{wxToolWindow::LayoutMiniButtons}\label{wxtoolwindowlayoutminibuttons} | |
118 | ||
119 | \func{void}{LayoutMiniButtons}{\void} | |
120 | ||
4cbc57f0 JS |
121 | Lays out the buttons. |
122 | ||
499b2ed8 JS |
123 | |
124 | \membersection{wxToolWindow::OnEraseBackground}\label{wxtoolwindowonerasebackground} | |
125 | ||
126 | \func{void}{OnEraseBackground}{\param{wxEraseEvent\& }{event}} | |
127 | ||
4cbc57f0 JS |
128 | Responds to an erase background event. |
129 | ||
499b2ed8 JS |
130 | |
131 | \membersection{wxToolWindow::OnLeftDown}\label{wxtoolwindowonleftdown} | |
132 | ||
133 | \func{void}{OnLeftDown}{\param{wxMouseEvent\& }{event}} | |
134 | ||
4cbc57f0 JS |
135 | Responds to a mouse left down event. |
136 | ||
499b2ed8 JS |
137 | |
138 | \membersection{wxToolWindow::OnLeftUp}\label{wxtoolwindowonleftup} | |
139 | ||
140 | \func{void}{OnLeftUp}{\param{wxMouseEvent\& }{event}} | |
141 | ||
4cbc57f0 JS |
142 | Responds to a mouse left up event. |
143 | ||
499b2ed8 JS |
144 | |
145 | \membersection{wxToolWindow::OnMiniButtonClicked}\label{wxtoolwindowonminibuttonclicked} | |
146 | ||
147 | \func{void}{OnMiniButtonClicked}{\param{int }{btnIdx}} | |
148 | ||
4cbc57f0 JS |
149 | Called when a mini button is clicked. |
150 | By default, does nothing. | |
151 | ||
499b2ed8 JS |
152 | |
153 | \membersection{wxToolWindow::OnMotion}\label{wxtoolwindowonmotion} | |
154 | ||
155 | \func{void}{OnMotion}{\param{wxMouseEvent\& }{event}} | |
156 | ||
4cbc57f0 JS |
157 | Responds to a mouse move event. |
158 | ||
499b2ed8 JS |
159 | |
160 | \membersection{wxToolWindow::OnPaint}\label{wxtoolwindowonpaint} | |
161 | ||
162 | \func{void}{OnPaint}{\param{wxPaintEvent\& }{event}} | |
163 | ||
4cbc57f0 JS |
164 | Responds to a paint event. |
165 | ||
499b2ed8 JS |
166 | |
167 | \membersection{wxToolWindow::OnSize}\label{wxtoolwindowonsize} | |
168 | ||
169 | \func{void}{OnSize}{\param{wxSizeEvent\& }{event}} | |
170 | ||
4cbc57f0 JS |
171 | Responds to a size event. |
172 | ||
499b2ed8 JS |
173 | |
174 | \membersection{wxToolWindow::SetClient}\label{wxtoolwindowsetclient} | |
175 | ||
176 | \func{void}{SetClient}{\param{wxWindow* }{pWnd}} | |
177 | ||
4cbc57f0 JS |
178 | Sets the client for this tool window. |
179 | ||
499b2ed8 JS |
180 | |
181 | \membersection{wxToolWindow::SetHintCursor}\label{wxtoolwindowsethintcursor} | |
182 | ||
183 | \func{void}{SetHintCursor}{\param{int }{type}} | |
184 | ||
4cbc57f0 JS |
185 | Sets the hint cursor. |
186 | ||
499b2ed8 JS |
187 | |
188 | \membersection{wxToolWindow::SetTitleFont}\label{wxtoolwindowsettitlefont} | |
189 | ||
190 | \func{void}{SetTitleFont}{\param{wxFont\& }{font}} | |
191 | ||
4cbc57f0 JS |
192 | Sets the title font. |
193 |