]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/gauge.tex
Commited FRM's stockitem patch (empty stock items).
[wxWidgets.git] / docs / latex / wx / gauge.tex
CommitLineData
a660d684
KB
1\section{\class{wxGauge}}\label{wxgauge}
2
3A gauge is a horizontal or vertical bar which shows a quantity (often time).
4There are no user commands for the gauge.
5
6\wxheading{Derived from}
7
8\helpref{wxControl}{wxcontrol}\\
9\helpref{wxWindow}{wxwindow}\\
9dff4182 10\helpref{wxEvtHandler}{wxevthandler}\\
a660d684
KB
11\helpref{wxObject}{wxobject}
12
954b8ae6
JS
13\wxheading{Include files}
14
15<wx/gauge.h>
16
a660d684
KB
17\wxheading{Window styles}
18
19\twocolwidtha{5cm}
20\begin{twocollist}\itemsep=0pt
21\twocolitem{\windowstyle{wxGA\_HORIZONTAL}}{Creates a horizontal gauge.}
22\twocolitem{\windowstyle{wxGA\_VERTICAL}}{Creates a vertical gauge.}
0a4e3323
VZ
23%\twocolitem{\windowstyle{wxGA\_PROGRESSBAR}}{Obsolete, doesn't do anything any more}
24\twocolitem{\windowstyle{wxGA\_SMOOTH}}{Creates smooth progress bar with one pixel wide update step (not supported by all platforms).}
a660d684
KB
25\end{twocollist}
26
27See also \helpref{window styles overview}{windowstyles}.
28
5de76427
JS
29\wxheading{Event handling}
30
31wxGauge is read-only so generates no events.
32
a660d684
KB
33\wxheading{See also}
34
35\helpref{wxSlider}{wxslider}, \helpref{wxScrollBar}{wxscrollbar}
36
37\latexignore{\rtfignore{\wxheading{Members}}}
38
0a4e3323 39
f0e8a2d0 40\membersection{wxGauge::wxGauge}\label{wxgaugector}
a660d684
KB
41
42\func{}{wxGauge}{\void}
43
44Default constructor.
45
eaaa6a06
JS
46\func{}{wxGauge}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
47\param{int}{ range}, \param{const wxPoint\& }{ pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp
48\param{long}{ style = wxGA\_HORIZONTAL}, \param{const wxValidator\& }{validator = wxDefaultValidator}, \param{const wxString\& }{name = ``gauge"}}
a660d684
KB
49
50Constructor, creating and showing a gauge.
51
52\wxheading{Parameters}
53
54\docparam{parent}{Window parent.}
55
56\docparam{id}{Window identifier.}
57
58\docparam{range}{Integer range (maximum value) of the gauge.}
59
60\docparam{pos}{Window position.}
61
62\docparam{size}{Window size.}
63
64\docparam{style}{Gauge style. See \helpref{wxGauge}{wxgauge}.}
65
66\docparam{name}{Window name.}
67
a660d684
KB
68\wxheading{See also}
69
70\helpref{wxGauge::Create}{wxgaugecreate}
71
0a4e3323 72
f0e8a2d0 73\membersection{wxGauge::\destruct{wxGauge}}\label{wxgaugedtor}
a660d684
KB
74
75\func{}{\destruct{wxGauge}}{\void}
76
77Destructor, destroying the gauge.
78
0a4e3323 79
a660d684
KB
80\membersection{wxGauge::Create}\label{wxgaugecreate}
81
eaaa6a06
JS
82\func{bool}{Create}{\param{wxWindow* }{parent}, \param{wxWindowID }{id},\rtfsp
83\param{int}{ range}, \param{const wxPoint\& }{ pos = wxDefaultPosition}, \param{const wxSize\&}{ size = wxDefaultSize},\rtfsp
84\param{long}{ style = wxGA\_HORIZONTAL}, \param{const wxValidator\& }{validator = wxDefaultValidator}, \param{const wxString\& }{name = ``gauge"}}
a660d684 85
f0e8a2d0 86Creates the gauge for two-step construction. See \helpref{wxGauge::wxGauge}{wxgaugector}\rtfsp
a660d684
KB
87for further details.
88
0a4e3323 89
a660d684
KB
90\membersection{wxGauge::GetBezelFace}\label{wxgaugegetbezelface}
91
92\constfunc{int}{GetBezelFace}{\void}
93
94Returns the width of the 3D bezel face.
95
96\wxheading{Remarks}
97
0a4e3323 98This method is not implemented (returns $0$) for most platforms.
a660d684
KB
99
100\wxheading{See also}
101
102\helpref{wxGauge::SetBezelFace}{wxgaugesetbezelface}
103
0a4e3323 104
a660d684
KB
105\membersection{wxGauge::GetRange}\label{wxgaugegetrange}
106
107\constfunc{int}{GetRange}{\void}
108
109Returns the maximum position of the gauge.
110
0a4e3323
VZ
111\wxheading{Remarks}
112
113This method is not implemented (doesn't do anything) for most platforms.
114
a660d684
KB
115\wxheading{See also}
116
117\helpref{wxGauge::SetRange}{wxgaugesetrange}
118
0a4e3323 119
a660d684
KB
120\membersection{wxGauge::GetShadowWidth}\label{wxgaugegetshadowwidth}
121
122\constfunc{int}{GetShadowWidth}{\void}
123
124Returns the 3D shadow margin width.
125
126\wxheading{Remarks}
127
0a4e3323 128This method is not implemented (returns $0$) for most platforms.
a660d684
KB
129
130\wxheading{See also}
131
132\helpref{wxGauge::SetShadowWidth}{wxgaugesetshadowwidth}
133
0a4e3323 134
a660d684
KB
135\membersection{wxGauge::GetValue}\label{wxgaugegetvalue}
136
137\constfunc{int}{GetValue}{\void}
138
139Returns the current position of the gauge.
140
141\wxheading{See also}
142
143\helpref{wxGauge::SetValue}{wxgaugesetvalue}
144
0a4e3323
VZ
145
146\membersection{wxGauge::IsVertical}\label{wxgaugeisvertical}
147
148\constfunc{bool}{IsVertical}{\void}
149
150Returns \true if the gauge is vertical (has \texttt{wxGA\_VERTICAL} style) and
151\false otherwise.
152
153
a660d684
KB
154\membersection{wxGauge::SetBezelFace}\label{wxgaugesetbezelface}
155
eaaa6a06 156\func{void}{SetBezelFace}{\param{int }{width}}
a660d684
KB
157
158Sets the 3D bezel face width.
159
160\wxheading{Remarks}
161
0a4e3323 162This method is not implemented (doesn't do anything) for most platforms.
a660d684
KB
163
164\wxheading{See also}
165
166\helpref{wxGauge::GetBezelFace}{wxgaugegetbezelface}
167
0a4e3323 168
a660d684
KB
169\membersection{wxGauge::SetRange}\label{wxgaugesetrange}
170
eaaa6a06 171\func{void}{SetRange}{\param{int }{range}}
a660d684
KB
172
173Sets the range (maximum value) of the gauge.
174
175\wxheading{See also}
176
177\helpref{wxGauge::GetRange}{wxgaugegetrange}
178
0a4e3323 179
a660d684
KB
180\membersection{wxGauge::SetShadowWidth}\label{wxgaugesetshadowwidth}
181
eaaa6a06 182\func{void}{SetShadowWidth}{\param{int }{width}}
a660d684
KB
183
184Sets the 3D shadow width.
185
186\wxheading{Remarks}
187
0a4e3323
VZ
188This method is not implemented (doesn't do anything) for most platforms.
189
a660d684
KB
190
191\membersection{wxGauge::SetValue}\label{wxgaugesetvalue}
192
eaaa6a06 193\func{void}{SetValue}{\param{int }{pos}}
a660d684
KB
194
195Sets the position of the gauge.
196
197\wxheading{Parameters}
198
199\docparam{pos}{Position for the gauge level.}
200
201\wxheading{See also}
202
203\helpref{wxGauge::GetValue}{wxgaugegetvalue}
204
205