]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/gauge.tex
Added wxPATH_NORM_SHORTCUT
[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
a660d684
KB
40\membersection{wxGauge::wxGauge}\label{wxgaugeconstr}
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
a660d684
KB
73\membersection{wxGauge::\destruct{wxGauge}}
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
KB
85
86Creates the gauge for two-step construction. See \helpref{wxGauge::wxGauge}{wxgaugeconstr}\rtfsp
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
0a4e3323
VZ
141\wxheading{Remarks}
142
143This method is not implemented (doesn't do anything) for most platforms.
144
a660d684
KB
145\wxheading{See also}
146
147\helpref{wxGauge::SetValue}{wxgaugesetvalue}
148
0a4e3323
VZ
149
150\membersection{wxGauge::IsVertical}\label{wxgaugeisvertical}
151
152\constfunc{bool}{IsVertical}{\void}
153
154Returns \true if the gauge is vertical (has \texttt{wxGA\_VERTICAL} style) and
155\false otherwise.
156
157
a660d684
KB
158\membersection{wxGauge::SetBezelFace}\label{wxgaugesetbezelface}
159
eaaa6a06 160\func{void}{SetBezelFace}{\param{int }{width}}
a660d684
KB
161
162Sets the 3D bezel face width.
163
164\wxheading{Remarks}
165
0a4e3323 166This method is not implemented (doesn't do anything) for most platforms.
a660d684
KB
167
168\wxheading{See also}
169
170\helpref{wxGauge::GetBezelFace}{wxgaugegetbezelface}
171
0a4e3323 172
a660d684
KB
173\membersection{wxGauge::SetRange}\label{wxgaugesetrange}
174
eaaa6a06 175\func{void}{SetRange}{\param{int }{range}}
a660d684
KB
176
177Sets the range (maximum value) of the gauge.
178
179\wxheading{See also}
180
181\helpref{wxGauge::GetRange}{wxgaugegetrange}
182
0a4e3323 183
a660d684
KB
184\membersection{wxGauge::SetShadowWidth}\label{wxgaugesetshadowwidth}
185
eaaa6a06 186\func{void}{SetShadowWidth}{\param{int }{width}}
a660d684
KB
187
188Sets the 3D shadow width.
189
190\wxheading{Remarks}
191
0a4e3323
VZ
192This method is not implemented (doesn't do anything) for most platforms.
193
a660d684
KB
194
195\membersection{wxGauge::SetValue}\label{wxgaugesetvalue}
196
eaaa6a06 197\func{void}{SetValue}{\param{int }{pos}}
a660d684
KB
198
199Sets the position of the gauge.
200
201\wxheading{Parameters}
202
203\docparam{pos}{Position for the gauge level.}
204
205\wxheading{See also}
206
207\helpref{wxGauge::GetValue}{wxgaugegetvalue}
208
209