2 % automatically generated by HelpGen $Revision$ from
3 % toolwnd.h at 21/Jan/02 21:14:17
7 \section{\class{wxToolWindow
}}\label{wxtoolwindow
}
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.
13 \wxheading{Derived from
}
15 \helpref{wxFrame
}{wxframe
}
17 \wxheading{Include files
}
21 \wxheading{Data structures
}
23 \latexignore{\rtfignore{\wxheading{Members
}}}
26 \membersection{wxToolWindow::wxToolWindow
}\label{wxtoolwindowwxtoolwindow
}
28 \func{}{wxToolWindow
}{\void}
33 \membersection{wxToolWindow::
\destruct{wxToolWindow
}}\label{wxtoolwindowdtor
}
35 \func{}{\destruct{wxToolWindow
}}{\void}
40 \membersection{wxToolWindow::AddMiniButton
}\label{wxtoolwindowaddminibutton
}
42 \func{void
}{AddMiniButton
}{\param{cbMiniButton*
}{pBtn
}}
44 Adds a button. Buttons are added in right-to-left order.
47 \membersection{wxToolWindow::AdjustRectPos
}\label{wxtoolwindowadjustrectpos
}
49 \func{void
}{AdjustRectPos
}{\param{const wxRect\&
}{original
},
\param{const wxSize\&
}{newDim
},
\param{wxRect\&
}{newRect
}}
54 \membersection{wxToolWindow::CalcResizedRect
}\label{wxtoolwindowcalcresizedrect
}
56 \func{void
}{CalcResizedRect
}{\param{wxRect\&
}{rect
},
\param{wxPoint\&
}{delta
},
\param{const wxSize\&
}{minDim
}}
58 Calculate resized rectangle.
61 \membersection{wxToolWindow::DrawHintRect
}\label{wxtoolwindowdrawhintrect
}
63 \func{void
}{DrawHintRect
}{\param{const wxRect\&
}{r
}}
65 Draws the hint rectangle.
68 \membersection{wxToolWindow::GetClient
}\label{wxtoolwindowgetclient
}
70 \func{wxWindow*
}{GetClient
}{\void}
72 Returns the client window.
75 \membersection{wxToolWindow::GetMinimalWndDim
}\label{wxtoolwindowgetminimalwnddim
}
77 \func{wxSize
}{GetMinimalWndDim
}{\void}
82 \membersection{wxToolWindow::GetPreferredSize
}\label{wxtoolwindowgetpreferredsize
}
84 \func{wxSize
}{GetPreferredSize
}{\param{const wxSize\&
}{given
}}
86 Returns the preferred size for the window.
89 \membersection{wxToolWindow::GetScrMousePos
}\label{wxtoolwindowgetscrmousepos
}
91 \func{void
}{GetScrMousePos
}{\param{wxMouseEvent\&
}{event
},
\param{wxPoint\&
}{pos
}}
93 Gets the mouse position in screen coordinates.
96 \membersection{wxToolWindow::GetScrWindowRect
}\label{wxtoolwindowgetscrwindowrect
}
98 \func{void
}{GetScrWindowRect
}{\param{wxRect\&
}{r
}}
100 Maps client coordinates to screen coordinates.
103 \membersection{wxToolWindow::HandleTitleClick
}\label{wxtoolwindowhandletitleclick
}
105 \func{bool
}{HandleTitleClick
}{\param{wxMouseEvent\&
}{event
}}
107 Handles clicking on the title. By default, does nothing.
110 \membersection{wxToolWindow::HitTestWindow
}\label{wxtoolwindowhittestwindow
}
112 \func{int
}{HitTestWindow
}{\param{wxMouseEvent\&
}{event
}}
114 Tests if the mouse position is in this window.
117 \membersection{wxToolWindow::LayoutMiniButtons
}\label{wxtoolwindowlayoutminibuttons
}
119 \func{void
}{LayoutMiniButtons
}{\void}
121 Lays out the buttons.
124 \membersection{wxToolWindow::OnEraseBackground
}\label{wxtoolwindowonerasebackground
}
126 \func{void
}{OnEraseBackground
}{\param{wxEraseEvent\&
}{event
}}
128 Responds to an erase background event.
131 \membersection{wxToolWindow::OnLeftDown
}\label{wxtoolwindowonleftdown
}
133 \func{void
}{OnLeftDown
}{\param{wxMouseEvent\&
}{event
}}
135 Responds to a mouse left down event.
138 \membersection{wxToolWindow::OnLeftUp
}\label{wxtoolwindowonleftup
}
140 \func{void
}{OnLeftUp
}{\param{wxMouseEvent\&
}{event
}}
142 Responds to a mouse left up event.
145 \membersection{wxToolWindow::OnMiniButtonClicked
}\label{wxtoolwindowonminibuttonclicked
}
147 \func{void
}{OnMiniButtonClicked
}{\param{int
}{btnIdx
}}
149 Called when a mini button is clicked.
150 By default, does nothing.
153 \membersection{wxToolWindow::OnMotion
}\label{wxtoolwindowonmotion
}
155 \func{void
}{OnMotion
}{\param{wxMouseEvent\&
}{event
}}
157 Responds to a mouse move event.
160 \membersection{wxToolWindow::OnPaint
}\label{wxtoolwindowonpaint
}
162 \func{void
}{OnPaint
}{\param{wxPaintEvent\&
}{event
}}
164 Responds to a paint event.
167 \membersection{wxToolWindow::OnSize
}\label{wxtoolwindowonsize
}
169 \func{void
}{OnSize
}{\param{wxSizeEvent\&
}{event
}}
171 Responds to a size event.
174 \membersection{wxToolWindow::SetClient
}\label{wxtoolwindowsetclient
}
176 \func{void
}{SetClient
}{\param{wxWindow*
}{pWnd
}}
178 Sets the client for this tool window.
181 \membersection{wxToolWindow::SetHintCursor
}\label{wxtoolwindowsethintcursor
}
183 \func{void
}{SetHintCursor
}{\param{int
}{type
}}
185 Sets the hint cursor.
188 \membersection{wxToolWindow::SetTitleFont
}\label{wxtoolwindowsettitlefont
}
190 \func{void
}{SetTitleFont
}{\param{wxFont\&
}{font
}}