2002-01-05 17:59:59 -05:00
|
|
|
%
|
|
|
|
% automatically generated by HelpGen $Revision$ from
|
2002-01-21 17:34:42 -05:00
|
|
|
% toolwnd.h at 21/Jan/02 21:14:17
|
2002-01-05 17:59:59 -05:00
|
|
|
%
|
|
|
|
|
|
|
|
|
|
|
|
\section{\class{wxToolWindow}}\label{wxtoolwindow}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
|
|
|
|
A tool window is a special kind of frame that paints its own title, and
|
|
|
|
can be used to implement small floating windows.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
\wxheading{Derived from}
|
|
|
|
|
|
|
|
\helpref{wxFrame}{wxframe}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
\wxheading{Include files}
|
|
|
|
|
2002-01-31 15:57:31 -05:00
|
|
|
<wx/fl/toolwnd.h>
|
2002-01-21 17:34:42 -05:00
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
\wxheading{Data structures}
|
|
|
|
|
|
|
|
\latexignore{\rtfignore{\wxheading{Members}}}
|
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxToolWindow::wxToolWindow}\label{wxtoolwindowwxtoolwindow}
|
|
|
|
|
|
|
|
\func{}{wxToolWindow}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Default constructor.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::\destruct{wxToolWindow}}\label{wxtoolwindowdtor}
|
|
|
|
|
|
|
|
\func{}{\destruct{wxToolWindow}}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Destructor.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::AddMiniButton}\label{wxtoolwindowaddminibutton}
|
|
|
|
|
|
|
|
\func{void}{AddMiniButton}{\param{cbMiniButton* }{pBtn}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Adds a button. Buttons are added in right-to-left order.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxToolWindow::AdjustRectPos}\label{wxtoolwindowadjustrectpos}
|
|
|
|
|
|
|
|
\func{void}{AdjustRectPos}{\param{const wxRect\& }{original}, \param{const wxSize\& }{newDim}, \param{wxRect\& }{newRect}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Helper function.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::CalcResizedRect}\label{wxtoolwindowcalcresizedrect}
|
|
|
|
|
|
|
|
\func{void}{CalcResizedRect}{\param{wxRect\& }{rect}, \param{wxPoint\& }{delta}, \param{const wxSize\& }{minDim}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Calculate resized rectangle.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::DrawHintRect}\label{wxtoolwindowdrawhintrect}
|
|
|
|
|
|
|
|
\func{void}{DrawHintRect}{\param{const wxRect\& }{r}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Draws the hint rectangle.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::GetClient}\label{wxtoolwindowgetclient}
|
|
|
|
|
|
|
|
\func{wxWindow*}{GetClient}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the client window.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::GetMinimalWndDim}\label{wxtoolwindowgetminimalwnddim}
|
|
|
|
|
|
|
|
\func{wxSize}{GetMinimalWndDim}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Helper function.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::GetPreferredSize}\label{wxtoolwindowgetpreferredsize}
|
|
|
|
|
|
|
|
\func{wxSize}{GetPreferredSize}{\param{const wxSize\& }{given}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Returns the preferred size for the window.
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
|
|
|
|
\membersection{wxToolWindow::GetScrMousePos}\label{wxtoolwindowgetscrmousepos}
|
|
|
|
|
|
|
|
\func{void}{GetScrMousePos}{\param{wxMouseEvent\& }{event}, \param{wxPoint\& }{pos}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Gets the mouse position in screen coordinates.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::GetScrWindowRect}\label{wxtoolwindowgetscrwindowrect}
|
|
|
|
|
|
|
|
\func{void}{GetScrWindowRect}{\param{wxRect\& }{r}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Maps client coordinates to screen coordinates.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::HandleTitleClick}\label{wxtoolwindowhandletitleclick}
|
|
|
|
|
|
|
|
\func{bool}{HandleTitleClick}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Handles clicking on the title. By default, does nothing.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::HitTestWindow}\label{wxtoolwindowhittestwindow}
|
|
|
|
|
|
|
|
\func{int}{HitTestWindow}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Tests if the mouse position is in this window.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::LayoutMiniButtons}\label{wxtoolwindowlayoutminibuttons}
|
|
|
|
|
|
|
|
\func{void}{LayoutMiniButtons}{\void}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Lays out the buttons.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::OnEraseBackground}\label{wxtoolwindowonerasebackground}
|
|
|
|
|
|
|
|
\func{void}{OnEraseBackground}{\param{wxEraseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to an erase background event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::OnLeftDown}\label{wxtoolwindowonleftdown}
|
|
|
|
|
|
|
|
\func{void}{OnLeftDown}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to a mouse left down event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::OnLeftUp}\label{wxtoolwindowonleftup}
|
|
|
|
|
|
|
|
\func{void}{OnLeftUp}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to a mouse left up event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::OnMiniButtonClicked}\label{wxtoolwindowonminibuttonclicked}
|
|
|
|
|
|
|
|
\func{void}{OnMiniButtonClicked}{\param{int }{btnIdx}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Called when a mini button is clicked.
|
|
|
|
By default, does nothing.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::OnMotion}\label{wxtoolwindowonmotion}
|
|
|
|
|
|
|
|
\func{void}{OnMotion}{\param{wxMouseEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to a mouse move event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::OnPaint}\label{wxtoolwindowonpaint}
|
|
|
|
|
|
|
|
\func{void}{OnPaint}{\param{wxPaintEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to a paint event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::OnSize}\label{wxtoolwindowonsize}
|
|
|
|
|
|
|
|
\func{void}{OnSize}{\param{wxSizeEvent\& }{event}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Responds to a size event.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::SetClient}\label{wxtoolwindowsetclient}
|
|
|
|
|
|
|
|
\func{void}{SetClient}{\param{wxWindow* }{pWnd}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Sets the client for this tool window.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::SetHintCursor}\label{wxtoolwindowsethintcursor}
|
|
|
|
|
|
|
|
\func{void}{SetHintCursor}{\param{int }{type}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Sets the hint cursor.
|
|
|
|
|
2002-01-05 17:59:59 -05:00
|
|
|
|
|
|
|
\membersection{wxToolWindow::SetTitleFont}\label{wxtoolwindowsettitlefont}
|
|
|
|
|
|
|
|
\func{void}{SetTitleFont}{\param{wxFont\& }{font}}
|
|
|
|
|
2002-01-21 17:34:42 -05:00
|
|
|
Sets the title font.
|
|
|
|
|